Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Selection of Nodes
Selection of Nodes [message #201497] Tue, 01 November 2005 19:42 Go to next message
Eclipse UserFriend
Originally posted by: hochrainerj.utanet.at

Hi!

I have three different types of nodes (EditParts). When I want to select one
of them in the editor with the selection tool and press the mouse, suddenly
a marquee-like cross apears and it is possiple to select it only by dragging
the cross over this node-type. It is not possible to select it just by
clicking on it.
I don't have this problem with the other two types of nodes, they are
selectable by clicking on them.

Have I forgotten to give this special node-type some rights? Do you have
some hints?

Thank you in advance,

Johannes
Re: Selection of Nodes [message #201519 is a reply to message #201497] Tue, 01 November 2005 21:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

You're probably returning a MarqueeTool from its getDragTracker() method.
Return the DragEditPartsTracker.

"Johannes Hochrainer" <hochrainerj@utanet.at> wrote in message
news:dk8gd9$fm9$1@news.eclipse.org...
> Hi!
>
> I have three different types of nodes (EditParts). When I want to select
one
> of them in the editor with the selection tool and press the mouse,
suddenly
> a marquee-like cross apears and it is possiple to select it only by
dragging
> the cross over this node-type. It is not possible to select it just by
> clicking on it.
> I don't have this problem with the other two types of nodes, they are
> selectable by clicking on them.
>
> Have I forgotten to give this special node-type some rights? Do you have
> some hints?
>
> Thank you in advance,
>
> Johannes
>
>
Re: Selection of Nodes [message #201536 is a reply to message #201519] Tue, 01 November 2005 21:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hochrainerj.utanet.at

Hi!

Thank you for your answer but that is not the solution. I use the
super-implementation in this case for all my EditParts.

Johannes


"Pratik Shah" <none@unknown.com> schrieb im Newsbeitrag
news:dk8lq6$nki$1@news.eclipse.org...
> You're probably returning a MarqueeTool from its getDragTracker() method.
> Return the DragEditPartsTracker.
>
> "Johannes Hochrainer" <hochrainerj@utanet.at> wrote in message
> news:dk8gd9$fm9$1@news.eclipse.org...
> > Hi!
> >
> > I have three different types of nodes (EditParts). When I want to select
> one
> > of them in the editor with the selection tool and press the mouse,
> suddenly
> > a marquee-like cross apears and it is possiple to select it only by
> dragging
> > the cross over this node-type. It is not possible to select it just by
> > clicking on it.
> > I don't have this problem with the other two types of nodes, they are
> > selectable by clicking on them.
> >
> > Have I forgotten to give this special node-type some rights? Do you have
> > some hints?
> >
> > Thank you in advance,
> >
> > Johannes
> >
> >
>
>
Re: Selection of Nodes [message #201543 is a reply to message #201536] Tue, 01 November 2005 23:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

What about isSelectable()? Are you returning true for that. If you can
select the parts using marquee, you must be. Basically, something is
preventing your EditPart from being targetted by the SelectionTool. You
should set a breakpoint in SelectionTool#mouseDown() and just debug it.

"Johannes Hochrainer" <hochrainerj@utanet.at> wrote in message
news:dk8odi$r5u$1@news.eclipse.org...
> Hi!
>
> Thank you for your answer but that is not the solution. I use the
> super-implementation in this case for all my EditParts.
>
> Johannes
>
>
> "Pratik Shah" <none@unknown.com> schrieb im Newsbeitrag
> news:dk8lq6$nki$1@news.eclipse.org...
> > You're probably returning a MarqueeTool from its getDragTracker()
method.
> > Return the DragEditPartsTracker.
> >
> > "Johannes Hochrainer" <hochrainerj@utanet.at> wrote in message
> > news:dk8gd9$fm9$1@news.eclipse.org...
> > > Hi!
> > >
> > > I have three different types of nodes (EditParts). When I want to
select
> > one
> > > of them in the editor with the selection tool and press the mouse,
> > suddenly
> > > a marquee-like cross apears and it is possiple to select it only by
> > dragging
> > > the cross over this node-type. It is not possible to select it just by
> > > clicking on it.
> > > I don't have this problem with the other two types of nodes, they are
> > > selectable by clicking on them.
> > >
> > > Have I forgotten to give this special node-type some rights? Do you
have
> > > some hints?
> > >
> > > Thank you in advance,
> > >
> > > Johannes
> > >
> > >
> >
> >
>
>
Re: Selection of Nodes [message #208105 is a reply to message #201497] Thu, 26 January 2006 11:12 Go to previous message
Eclipse UserFriend
Originally posted by: gmittendorferREMOVETHISTEXT.web.de

Hi Johannes, a wild guess: I encountered a similar behaviour of an
EditPart when I forgot to call some super method of
AbstractGraphicalEditPart. I can't exactly recall which method it was
but I think I overrode registerVisuals() by accident. Unlikely that you
have the same problem in your code but maybe it helps ...

Johannes Hochrainer wrote:
> Hi!
>
> I have three different types of nodes (EditParts). When I want to select one
> of them in the editor with the selection tool and press the mouse, suddenly
> a marquee-like cross apears and it is possiple to select it only by dragging
> the cross over this node-type. It is not possible to select it just by
> clicking on it.
> I don't have this problem with the other two types of nodes, they are
> selectable by clicking on them.
>
> Have I forgotten to give this special node-type some rights? Do you have
> some hints?
>
> Thank you in advance,
>
> Johannes
>
Previous Topic:rotate figure / GEF rotation support
Next Topic:Two Editors but one model - how?
Goto Forum:
  


Current Time: Sun Dec 22 06:20:45 GMT 2024

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

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

Back to the top