Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » External Selection Listeners
External Selection Listeners [message #150688] Mon, 13 September 2004 09:46 Go to next message
Eclipse UserFriend
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 #150819 is a reply to message #150688] Tue, 14 September 2004 15:35 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
All GEF viewers are selection providers, i.e., they implement
ISelectionProvider. GraphicalEditor registers the graphical viewer as the
selection provider with the site in its hookGraphicalViewer() method.

"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
>
Re: External Selection Listeners [message #150835 is a reply to message #150688] Tue, 14 September 2004 18:42 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:change position of nodes when resizing
Next Topic:CompoundDirectedGraphLayout
Goto Forum:
  


Current Time: Wed Apr 24 16:04:27 GMT 2024

Powered by FUDForum. Page generated in 0.03125 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top