Package org.eclipse.sapphire.ui.diagram.layout

Examples of org.eclipse.sapphire.ui.diagram.layout.DiagramLayoutPersistenceService


        // add bendpoint if collision if the connection part doesn't have any bend points.
        // But we still route the connection for the purpose of calculating next "fan position" correctly.
        // See Bug 374793 - Additional bend points added to connection when visible-when condition on nodes change
               
        Point bendPoint = getConfigurationManager().getConnectionRouter().route(connectionModel);
        DiagramLayoutPersistenceService persistenceService = getSapphirePart().service(DiagramLayoutPersistenceService.class);
            if (persistenceService.read(connPart) == null && bendPoint != null && connPart.getBendpoints().isEmpty())
            {
              List<org.eclipse.sapphire.ui.Point> bendPoints = new ArrayList<org.eclipse.sapphire.ui.Point>(1);
              bendPoints.add(new org.eclipse.sapphire.ui.Point(bendPoint.x, bendPoint.y));
              connectionModel.getModelPart().resetBendpoints(bendPoints);
            }
View Full Code Here


public class SapphireDiagramEditorFactory
{   
    public static DiagramLayoutPersistenceService getLayoutPersistenceService(SapphireDiagramEditorPagePart diagramPart)
    {
      DiagramLayoutPersistenceService layoutPersistentService =
          diagramPart.service(DiagramLayoutPersistenceService.class);
     
        return layoutPersistentService;      
    }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.diagram.layout.DiagramLayoutPersistenceService

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.