[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Question on ShapeEditPart.getPrimaryDragEditPolicy()

Hello Khai,

To override the default resizing behavior it has been suggested that
the best way to achieve this is to override getPrimaryDragEditPolicy()
in the particular EditPart(s) to return an instance of
NonResizableEditPolicyEx.  This works as intended but it requires the
modification of (potentially) many EditParts in a large model.
With GMF 2.0 you can modify corresponding template (NodeEditPart.xpt) and made this method owerriden in all the generated code.

-----------------
Alex Shatalin