Package org.eclipse.sapphire.ui.diagram

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


    if (target == null)
    {
      return false;
    }
    ConnectionService connService = this.diagramPart.service(ConnectionService.class);
    return connService.valid(this.source.getModelPart(), this.target.getModelPart(), this.connDef.getId().content());
  }

  /*
   * (non-Javadoc)
   *
 
View Full Code Here


  }

  private boolean checkSourceReconnection() {
    DiagramConnectionPart connectionPart = this.connection.getModelPart();
    ConnectionService connService = connectionPart.nearest(SapphireDiagramEditorPagePart.class).service(ConnectionService.class);
    if (!connService.valid(newSource.getModelPart(), oldTarget.getModelPart(), connectionPart.getConnectionTypeId()))
      return false;

    return true;
  }
View Full Code Here

  }

  private boolean checkTargetReconnection() {
    DiagramConnectionPart connectionPart = this.connection.getModelPart();
    ConnectionService connService = connectionPart.nearest(SapphireDiagramEditorPagePart.class).service(ConnectionService.class);
    if (!connService.valid(oldSource.getModelPart(), newTarget.getModelPart(), connectionPart.getConnectionTypeId()))
      return false;
       
    return true;
  }
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.