Package org.eclipse.sapphire.ui.diagram.editor

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


{
    @Override
    protected Object run( final Presentation context )
    {
        final SapphireDiagramEditorPagePart page = (SapphireDiagramEditorPagePart) getPart();
        ConnectionService connService = page.service(ConnectionService.class);
       
        int nodes = 0;
        int connections = 0;
        int bendpoints = 0;
       
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())
      {
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

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.