Package tool.model

Examples of tool.model.ToolPlan


      IFolder planFolder = (IFolder)parentElement;
      SupplierPlanFolder supplierFolder = new SupplierPlanFolder(planFolder);

      StartClassMethod startClassMethod = null;

      ToolPlan plan = ToolPlan.fetch(planFolder);;
      if (plan == null){
        System.out.println("Plan not found in cache: " + planFolder.getName());
      } else {
        //check for start class method
        String startClass = plan.getStartClass();
        String startMethod = plan.getStartMethod();
        if (startClass != null && !startClass.isEmpty()){
          startClassMethod = new StartClassMethod(startClass, startMethod, planFolder);
        }

        if (startClassMethod == null)
View Full Code Here


  public String getName(){
    return "Supplier Plans";
  }
 
  public boolean contains(String planName){
    ToolPlan plan = ToolPlan.fetch(planFolder);
    return plan.getSupplierPlans().contains(planName);
  }
View Full Code Here

  public boolean contains(String planName){
    ToolPlan plan = ToolPlan.fetch(planFolder);
    return plan.getSupplierPlans().contains(planName);
  }
  public Object[] getChildren(){
      ToolPlan plan = ToolPlan.fetch(planFolder);
      return plan.getSupplierPlansAsList().toArray();
  }
View Full Code Here

    Set<String> suppliers = plan.getSupplierPlans();
    for (String name : suppliers){
      // skip over forte libraries
      if (ToolProjectSupport.forteLibrariesSet.contains(name))
        continue;
      ToolPlan supplierPlan = ToolPlan.fetch(project, name);
      if (supplierPlan == null){
        continue;
      }
      if (!importedPlans.contains(supplierPlan)){
        traverseAndImport(supplierPlan, importedPlans);
View Full Code Here

     
        IFolder newPlanFolder = sourceFolder.getFolder(planName);
        newPlanFolder.create(IResource.FORCE, true, null);
        newPlanFolder.setPersistentProperty(toolPlanNameQualifiedName, planName);
       
        ToolPlan newToolPlan = ToolPlan.newPlan(newPlanFolder, planName, display, dataBase);
       
        prxFile = newToolPlan.getFile();
    return prxFile;
    }
View Full Code Here

   */
  public static ToolPlan getPlanFromFolder(IFolder planDir) {
    if (!isPlanFolder(planDir))
      return null;
    try {
      ToolPlan plan = (ToolPlan)planDir.getSessionProperty(toolPlanQualifiedName);
      if (plan == null)
        plan = addPlanToFolder(planDir.getName(), planDir);
      return plan;
    } catch (CoreException e) {
      ToolPlugin.showError("Error getting Plan from folder", e);
View Full Code Here

 
 
  public static ToolPlan addPlanToFolder(String planName, IFolder planDir) throws CoreException{
    IFile prxFile = (IFile)planDir.findMember(planDir.getName() + ".prx");
    if (prxFile != null){
      ToolPlan plan = ToolPlan.getInstance(prxFile);
      planDir.setPersistentProperty(toolPlanNameQualifiedName, planName);
      planDir.setSessionProperty(toolPlanQualifiedName, plan);
      return plan;
    }
    return null;
View Full Code Here

      ToolPlugin.showError("Error getting Repository Name from persistence store",e);
    }
    return reposName;
  }
  public static boolean isRunnablePlanFolder(IFolder resource) {
    ToolPlan plan = getPlanFromFolder(resource);
    if (plan == null)
      return false;
    return ((plan.getStartMethod() != null && !plan.getStartMethod().isEmpty()) &&
        (plan.getStartClass() != null && !plan.getStartClass().isEmpty()));
  }
View Full Code Here

TOP

Related Classes of tool.model.ToolPlan

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.