Examples of TextPropertyDescriptor


Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

    return descriptors;
  }

  private IPropertyDescriptor createTextPropertyDescriptor(CMAttributeDeclaration attrDecl, Attr attr) {
    String attrName = DOMNamespaceHelper.computeName(attrDecl, fNode, null);
    TextPropertyDescriptor descriptor = new TextPropertyDescriptor(attrName, attrName);
    descriptor.setCategory(getCategory(attrDecl, attr));
    descriptor.setDescription(attrName);
    if ((attrDecl.getUsage() != CMAttributeDeclaration.REQUIRED) && fSetExpertFilter) {
      descriptor.setFilterFlags(new String[]{IPropertySheetEntry.FILTER_ID_EXPERT});
    }
    return descriptor;
  }
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

        result = createDefaultPropertyDescriptor(parentElement.getNodeName());
      }
    }

    if (result == null) {
      result = new TextPropertyDescriptor(HACK, HACK);
    }

    return result;
  }
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

    if (ad != null) {
      result = createPropertyDescriptorHelper(attributeName, attr.getOwnerElement(), ad);
    }

    if (result == null) {
      result = new TextPropertyDescriptor(attributeName, attributeName);
    }

    return result;
  }
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

        result = createTextPropertyDescriptor(text);
      }
    }

    if (result == null) {
      result = new TextPropertyDescriptor(HACK, HACK);
    }
    return result;
  }
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

  }

  private IPropertyDescriptor createDefaultPropertyDescriptor(String attributeName, boolean hideOnFilter) {
    // The descriptor class used here is also used in
    // updatePropertyDescriptors()
    TextPropertyDescriptor descriptor = new TextPropertyDescriptor(attributeName, attributeName);
    descriptor.setCategory(getCategory(null, null));
    descriptor.setDescription(attributeName);
    if (hideOnFilter && fSetExpertFilter) {
      descriptor.setFilterFlags(new String[]{IPropertySheetEntry.FILTER_ID_EXPERT});
    }
    return descriptor;
  }
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

  public IPropertyDescriptor createCommentPropertyDescriptor(Comment comment) {
    return createDefaultPropertyDescriptor(HACK);
  }

  protected IPropertyDescriptor createDefaultPropertyDescriptor(String attributeName) {
    TextPropertyDescriptor descriptor = new TextPropertyDescriptor(attributeName, attributeName);
    return descriptor;
  }
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

        descriptors = new IPropertyDescriptor[oldDescriptors.length + parameters.size() + (fullProps ? 5 : 4)];
        System.arraycopy(oldDescriptors, 0, descriptors, 0, oldDescriptors.length);
        int i = 0;
        for (ParameterDefinition def: parameters) {
            descriptors[oldDescriptors.length + (i++)] =
                new TextPropertyDescriptor(def.getName(), def.getName());
        }
        if (fullProps) {
          descriptors[descriptors.length - 5] =
              new ComboBoxPropertyDescriptor(WAIT_FOR_COMPLETION, "Wait for completion", new String[] {"true", "false"});
        }
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

        super.initDescriptors();
        IPropertyDescriptor[] parentDescriptors = descriptors;
        descriptors = new IPropertyDescriptor[parentDescriptors.length + 1];
        System.arraycopy(parentDescriptors, 0, descriptors, 0, parentDescriptors.length);
        descriptors[descriptors.length - 1] =
            new TextPropertyDescriptor(SWIMLANE, "Swimlane");
    }
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

    }

    public void initPropertyDescriptors() {
      if (isFullProperties()) {
          descriptors = new IPropertyDescriptor[] {
              new TextPropertyDescriptor(NAME, "Name"),
              new TextPropertyDescriptor(VERSION, "Version"),
              new TextPropertyDescriptor(ID, "Id"),
              new TextPropertyDescriptor(PACKAGE_NAME, "Package"),
              new ComboBoxPropertyDescriptor(ROUTER_LAYOUT, "Connection Layout",
                  new String[] { "Manual", "Manhattan", "Shortest Path" }),
              new ListPropertyDescriptor(VARIABLES, "Variables", VariableListCellEditor.class),
              new ListPropertyDescriptor(SWIMLANES, "Swimlanes",
                  SwimlanesCellEditor.class),
              new ExceptionHandlersPropertyDescriptor(EXCEPTION_HANDLERS,
                  "Exception Handlers", process),
          };
      } else {
        descriptors = new IPropertyDescriptor[] {
              new TextPropertyDescriptor(NAME, "Name"),
              new TextPropertyDescriptor(VERSION, "Version"),
              new TextPropertyDescriptor(ID, "Id"),
              new TextPropertyDescriptor(PACKAGE_NAME, "Package"),
              new ListPropertyDescriptor(VARIABLES, "Variables", VariableListCellEditor.class),
              new ListPropertyDescriptor(SWIMLANES, "Swimlanes",
                  SwimlanesCellEditor.class),
          };
      }
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

    super();
    createDefaultNote();
    initializeNote();
    // Reuse of TextPropertyDescriptors for saving memory
   
    TextPropertyDescriptor tpd = new TextPropertyDescriptor(
        StringConstants.NOTE_TIMESTAMP, StringConstants.NOTE_TIMESTAMP);
    tpd.setCategory(this.toString());
    tpd.setValidator(PropertyDescriptorValidatorProvider
        .getTimeStampValidatorInstance());
    descriptors.add(tpd);
   
    tpd = new TextPropertyDescriptor(StringConstants.NOTE_OCTAVE,
        StringConstants.NOTE_OCTAVE);
    tpd.setCategory(this.toString());
    tpd.setValidator(PropertyDescriptorValidatorProvider
        .getOctaveValidatorInstance());
    tpd.setDescription(MusicMessages.MEI_documentation_note_oct);
    descriptors.add(tpd);
   
    tpd = new TextPropertyDescriptor(StringConstants.NOTE_STEM_LENGTH,
        StringConstants.NOTE_STEM_LENGTH);
    tpd.setCategory(this.toString());
    tpd.setValidator(PropertyDescriptorValidatorProvider
        .getStemLengthValidatorInstance());
    tpd.setDescription(MusicMessages.MEI_documentation_note_stemlen);
    descriptors.add(tpd);
   
    tpd = new TextPropertyDescriptor(StringConstants.NOTE_DOTS,
        StringConstants.NOTE_DOTS);
    tpd.setCategory(this.toString());
    tpd.setValidator(PropertyDescriptorValidatorProvider
        .getPositiveNumberValidatorInstance());
    tpd.setDescription(MusicMessages.MEI_documentation_note_dots);
    descriptors.add(tpd);
   
    tpd = new TextPropertyDescriptor(StringConstants.NOTE_SYL,
        StringConstants.NOTE_SYL);
    tpd.setCategory(this.toString());
    tpd.setDescription(MusicMessages.MEI_documentation_note_syl);
    descriptors.add(tpd);
   
    tpd = new TextPropertyDescriptor(StringConstants.NOTE_N,
        StringConstants.NOTE_N);
    tpd.setCategory(StringConstants.CAT_BASIC);
    tpd.setDescription(MusicMessages.MEI_documentation_generic_n);
    descriptors.add(tpd);
   
    ComboBoxPropertyDescriptor cpd = new ComboBoxPropertyDescriptor(
        StringConstants.NOTE_STEM_DIR, StringConstants.NOTE_STEM_DIR,
        GraphicalConstants.PROPCOMBO_STRING_ARRAY_STEMVALUES);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.