use of org.yakindu.sct.ui.editor.policies.SetPreferredSizeRequest in project statecharts by Yakindu.
the class InlineSubdiagramHandler method setPreferredSize.
private Object setPreferredSize(ExecutionEvent event) {
IGraphicalEditPart editPart = (IGraphicalEditPart) getFirstElement(HandlerUtil.getCurrentSelection(event));
Command cmd = editPart.getCommand(new SetPreferredSizeRequest(editPart));
AbstractRefactoring.executeCommand(new CommandProxy(cmd), editPart.resolveSemanticElement().eResource());
return null;
}
Aggregations