ContainerShapeEditPart [message #967523] |
Thu, 01 November 2012 20:49 |
Rui Domingues Messages: 194 Registered: October 2010 |
Senior Member |
|
|
Hi.
It's possible to read this code and comments in ContainerShapeEdit class:
/**
* Creates the EditPolicies of this EditPart. Subclasses often overwrite
* this method to change the behaviour of the editpart. This implementation
* adds the layout-specific EditPolicy to the super-implementation.
*
* @see ShapeEditPart
*/
@Override
protected void createEditPolicies() {
super.createEditPolicies();
installEditPolicy(EditPolicy.LAYOUT_ROLE, getConfigurationProvider().getEditPolicyFactory()
.createShapeXYLayoutEditPolicy());
// installEditPolicy(EditPolicy.CONTAINER_ROLE,
// getConfigurationProvider().getEditPolicyFactory().createShapeXYLayoutEditPolicy());
installEditPolicy("Snap Feedback", new GFSnapFeedbackPolicy()); //$NON-NLS-1$
}
In the comments it is talked about subclassing. Anybody knows a way to subclass or use a plugin fragment to extend this method, in such a way I can install a new EditPolicy.
Thanks in advance
rui
[Updated on: Thu, 01 November 2012 20:50] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03112 seconds