Package org.eclipse.sapphire.ui.swt.gef.presentation

Examples of org.eclipse.sapphire.ui.swt.gef.presentation.ShapeFactoryPresentation


  @Override
  protected void addChildVisual(EditPart childEditPart, int index)
  {
    IFigure child = ((GraphicalEditPart) childEditPart).getFigure();
   
    ShapeFactoryPresentation factory = (ShapeFactoryPresentation)getCastedModel().getShapePresentation();
    int newIndex = index + factory.getIndex();
    ShapeModel shapeModel = (ShapeModel)childEditPart.getModel();
    ShapePresentation shapePresentation = shapeModel.getShapePresentation();
    ContainerShapePresentation parentPresentation = getParentContainer(shapePresentation);
    Object layoutConstraint = ShapeUtil.getLayoutConstraint(shapePresentation,
        parentPresentation.getLayout());
View Full Code Here


        }
      }
    }
    else if (parent instanceof ShapeFactoryPresentation)
    {
      ShapeFactoryPresentation container = (ShapeFactoryPresentation)parent;
      for (ShapePresentation child : container.getChildren())
      {
        ShapePresentation presentation = getChildShapePresentation(child, shapePart);
        if (presentation != null)
        {
          return presentation;
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.swt.gef.presentation.ShapeFactoryPresentation

Copyright © 2018 www.massapicom. 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.