Selection of Nodes [message #201497] |
Tue, 01 November 2005 19:42 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.24409 seconds