Selection in a viewer [message #221177] |
Thu, 10 August 2006 10:19 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03566 seconds