|select an editpart from the outline? [message #528900]
||Thu, 22 April 2010 06:47
Registered: March 2010
I work on an application that use EMF and GEF.
I want that when I select an element from the outline, the appropriate editpart should be selected in the GEF page.
I modified the method generated by EMF : handleContentOutlineSelection(ISelection selection)
so that it informs the GEF page about the selected model
for that I create a method setInput(object)
((GraphicalGeditorEditor) getActiveEditor()).setInput( selectedElements.get(0))
In the Gef page I recuperate the editpart according to the model type, the problem is that I coudn't find the appropriate method to select this editpart, I tried these methods : select(editpart) reveal(editpart) setselection(Iselection) but it that doesn't work.
thank's in advance.
Powered by FUDForum
. Page generated in 0.14106 seconds