[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: outiline view
|
The TreeViewer should be the selection provider for the selection service in
the workbench. The editparts are the items which are actually selected.
You can tie the outline and editor together via the selectionservice, which
spans across every part in the workbench window. See
editorsite.getSelectionService.
"Sidney Lee" <sidus68@xxxxxxxxx> wrote in message
news:de982e5cf03801f74d6b20c01960e228$1@xxxxxxxxxxxxxxxxxx
> 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.
>