I would like to make a navigator window for my GMF generated diagram editor. I have got an outline window like on the bottom of the picture but I want the upper one. How can I make a navigator window like that?
the outline window is for a quick overview on the structure of classes and elements, but in the navigator window you can also do actions on elements (for example add, delete). I successfully found a solution: https://bugs.eclipse.org/bugs/show_bug.cgi?id=206778.
Now I have a navigator window but I want to create additional subdiagrams which are going to be shown in this navigator tree structure. You can do this in an .ecorediag file, you can add multiple diagrams to a package. How can I do this in GMF? Do you have any idea?
I want to implement the same as in the Ecore tools. You can create more diagrams for a model file, but these diagrams appears in the navigator window's treeview, not in separated diagram files. Look at the "Diagram management through outline" header at this site: http://wiki.eclipse.org/Ecore_Tools/New_and_Noteworthy. I hope you can help me!
Ralph Gerbig Messages: 648 Registered: November 2009
Senior Member
Hi,
did you check out their source code? This would directly give you the implementation. You have two options to get it either you choose the import plugins and fragments import in eclipse which allows you to import installed plugins into your workspace and debug them or you download the source from git.