Home » Eclipse Projects » GEF » Create Connection by dragging on an edit part
Create Connection by dragging on an edit part [message #200525] |
Tue, 25 October 2005 05:14  |
Eclipse User |
|
|
|
Originally posted by: ayesha.ltp.soft.net
I need to create a connection by dragging on connection points of a
nodeeditpart.
Eg: I have ActionEditPart and should be connected to DSEditPart, I should be
able to drag from a point on the ActionEditPart to initiate a connection and
terminate when i drop on a point on the DSEditPart. I also want the drag
functionality on the editparts to remain.
What is the best way of doing this. Can I have connector points integrated
in the Action & DS Editparts so that when i click on the connector point,
the connection is initiated.
Or Can I simply use the ConnectionAnchor instead of the connector point, so
that when i drag from the connection anchor, the connection is initiated.
Are there other ways of doing this.
Thanks
Ayesha
|
|
| | | |
Re: Create Connection by dragging on an edit part [message #204774 is a reply to message #200739] |
Wed, 07 December 2005 06:07   |
Eclipse User |
|
|
|
Originally posted by: ayesha.ltp.soft.net
As you told, I am returning ConnectionCreationDragCreationTool from
ConnectionAnchors on the EditParts. When I drag from the connectionanchor,
there is no feedback showing the connection being drawn. When I finish
drawing the connection, the line is shown.
Please tell me what must be going wrong. I could not figure out why the
feedback is not being shown.
Thanks
Ayesha
"Randy Hudson" <none@us.ibm.com> wrote in message
news:djo4pk$lp5$1@news.eclipse.org...
> Use a handle, or determine which tracker to use based on the location of
the
> request
>
> "Ayesha" <ayesha@ltp.soft.net> wrote in message
> news:djnak8$hed$1@news.eclipse.org...
> > Thanks, Returning ConnectionCreationDragTool Worked.
> > But, the default functionality of drag which is resize and reposition is
> > not
> > available anymore.
> > Can I have two editparts in one other editpart, so that clicking on a
> > particular position on the editpart
> > will start the ConnectionCreationDragTool and clicking anywhere else
will
> > resize and reposition.
> >
> > Ayesha
> >
> >
> > "Randy Hudson" <none@us.ibm.com> wrote in message
> > news:djlo4c$lf6$1@news.eclipse.org...
> >> Return the ConnectionCreationDragTracker from the editpart when the
mouse
> > is
> >> pressed.
> >>
> >> "Ayesha" <ayesha@ltp.soft.net> wrote in message
> >> news:djksn3$a18$1@news.eclipse.org...
> >> >I need to create a connection by dragging on connection points of a
> >> > nodeeditpart.
> >> > Eg: I have ActionEditPart and should be connected to DSEditPart, I
> > should
> >> > be
> >> > able to drag from a point on the ActionEditPart to initiate a
> >> > connection
> >> > and
> >> > terminate when i drop on a point on the DSEditPart. I also want the
> >> > drag
> >> > functionality on the editparts to remain.
> >> > What is the best way of doing this. Can I have connector points
> >> > integrated
> >> > in the Action & DS Editparts so that when i click on the connector
> > point,
> >> > the connection is initiated.
> >> > Or Can I simply use the ConnectionAnchor instead of the connector
> >> > point,
> >> > so
> >> > that when i drag from the connection anchor, the connection is
> > initiated.
> >> > Are there other ways of doing this.
> >> >
> >> > Thanks
> >> > Ayesha
> >> >
> >> >
> >>
> >>
> >
> >
>
>
|
|
|
Re: Create Connection by dragging on an edit part [message #204856 is a reply to message #204774] |
Thu, 08 December 2005 06:47   |
Eclipse User |
|
|
|
Originally posted by: ingo.koch[nospam].sap.com
Have a look at how the dummyConnection gets created in logic editor
Ingo
"Ayesha" <ayesha@ltp.soft.net> wrote in message
news:dn6fcf$lu7$1@news.eclipse.org...
> As you told, I am returning ConnectionCreationDragCreationTool from
> ConnectionAnchors on the EditParts. When I drag from the
connectionanchor,
> there is no feedback showing the connection being drawn. When I finish
> drawing the connection, the line is shown.
> Please tell me what must be going wrong. I could not figure out why the
> feedback is not being shown.
>
> Thanks
> Ayesha
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:djo4pk$lp5$1@news.eclipse.org...
> > Use a handle, or determine which tracker to use based on the location of
> the
> > request
> >
> > "Ayesha" <ayesha@ltp.soft.net> wrote in message
> > news:djnak8$hed$1@news.eclipse.org...
> > > Thanks, Returning ConnectionCreationDragTool Worked.
> > > But, the default functionality of drag which is resize and reposition
is
> > > not
> > > available anymore.
> > > Can I have two editparts in one other editpart, so that clicking on a
> > > particular position on the editpart
> > > will start the ConnectionCreationDragTool and clicking anywhere else
> will
> > > resize and reposition.
> > >
> > > Ayesha
> > >
> > >
> > > "Randy Hudson" <none@us.ibm.com> wrote in message
> > > news:djlo4c$lf6$1@news.eclipse.org...
> > >> Return the ConnectionCreationDragTracker from the editpart when the
> mouse
> > > is
> > >> pressed.
> > >>
> > >> "Ayesha" <ayesha@ltp.soft.net> wrote in message
> > >> news:djksn3$a18$1@news.eclipse.org...
> > >> >I need to create a connection by dragging on connection points of a
> > >> > nodeeditpart.
> > >> > Eg: I have ActionEditPart and should be connected to DSEditPart, I
> > > should
> > >> > be
> > >> > able to drag from a point on the ActionEditPart to initiate a
> > >> > connection
> > >> > and
> > >> > terminate when i drop on a point on the DSEditPart. I also want the
> > >> > drag
> > >> > functionality on the editparts to remain.
> > >> > What is the best way of doing this. Can I have connector points
> > >> > integrated
> > >> > in the Action & DS Editparts so that when i click on the connector
> > > point,
> > >> > the connection is initiated.
> > >> > Or Can I simply use the ConnectionAnchor instead of the connector
> > >> > point,
> > >> > so
> > >> > that when i drag from the connection anchor, the connection is
> > > initiated.
> > >> > Are there other ways of doing this.
> > >> >
> > >> > Thanks
> > >> > Ayesha
> > >> >
> > >> >
> > >>
> > >>
> > >
> > >
> >
> >
>
>
|
|
|
Re: Create Connection by dragging on an edit part [message #205500 is a reply to message #204856] |
Mon, 19 December 2005 04:24  |
Eclipse User |
|
|
|
Originally posted by: ayesha.ltp.soft.net
Implementing NodeEditPart interface on my editparts worked.
thanks
"Ingo Koch" <ingo.koch[nospam]@sap.com> wrote in message
news:dn96hi$frs$1@news.eclipse.org...
> Have a look at how the dummyConnection gets created in logic editor
> Ingo
>
> "Ayesha" <ayesha@ltp.soft.net> wrote in message
> news:dn6fcf$lu7$1@news.eclipse.org...
> > As you told, I am returning ConnectionCreationDragCreationTool from
> > ConnectionAnchors on the EditParts. When I drag from the
> connectionanchor,
> > there is no feedback showing the connection being drawn. When I finish
> > drawing the connection, the line is shown.
> > Please tell me what must be going wrong. I could not figure out why the
> > feedback is not being shown.
> >
> > Thanks
> > Ayesha
> >
> > "Randy Hudson" <none@us.ibm.com> wrote in message
> > news:djo4pk$lp5$1@news.eclipse.org...
> > > Use a handle, or determine which tracker to use based on the location
of
> > the
> > > request
> > >
> > > "Ayesha" <ayesha@ltp.soft.net> wrote in message
> > > news:djnak8$hed$1@news.eclipse.org...
> > > > Thanks, Returning ConnectionCreationDragTool Worked.
> > > > But, the default functionality of drag which is resize and
reposition
> is
> > > > not
> > > > available anymore.
> > > > Can I have two editparts in one other editpart, so that clicking on
a
> > > > particular position on the editpart
> > > > will start the ConnectionCreationDragTool and clicking anywhere else
> > will
> > > > resize and reposition.
> > > >
> > > > Ayesha
> > > >
> > > >
> > > > "Randy Hudson" <none@us.ibm.com> wrote in message
> > > > news:djlo4c$lf6$1@news.eclipse.org...
> > > >> Return the ConnectionCreationDragTracker from the editpart when the
> > mouse
> > > > is
> > > >> pressed.
> > > >>
> > > >> "Ayesha" <ayesha@ltp.soft.net> wrote in message
> > > >> news:djksn3$a18$1@news.eclipse.org...
> > > >> >I need to create a connection by dragging on connection points of
a
> > > >> > nodeeditpart.
> > > >> > Eg: I have ActionEditPart and should be connected to DSEditPart,
I
> > > > should
> > > >> > be
> > > >> > able to drag from a point on the ActionEditPart to initiate a
> > > >> > connection
> > > >> > and
> > > >> > terminate when i drop on a point on the DSEditPart. I also want
the
> > > >> > drag
> > > >> > functionality on the editparts to remain.
> > > >> > What is the best way of doing this. Can I have connector points
> > > >> > integrated
> > > >> > in the Action & DS Editparts so that when i click on the
connector
> > > > point,
> > > >> > the connection is initiated.
> > > >> > Or Can I simply use the ConnectionAnchor instead of the connector
> > > >> > point,
> > > >> > so
> > > >> > that when i drag from the connection anchor, the connection is
> > > > initiated.
> > > >> > Are there other ways of doing this.
> > > >> >
> > > >> > Thanks
> > > >> > Ayesha
> > > >> >
> > > >> >
> > > >>
> > > >>
> > > >
> > > >
> > >
> > >
> >
> >
>
>
|
|
|
Goto Forum:
Current Time: Thu Mar 13 13:56:02 EDT 2025
Powered by FUDForum. Page generated in 0.05025 seconds
|