use of org.csstudio.opibuilder.editpolicies.WidgetTreeContainerEditPolicy in project yamcs-studio by yamcs.
the class ContainerTreeEditpart method createEditPolicies.
@Override
protected void createEditPolicies() {
super.createEditPolicies();
if (getWidgetModel().isChildrenOperationAllowable()) {
installEditPolicy(EditPolicy.CONTAINER_ROLE, new WidgetContainerEditPolicy());
installEditPolicy(EditPolicy.TREE_CONTAINER_ROLE, new WidgetTreeContainerEditPolicy());
}
// If this editpart is the contents of the viewer, then it is not deletable!
if (getParent() instanceof RootEditPart)
installEditPolicy(EditPolicy.COMPONENT_ROLE, new RootComponentEditPolicy());
}
Aggregations