SelectionListener for GraphicalEditor [message #778337] |
Thu, 12 January 2012 07:56  |
Eclipse User |
|
|
|
Hi,
Is there a way to add SelectionListener for GraphicalEditor (GraphicalEditorWithFlyoutPalette)?
I have a jface viewer, when user selects a node in treeview i want to select matched object in GraphicalEditor.
Foe this I need listener...
What should I do?
|
|
|
|
Re: SelectionListener for GraphicalEditor [message #792799 is a reply to message #778337] |
Tue, 07 February 2012 07:22  |
Eclipse User |
|
|
|
On 12.01.2012 13:56, markizik maa wrote:
> Hi,
>
> Is there a way to add SelectionListener for GraphicalEditor
> (GraphicalEditorWithFlyoutPalette)?
>
> I have a jface viewer, when user selects a node in treeview i want to
> select matched object in GraphicalEditor.
> Foe this I need listener...
>
> What should I do?
Hi, in addition to Marcel's hint, I recommend you to take a look at the
class org.eclipse.gef.ui.parts.SelectionSynchronizer, which is a
generically implementats ISelectionChangedListener. Probably, you can
directly use this class for your Viewer.
Cheers,
Tony
|
|
|
Powered by
FUDForum. Page generated in 0.05094 seconds