use of org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart in project statecharts by Yakindu.
the class GroupStatesIntoCompositeHandler method setContext.
@SuppressWarnings("unchecked")
@Override
public void setContext(AbstractRefactoring<GraphicalEditPart> refactoring, ISelection selection) {
IStructuredSelection structuredSelection = (IStructuredSelection) selection;
List<GraphicalEditPart> editParts = structuredSelection.toList();
refactoring.setContextObjects(editParts);
}
Aggregations