[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] outiline view

hi! I am working on a graphical editor where each form contains one or more panels, and each panel contains controls (label, text fields, checkboxes, etc.). I have an outline view which displays the hierarchy, for example:

-  panel1
|   |
|    --- group1
|   |   |
|   |    --- label 1
|   |
|    --- lable2
|
+  panel2

because the panels may overlap, I would like to only show the currently selected panel in the editor, i.e. when a panel or control is selected in the outline view, hide all other panels in the editor. So, my tree edit parts implement the ISelectionChangedListener interface and I assume I would need to register the edit parts with the ContentOutlinePage as a ISelectionProvider? If so, how do I access my graphical editor subclass (which contains the ContentOutlinePage subclass) from my tree edit part to add it as a listener?

kind regards.