Examples of possibleConnectionDefs()


Examples of org.eclipse.sapphire.ui.diagram.editor.SapphireDiagramEditorPagePart.possibleConnectionDefs()

        final ListFactory<SapphireActionHandler> handlers = ListFactory.start();
        if (getPart() instanceof DiagramNodePart)
        {
          DiagramNodePart nodePart = (DiagramNodePart)getPart();
          SapphireDiagramEditorPagePart pagePart = nodePart.nearest(SapphireDiagramEditorPagePart.class);
          List<IDiagramConnectionDef> connectionDefs = pagePart.possibleConnectionDefs(nodePart);
          for (IDiagramConnectionDef connDef : connectionDefs)
          {
            NodeCreateConnectionActionHandler handler = new NodeCreateConnectionActionHandler(connDef);
            handlers.add(handler);
          }
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.