External Selection Listeners [message #150688] |
Mon, 13 September 2004 09:46 |
Eclipse User |
|
|
|
Originally posted by: fath.mac.com
Hello gef-dev,
This might be more of an SWT question, but I was wondering what would be
the best way to notify
external views of the selection changes in a GEF editor. I currently have
a custom extension point on
the editor that allows views to register as listeners on the editor and I
catch the open request from a
double click to create a command to update the listeners. Is there an
easier way to get the selected
part, maybe as an ISelection?
Still learning,
Austin
|
|
|
|
Re: External Selection Listeners [message #150835 is a reply to message #150688] |
Tue, 14 September 2004 18:42 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Use the view site's SelectionService. The graphical viewer should register
itself as a provide to that service, and other views will receive the
selection events via the service.
"Austin Fath" <fath@mac.com> wrote in message
news:ci3q8s$8f9$1@eclipse.org...
> Hello gef-dev,
>
> This might be more of an SWT question, but I was wondering what would be
> the best way to notify
> external views of the selection changes in a GEF editor. I currently have
> a custom extension point on
> the editor that allows views to register as listeners on the editor and I
> catch the open request from a
> double click to create a command to update the listeners. Is there an
> easier way to get the selected
> part, maybe as an ISelection?
>
> Still learning,
> Austin
>
|
|
|
Powered by
FUDForum. Page generated in 0.02544 seconds