Package org.eclipse.sapphire.ui.diagram.editor

Examples of org.eclipse.sapphire.ui.diagram.editor.ShapePart.parent()


          ShapeEditPart shapeEditPart = (ShapeEditPart)editPart;
          if (shapeEditPart.getModel() instanceof ShapeModel)
          {
            ShapeModel shapeModel = (ShapeModel)shapeEditPart.getModel();
            ShapePart shapePart = (ShapePart)shapeModel.getSapphirePart();
            if (shapePart.parent() instanceof ShapeFactoryPart)
            {
              moveShapeFactoryPart = true;
              break;
            }
          }
View Full Code Here


    {
      return null;
    }
    ShapeEditPart toMove = (ShapeEditPart)child;
    ShapePart toMovePart = (ShapePart)(((ShapeModel)toMove.getModel()).getSapphirePart());
    ShapeFactoryPart factoryPart = (ShapeFactoryPart)toMovePart.parent();
    List<ShapePart> childShapes = factoryPart.getChildren();

    if (!(after instanceof ShapeEditPart))
    {
         return new MoveShapeInFactoryCommand(factoryPart, toMovePart, -1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.