|
|
|
Re: Empty runtime Outline [message #1036477 is a reply to message #1027366] |
Mon, 08 April 2013 08:40  |
Eclipse User |
|
|
|
Hi Simon,
the adaption is pretty straightforward.
1. Add the dependency of the diagram.ui.outline plugin to your generated diagram-plugin.
2. In your generated XXXDiagramEditor, modify the method:
public Object getAdapter(Class type){
...
if(type == IContentOutlinePage.class)
return new XXXDiagramOutlinePage(...);
}
Make the new XXXDiagramOutlinePage extend AbstractDiagramOutlinePage and implement the abstract mehtods, it requires.
For that, create a second class XXXModelNavigator that extends AbstractModelNavigator.
You can take a look at the code of org.eclipse.emf.ecoretools.diagram, which provides an implementation of the outline-view above for the ecore-editor.
Regards
Thomas
|
|
|
Powered by
FUDForum. Page generated in 0.06341 seconds