Package org.eclipse.sapphire.ui.diagram

Examples of org.eclipse.sapphire.ui.diagram.ConnectionDeleteEvent


    {
      List<StandardDiagramConnectionPart> connParts = new ArrayList<StandardDiagramConnectionPart>();
      connParts.addAll(this.getDiagramConnections(srcNodeModel));
      for (StandardDiagramConnectionPart connPart : connParts)
      {
            notifyConnectionDeleteEvent(new ConnectionDeleteEvent(connPart));
            disposeConnectionPart(connPart);       
      }
    }
View Full Code Here


        Element endpt1 = connPart.getEndpoint1();
        Element endpt2 = connPart.getEndpoint2();
        DiagramNodePart nodePart1 = this.diagramEditor.getDiagramNodePart(endpt1);
        if (nodePart1 != null && nodePart1.getDiagramNodeTemplate() == nodeTemplate)
        {
          notifyConnectionDeleteEvent(new ConnectionDeleteEvent(connPart));
        }
        else
        {
          DiagramNodePart nodePart2 = this.diagramEditor.getDiagramNodePart(endpt2);
            if (nodePart2 != null && nodePart2.getDiagramNodeTemplate() == nodeTemplate)
            {
              notifyConnectionDeleteEvent(new ConnectionDeleteEvent(connPart));
            }         
        }
      }
    }
View Full Code Here

        for (Element deletedConn : deletedConns)
        {
            StandardDiagramConnectionPart connPart = getConnectionPart(connListParent, deletedConn);
            if (connPart != null)
            {
                notifyConnectionDeleteEvent(new ConnectionDeleteEvent(connPart));
                disposeConnectionPart(connPart);
            }
        }
        // Handle newly created connections
        for (Element newConn : newConns)
View Full Code Here

            {
                Element connElement = connPart.getLocalModelElement();               
                Element connParentElement = connElement.parent().element();
                if (deletedConnParents.contains(connParentElement))
                {
                    notifyConnectionDeleteEvent(new ConnectionDeleteEvent(connPart));
                    disposeConnectionPart(connPart);                       
                }
            }           
            // new connection parents are added and we need to listen on their connection list property
            ModelPath.PropertySegment head = (ModelPath.PropertySegment)this.originalEndpoint2Path.head();
View Full Code Here

    {
        removeModelListener();
        List<StandardDiagramConnectionPart> connParts = getDiagramConnections(null);
        for (StandardDiagramConnectionPart connPart : connParts)
        {
          notifyConnectionDeleteEvent(new ConnectionDeleteEvent(connPart));
            connPart.dispose();
        }
    }
View Full Code Here

    public void notifyConnectionDelete(StandardImplicitConnectionPart connPart)
    {
        for( DiagramImplicitConnectionTemplateListener listener : this.templateListeners )
        {
            listener.handleConnectionDeleteEvent(new ConnectionDeleteEvent(connPart));
        }       
    }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.diagram.ConnectionDeleteEvent

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.