Package org.eclipse.sapphire.ui.diagram

Examples of org.eclipse.sapphire.ui.diagram.ConnectionService.list()


    }
  }
 
  private void constructConnections() {
    ConnectionService connService = getSapphirePart().service(ConnectionService.class);
    for (DiagramConnectionPart connPart : connService.list())
    {
      addConnection(connPart);
    }
   
  }
View Full Code Here


            }
            else if( selectedPart instanceof SapphireDiagramEditorPagePart )
            {
                nodes = page.getNodes().size();
               
                final List<DiagramConnectionPart> allConnections = connService.list();
               
                connections = allConnections.size();
               
                for( DiagramConnectionPart connection : allConnections )
                {
View Full Code Here

        }       
      }
    }
   
    // Listen on existing connection parts
    for (DiagramConnectionPart connPart : connService.list())
    {
      connPart.attach(this.connectionPartListener);
    }
   
  }
View Full Code Here

        writeComponentBounds(component, nodePart);
      }
    }
    SapphireDiagramEditorPagePart diagramPart = context( SapphireDiagramEditorPagePart.class );
    ConnectionService connService = diagramPart.service(ConnectionService.class);
    for (DiagramConnectionPart connPart : connService.list())
    {
      ComponentDependency dependency = (ComponentDependency)connPart.getLocalModelElement();
      if (!dependency.disposed())
      {
        writeDependencyBendPoints(dependency, connPart);
View Full Code Here

        {
          changed = true;
          break;
        }
      }
      for (DiagramConnectionPart connPart : connService.list())
      {
        if (!connPart.getLocalModelElement().disposed() && isConnectionLayoutChanged(connPart))
        {
          changed = true;
          break;
View Full Code Here

  private void refreshPersistedPartsCache()
  {
    this.nodeBounds.clear();
    this.connectionBendPoints.clear();
    ConnectionService connService = context(SapphireDiagramEditorPagePart.class).service(ConnectionService.class);   
    for (DiagramConnectionPart connPart : connService.list())
    {
      addConnectionToPersistenceCache(connPart);
    }
    for (DiagramNodePart nodePart : context( SapphireDiagramEditorPagePart.class ).getNodes())
    {
View Full Code Here

    private void deleteNodeConnections(DiagramNodePart nodePart)
    {
      Element nodeElement = nodePart.getLocalModelElement();
      SapphireDiagramEditorPagePart diagramPart = nodePart.getDiagramNodeTemplate().getDiagramEditorPart();
      ConnectionService connService = diagramPart.service(ConnectionService.class);
      for (DiagramConnectionPart connPart : connService.list())
      {
       if (connPart.removable() &&
           ((connPart.getEndpoint1() != null && connPart.getEndpoint1() == nodeElement) ||
               connPart.getEndpoint2() != null && connPart.getEndpoint2() == nodeElement))
       {
View Full Code Here

        }
      }
    }
   
    // Listen on existing connection parts
    for (DiagramConnectionPart connPart : connService.list())
    {
      connPart.attach(this.connectionPartListener);
    }
   
  }
View Full Code Here

 
  private void addConnectionsToModel()
  {
    this.layoutModel.getDiagramConnectionsLayout().clear();
    ConnectionService connService = context(SapphireDiagramEditorPagePart.class).service(ConnectionService.class);
    for (DiagramConnectionPart connPart : connService.list())
    {
      if (!connPart.removable() || (connPart instanceof StandardEmbeddedConnectionPart))
        continue;
      String id = connPart.getId();
      DiagramConnectionLayout conn = null;
View Full Code Here

  private void refreshPersistedPartsCache()
  {
    this.nodeBounds.clear();
    this.connectionBendPoints.clear();
    ConnectionService connService = context(SapphireDiagramEditorPagePart.class).service(ConnectionService.class);
    for (DiagramConnectionPart connPart : connService.list())
    {
      if (connPart.removable())
      {
        addConnectionToPersistenceCache(connPart);
      }
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.