Package org.eclipse.ui.views.properties

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


  public DynamForm() {
    super();
    createDefaultDynam();
    initializeDynam();
   
    TextPropertyDescriptor tpd = new TextPropertyDescriptor(
        StringConstants.DYNAM_VALUE, StringConstants.DYNAM_VALUE);
    tpd.setCategory(this.toString());
    descriptors.add(tpd);
   
    tpd = new TextPropertyDescriptor(StringConstants.DYNAM_START_ID,
        StringConstants.DYNAM_START_ID);
    tpd.setCategory(this.toString());
    tpd.setValidator(PropertyDescriptorValidatorProvider
        .getExistentIdValidatorInstance());
    descriptors.add(tpd);
   
    tpd = new TextPropertyDescriptor(StringConstants.DYNAM_TIMESTAMP,
        StringConstants.DYNAM_TIMESTAMP);
    tpd.setCategory(this.toString());
    tpd.setValidator(PropertyDescriptorValidatorProvider
        .getTimeStampValidatorInstance());
    descriptors.add(tpd);
   
    tpd = new TextPropertyDescriptor(StringConstants.DYNAM_N, StringConstants.DYNAM_N);
    tpd.setCategory(StringConstants.CAT_BASIC);
    tpd.setDescription(MusicMessages.MEI_documentation_generic_n);
    descriptors.add(tpd);
   
    ComboBoxPropertyDescriptor cpd = new ComboBoxPropertyDescriptor(
        StringConstants.DYNAM_PLACE, StringConstants.DYNAM_PLACE,
        GraphicalConstants.PROPCOMBO_STRING_ARRAY_PLACES);
View Full Code Here


    List<IPropertyDescriptor> descs = new ArrayList<IPropertyDescriptor>();
    for (Parameter parameter : type.getParameters()) {
      if (!(parameter.getType() == List.class || parameter.getType() == Map.class)) {
        String name = parameter.getName();
        TextPropertyDescriptor desc = new TextPropertyDescriptor(name,
            name);
        descs.add(desc);
      }
    }
View Full Code Here

            properties.putAll(propertiesToAdd);

        descriptors = new IPropertyDescriptor[properties.size()];
        int i = 0;
        for (Entry<String, Object> entry : properties.entrySet()) {
            descriptors[i] = new TextPropertyDescriptor(entry.getKey(), getLocalizedString(entry.getKey()));
            if (entry.getValue() instanceof Number) {
                ((TextPropertyDescriptor) descriptors[i]).setValidator(new ICellEditorValidator() {
                    public String isValid(Object value) {
                        int intValue = -1;
                        if (value instanceof String) {
View Full Code Here

        descriptors[descriptors.length - 3] =
            new SubProcessParameterOutMappingPropertyDescriptor(PARAMETER_OUT_MAPPING, "Parameter Out Mapping", getSubProcessNode());
        descriptors[descriptors.length - 2] =
            new ComboBoxPropertyDescriptor(INDEPENDENT, "Independent", new String[] {"true", "false"});
        descriptors[descriptors.length - 1] =
            new TextPropertyDescriptor(PROCESS_ID, "ProcessId");
    }
View Full Code Here

        descriptors = new IPropertyDescriptor[oldDescriptors.length + 1];
        System.arraycopy(oldDescriptors, 0, descriptors, 0, oldDescriptors.length);
//        descriptors[descriptors.length - 3] = getOnEntryPropertyDescriptor();
//        descriptors[descriptors.length - 2] = getOnExitPropertyDescriptor();
        descriptors[descriptors.length - 1] =
            new TextPropertyDescriptor(RULE_FLOW_GROUP, "RuleFlowGroup");
    }
View Full Code Here

        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

        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

      boolean fullProps = isFullProperties();
        descriptors = new IPropertyDescriptor[DefaultElementWrapper.DESCRIPTORS.length + (fullProps ? 4 : 1)];
        System.arraycopy(DefaultElementWrapper.DESCRIPTORS, 0, descriptors, 0, DefaultElementWrapper.DESCRIPTORS.length);
        if (fullProps) {
          descriptors[descriptors.length - 4] =
              new TextPropertyDescriptor(START_NODE, "StartNodeId");
          descriptors[descriptors.length - 3] =
              new TextPropertyDescriptor(END_NODE, "EndNodeId");
          descriptors[descriptors.length - 2] =
              new ExceptionHandlersPropertyDescriptor(EXCEPTION_HANDLERS,
                  "Exception Handlers", getProcessWrapper().getProcess());
        }
        descriptors[descriptors.length - 1] =
View Full Code Here

    }

    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

   
    private void setDescriptors() {
        descriptors = new IPropertyDescriptor[AbstractNodeWrapper.DESCRIPTORS.length + 2];
        System.arraycopy(AbstractNodeWrapper.DESCRIPTORS, 0, descriptors, 0, AbstractNodeWrapper.DESCRIPTORS.length);
        descriptors[descriptors.length - 2] =
            new TextPropertyDescriptor(TIMER_DELAY, "Timer Delay");
        descriptors[descriptors.length - 1] =
            new TextPropertyDescriptor(TIMER_PERIOD, "Timer Period");
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.views.properties.TextPropertyDescriptor

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.