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

Forgot to mention...

Marc Hoffman touches briefly on this in his Eclipse Corner Article on
the topic of selections [1]. See the section, "Tracking the Current
Selection".

[1]http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html

HTH,

Wayne

On Mon, 2008-05-12 at 09:00 -0400, Wayne Beaton wrote:
> 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
>