Package tool.model

Examples of tool.model.ToolType


    lookupButton = new Button(composite, SWT.NONE);
    lookupButton.setImage(ToolEditorActivator.getImage("icons/look_up.gif"));
    lookupButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        ToolType typeClass = ToolClass.fetch(so.getProject(), so.getType());
        TypeSelectionDialog dialog = new TypeSelectionDialog(getSite().getWorkbenchWindow().getShell(), true);
        dialog.setInitialPattern(soClassText.getText());
        dialog.setBlockOnOpen(true);
        if (dialog.open() == Dialog.OK){
          // find the resource and edit it
View Full Code Here


      public void widgetSelected(SelectionEvent e) {
        String typeString = getAttribute().getType();
        String[] parts = typeString.split("\\.");
        ToolComponent type = ToolType.findType(getAttribute().getProject(), parts[0].trim(), parts[1].trim());
        if (type != null){
          ToolType newType = (ToolType) SelectType.select((ToolType)getAttribute().getParent(), type);
          if (newType != null){
            attribute.setType(newType.getFullName());
          }
        }
      }
    });
    new Label(myComposite, SWT.NONE);
View Full Code Here

    lookupButton = new Button(composite, SWT.NONE);
    lookupButton.setImage(ResourceManager.getPluginImage("Tool", "icons/look_up.gif"));
    lookupButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        ToolType typeClass = ToolClass.fetch(so.getProject(), so.getType());
        ToolType newClass = (ToolType) SelectType.select(so, typeClass);
        if (newClass != null)
          so.setType(newClass.getFullName());

      }
    });
    lookupButton.setToolTipText("Class lookup");
    toolkit.adapt(lookupButton, true, true);
View Full Code Here

      @Override
      public void widgetSelected(SelectionEvent e) {
        String typeName = getVirtualAttribute().getType();
        ToolComponent myClass = (ToolComponent) getVirtualAttribute().getParent();
        ToolComponent typeClass = ToolClass.fetch(myClass.getProject(), typeName);
        ToolType newClass = (ToolType) SelectType.select(myClass, typeClass);
        getVirtualAttribute().setType(newClass.getFullName());
      }
    });
    findTypeButton.setImage(ResourceManager.getPluginImage("Tool", "icons/look_up.gif"));
    findTypeButton.setToolTipText("Find Type");
   
View Full Code Here

    Button lookupTypeButton = new Button(composite, SWT.NONE);
    lookupTypeButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        String returnType = method.getReturnType();
        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);
View Full Code Here

    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");
   
    TabItem tbtmProperties = new TabItem(tabFolder, SWT.NONE);
View Full Code Here

  @Override
  public IStatus validate(Object object) {
    if (!(object instanceof String))
      return ValidationStatus.error("Value is not a String");
    ToolType foundClass = ToolClass.fetch(project, (String)object);
    if (foundClass == null){
      return ValidationStatus.error("Type not found");
    } else {
      return ValidationStatus.ok();
    }
View Full Code Here

TOP

Related Classes of tool.model.ToolType

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.