Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Moving a child part
Moving a child part [message #194703] Mon, 05 September 2005 08:55 Go to next message
Eclipse UserFriend
Originally posted by: dan.nicolici.nexource.ro

This is a multi-part message in MIME format.

------=_NextPart_000_0011_01C5B210.BFCF4560
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi!

What policy must I install in a container part so that when a mouse =
click occures on it, one of its children will be moved at the click =
position?
I allready have children move/resize capabilities by implementing a =
ConstrainedLayoutEditPolicy in the container part.

Thank you!
------=_NextPart_000_0011_01C5B210.BFCF4560
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>What policy must I install in a =
container part so=20
that when a mouse click occures on it, one of its children will be moved =
at the=20
click position?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I allready have children move/resize =
capabilities=20
by implementing a ConstrainedLayoutEditPolicy in the container=20
part.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank you!</FONT></DIV></BODY></HTML>

------=_NextPart_000_0011_01C5B210.BFCF4560--
Re: Moving a child part [message #194847 is a reply to message #194703] Tue, 06 September 2005 14:12 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

This is a multi-part message in MIME format.

------=_NextPart_000_059A_01C5B2CB.713F0D70
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Override the container editpart's getDragTracker() method to return a =
tracker that will handle this. You'll probably have to subclass =
DragEditPartsTracker and override handleButtonDown().
"Dan Nicolici" <dan.nicolici@nexource.ro> wrote in message =
news:dfh165$1kd$1@news.eclipse.org...
Hi!

What policy must I install in a container part so that when a mouse =
click occures on it, one of its children will be moved at the click =
position?
I allready have children move/resize capabilities by implementing a =
ConstrainedLayoutEditPolicy in the container part.

Thank you!
------=_NextPart_000_059A_01C5B2CB.713F0D70
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1515" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Override the container editpart's =
getDragTracker()=20
method to return a tracker that will handle this.&nbsp; You'll probably =
have to=20
subclass DragEditPartsTracker and override =
handleButtonDown().</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Dan Nicolici" &lt;<A=20
=
href=3D"mailto:dan.nicolici@nexource.ro">dan.nicolici@nexource.ro</A>&gt;=
wrote=20
in message <A=20
=
href=3D"news:dfh165$1kd$1@news.eclipse.org">news:dfh165$1kd$1@news.eclips=
e.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>What policy must I install in a =
container part so=20
that when a mouse click occures on it, one of its children will be =
moved at=20
the click position?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I allready have children move/resize =
capabilities=20
by implementing a ConstrainedLayoutEditPolicy in the container=20
part.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank =
you!</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_059A_01C5B2CB.713F0D70--
Previous Topic:Selection box customization.
Next Topic:How to drag a treemenu item from a TreeViewer to the Graphical viewer
Goto Forum:
  


Current Time: Thu Apr 25 21:45:14 GMT 2024

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

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

Back to the top