Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » The right EditPolicies
The right EditPolicies [message #194583] Fri, 02 September 2005 08:36 Go to next message
Eclipse UserFriend
Originally posted by: dan.nicolici.nexource.ro

This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C5AFB2.83F94C80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi!

I'm having a hard time finding which EditPolicies to install in my parts =
to get children move/resize behavior. Please help!

Thank you!
------=_NextPart_000_000F_01C5AFB2.83F94C80
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>I'm having a hard time finding which =
EditPolicies=20
to install in my parts to get children move/resize behavior. Please=20
help!</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_000F_01C5AFB2.83F94C80--
Re: The right EditPolicies [message #194593 is a reply to message #194583] Fri, 02 September 2005 09:06 Go to previous message
Eclipse UserFriend
Originally posted by: zhaojiangbin.163.com

you can use XYLayoutEditPolicy

and provide a command in this method:

protected Command createChangeConstraintCommand(ChangeBoundsRequest request,
EditPart child, Object constraint)

consult DiagramEditPart.class in Shape example for detail
Previous Topic:about popupmenu in gef
Next Topic:IBM GEF/EMF Redbook
Goto Forum:
  


Current Time: Thu Apr 18 14:13:12 GMT 2024

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

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

Back to the top