|Customize a Tree Viewer [message #673414]
||Mon, 23 May 2011 14:58
| nicolas h
Registered: February 2011
Location: Grenoble, France
I wish I created and customized a tree viewer for my diagram editor and I have some questions.
First of all, I follow some tutorials here or here ...
In these examples, The model's elements used are manually created. My model's elements come from ecore model.
In the both tutorial, there is a method to initialize the model (initializeParents and getInitialInput). I don't understand this step, and I don't see where the tree viewer is linked with the editor.
Next, When I generate the diagram plugin, if I check the ckeckbox RCP, I don't have the extension points "org.eclipse.ui.navigator.viewer", "org.eclipse.ui.navigator.navigatorContent" etc. So, when I deploy my RCP, I don't have project or model explorer anymore, I don't know why.
When I don't check the checkbox, I've the extension points defined, and the project Explorer display the model.
Do you suggest me looking this code and trying to customize it, or adding a new extension point org.eclipse.ui.view as described on the links above ?
I tried to create a new viewer extending ViewPart or CommonNavigator, but I didn't know how to populate my treeviewer.
Last questions. My model defines the elements xxxNode, yyyNode etc.
In order to see this elements in my tree, is the following nodes right ?
Classes ModelmmDomainNavigatorItem and ModelmmNavigatorItem are generated with the default navigator. Do they let us to automatically know what will be the element which will populate our tree viewer ?
Sorry for my english.
Powered by FUDForum
. Page generated in 0.01634 seconds