[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Creating a selection provider

You need to create something (possibly a separate class) that implements
the ISelectionProvider interface. Pass an instance of that class to the
view's site via the setSelectionProvider(ISelectionProvider) method.

FWIW, I'm not sure if the rectangle coordinates makes sense as a
selection (the objects that intersect the rectangle certainly do).

HTH,

Wayne

On Fri, 2008-05-09 at 15:31 +0200, Benedikt SchÃfer wrote:
> Hello everyone,
> 
> Is there a possibility to provide data to the selection service without 
> having created a viewer? Here is my situation: I created an image 
> viewer, using a canvas, in which I can drag a rectangle over an image. I 
> want to provide the coordinates of that rectangle to selection listeners 
> in other plugins, what would be the best way to realize that.
> Thank you very much for any suggestions.
> 
> Greets,
> Benedikt