Search in sources :

Example 6 with GraphicalEditPart

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);
}
Also used : IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection) GraphicalEditPart(org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart)

Aggregations

GraphicalEditPart (org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart)6 IGraphicalEditPart (org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart)5 EditDomain (org.eclipse.gef.EditDomain)2 EditPart (org.eclipse.gef.EditPart)2 AbstractConnectionEditPart (org.eclipse.gef.editparts.AbstractConnectionEditPart)2 DiagramEditDomain (org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditDomain)2 IDecorator (org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecorator)2 Bounds (org.eclipse.gmf.runtime.notation.Bounds)2 Insets (org.eclipse.draw2d.geometry.Insets)1 Rectangle (org.eclipse.draw2d.geometry.Rectangle)1 EObject (org.eclipse.emf.ecore.EObject)1 Node (org.eclipse.gmf.runtime.notation.Node)1 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)1 RegionEditPart (org.yakindu.sct.ui.editor.editparts.RegionEditPart)1 TransitionEditPart (org.yakindu.sct.ui.editor.editparts.TransitionEditPart)1