| [news.eclipse.modeling.gmf] Re: Question on ShapeEditPart.getPrimaryDragEditPolicy() |
Hello Khai,
With GMF 2.0 you can modify corresponding template (NodeEditPart.xpt) and made this method owerriden in all the generated code.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.
----------------- Alex Shatalin