Package tool.model

Examples of tool.model.ToolInterface


        ToolType owningClass = (ToolType)method.getParent();
       
        if (returnType != null && !returnType.isEmpty()){
          ToolType cls = ToolClass.fetch(owningClass.getProject(), returnType);
          if (cls == null){
            ToolInterface inter = ToolInterface.fetch(owningClass.getProject(), returnType);
            SelectType.select(owningClass, inter);
          } else {
            SelectType.select(owningClass, cls);
          }
        } else {
View Full Code Here


      children = NO_CHILDREN;
    } else if(parentElement instanceof IFile) {
      /* possible model file */
      IFile modelFile = (IFile) parentElement;
      if(CDF_EXT.equals(modelFile.getFileExtension())) {   
        ToolInterface model = getToolInterface(modelFile);
        children = model.getComponents() ;
      }
    } else if (parentElement instanceof ToolInterface){
      ToolInterface model = (ToolInterface)parentElement;
      children = model.getComponents();
    }
    return children != null ? children : NO_CHILDREN;
  }
View Full Code Here

    }
    return children != null ? children : NO_CHILDREN;
  }

  private ToolInterface getToolInterface(IFile modelFile) {
    ToolInterface model = (ToolInterface)cachedModelMap.get(modelFile);
    if (model == null){
      model = updateModel(modelFile);
    }
    return model;
  }
View Full Code Here

  private ToolInterface updateModel(IFile modelFile) {

    if(CDF_EXT.equals(modelFile.getFileExtension()) ) {
      if (modelFile.exists()) {
        ToolInterface model = ToolInterface.fetch(modelFile.getProject(), modelFile);
        if (model != null) {
          cachedModelMap.put(modelFile, model);
          return model;
        } else {
          cachedModelMap.remove(modelFile);
View Full Code Here

      }
    return null;
  }
  private synchronized ToolInterface updateInterfaceModel(IFile file) {
    if (file.exists()) {
      ToolInterface model = ToolInterface.fetch(file.getProject(), file);
      return model;
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of tool.model.ToolInterface

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.