Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 09:14 Go to next message
Eclipse UserFriend
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 #200600 is a reply to message #200525] Tue, 25 October 2005 16:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

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 #200703 is a reply to message #200600] Wed, 26 October 2005 07:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ayesha.ltp.soft.net

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 #200739 is a reply to message #200703] Wed, 26 October 2005 14:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

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 #204774 is a reply to message #200739] Wed, 07 December 2005 11:07 Go to previous messageGo to next message
Eclipse UserFriend
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 11:47 Go to previous messageGo to next message
Eclipse UserFriend
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 09:24 Go to previous message
Eclipse UserFriend
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
> > > >> >
> > > >> >
> > > >>
> > > >>
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Previous Topic:create a polyline
Next Topic:GMF Features
Goto Forum:
  


Current Time: Thu Mar 28 20:09:24 GMT 2024

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

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

Back to the top