Package com.projity.pm.dependency

Examples of com.projity.pm.dependency.DependencyService


    edgeCache.updateAllVisibleElements();
  }

 
  public void createDependency(GraphicNode startNode,GraphicNode endNode) throws InvalidAssociationException{
    DependencyService service=DependencyService.getInstance();
    HasDependencies startObject=(HasDependencies)startNode.getNode().getImpl();
    HasDependencies endObject=(HasDependencies)endNode.getNode().getImpl();
    //try {
      Dependency dep=service.newDependency(startObject,endObject,DependencyType.FS,0L,this);
    //} catch (InvalidAssociationException e) {
    //  e.printStackTrace();
    //}
  }
View Full Code Here


                                  // handling
                                  // at least
                                  // for undo
        // TODO this code is a hack and does not belong here.
        Dependency dependency = (Dependency) rowNode.getImpl();
        DependencyService dependencyService = DependencyService.getInstance();
        try {
          Duration duration = (Duration) ((col == 4) ? value : getValueAt(row, 4)); // TODO
                                                // can
                                                // not
                                                // assume
                                                // column
                                                // positions
          int type = ((Number) DependencyType.mapStringToValue((String) ((col == 3) ? value : getValueAt(row, 3)))).intValue();

          dependencyService.setFields(dependency, duration.getEncodedMillis(), type, this);
          dependencyService.update(dependency, this);
        } catch (InvalidAssociationException e1) {
          // TODO Auto-generated catch block
          e1.printStackTrace();
        }
      } else {
View Full Code Here

TOP

Related Classes of com.projity.pm.dependency.DependencyService

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.