Package tool.model

Examples of tool.model.ToolComponent


    Button lookupButton = new Button(nameComposite, SWT.NONE);
    lookupButton.setImage(ResourceManager.getPluginImage("Tool", "icons/look_up.gif"));
    lookupButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        ToolComponent superClass = getCdf().getToolSuperClass();
        ToolType newClass = (ToolType) SelectType.select(cdf, superClass);
        cdf.setSuperClass(newClass.getFullName());
      }
    });
    lookupButton.setToolTipText("Lookup Super Class");
View Full Code Here


    } else if(parentElement instanceof IFile) {
      /* possible model file */
      IFile modelFile = (IFile) parentElement;
      if(CDF_EXT.equals(modelFile.getFileExtension())) {
        try {
          ToolComponent model;
          if (intDesc.describe(modelFile.getContents(), null)==IContentDescriber.VALID){
            model = ToolInterface.fetch(modelFile.getProject(), modelFile);
            children = model.getComponents() ;
          }else if ((classDesc.describe(modelFile.getContents(), null)==IContentDescriber.VALID)||
              (mappedDesc.describe(modelFile.getContents(), null)==IContentDescriber.VALID)){
            model = ToolClass.fetch(modelFile);
            children = model.getComponents() ;
          }
        } catch (IOException e) {
          ToolPlugin.showError("Error in CDF conten provider", e);
        } catch (CoreException e) {
          ToolPlugin.showError("Error in CDF conten provider", e);
        }
       
      }
    } else if (parentElement instanceof ToolClass){
      ToolComponent model = (ToolComponent)parentElement;
      children = model.getComponents();
    }
    return children != null ? children : NO_CHILDREN;
 
View Full Code Here

   * @param modelFile The IFile which contains the persisted model
   */
  private synchronized ToolComponent updateClassModel(IFile modelFile) {

      if (modelFile.exists()) {
        ToolComponent model = ToolClass.fetch(modelFile);
        return model;
      }
    return null;
  }
View Full Code Here

TOP

Related Classes of tool.model.ToolComponent

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.