Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Selection in a viewer
Selection in a viewer [message #221177] Thu, 10 August 2006 10:19 Go to next message
Eclipse UserFriend
Originally posted by: osipov.appliedtech.ru

Hi everybody!
I am trying to figure out a way of deselecting all the items in a viewer
when I am right-clicking and hitting no object. Exactly this happens when I
am left-clicking and hitting nowhere - selection is becoming empty.
Is there a way to do this?
Re: Selection in a viewer [message #221302 is a reply to message #221177] Fri, 11 August 2006 13:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: remove-this-pgarbacz.pgs-soft.com.remove.this

Hi,

"Peter Osipov" <osipov@appliedtech.ru> wrote in message
news:ebf17r$cp3$1@utils.eclipse.org...
> Hi everybody!
> I am trying to figure out a way of deselecting all the items in a viewer
> when I am right-clicking and hitting no object. Exactly this happens when
> I
> am left-clicking and hitting nowhere - selection is becoming empty.
> Is there a way to do this?

I had similar problem. I managed by adding virtual edit part that covered
the whole area of the diagram. Clicking on this part focused its figure and
caused removing selection. You could also register a listener in the
FigureCanvas and get all the mouse click events - if no figure is under the
pointer this is your case.

Regards,
Pawel
Re: Selection in a viewer [message #221436 is a reply to message #221302] Mon, 14 August 2006 03:27 Go to previous message
Eclipse UserFriend
Originally posted by: osipov.appliedtech.ru

Hi, Pawel.
Thanks again for your help.
I thaught about the second approach, but decided to wait until somebody
answers me. Could there be some kind of problem with multiple platform
approach when adding the listener? I mean, may be on some OS selection is
not done using the mouse or something and by adding the listener behaviour I
am going to break the proper user interaction, eh? :-)
Anyway, thanks again Pawel for your support.

> Hi,
> > Hi everybody!
> > I am trying to figure out a way of deselecting all the items in a viewer
> > when I am right-clicking and hitting no object. Exactly this happens
when
> > I
> > am left-clicking and hitting nowhere - selection is becoming empty.
> > Is there a way to do this?
>
> I had similar problem. I managed by adding virtual edit part that covered
> the whole area of the diagram. Clicking on this part focused its figure
and
> caused removing selection. You could also register a listener in the
> FigureCanvas and get all the mouse click events - if no figure is under
the
> pointer this is your case.
>
> Regards,
> Pawel
>
>
Previous Topic:no 3.3 integration builds?
Next Topic:How to refresh a Figure and all its child Figures?
Goto Forum:
  


Current Time: Fri Apr 26 18:18:18 GMT 2024

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

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

Back to the top