|Re: Project explorer display problem [message #904926 is a reply to message #904450]
||Wed, 29 August 2012 11:55
| Laurent Le Moux
Registered: September 2011
After some more investigation, it appears that the GMF templates for code generation sensibly changed since the mindmap tutorial...
The element tree under the diagram file name is not displayed because one generated line has been removed from xxNavigatorContentProvider#getChildren, just before the "return result.toArray()" statement :
result.addAll(createNavigatorItems(selectViewsByType(topViews, xxEditPart.MODEL_ID), file, false));
This causes the method to return an empty array.
When corrected, another problem appears. The "root" element name as well as the links names are left empty in the project explorer tree.
This is due to the corresponding getxxText() methods in xxNavigatorLabelProvider that systematically return an empty string.
This also differs from the former generated code in the mindmap example.
Providing the root element name and the links names solves the unnamed tree nodes problem.
I'll fill a report with the two attached files as example.
Powered by FUDForum
. Page generated in 0.01651 seconds