Examples of TextPropertyDescriptor


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

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

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

  @Override
  public IPropertyDescriptor[] getPropertyDescriptors() {
    if (audioModel instanceof AudioFolder) {
      IPropertyDescriptor[] descriptors = new IPropertyDescriptor[2];
      descriptors[0] = new TextPropertyDescriptor(FILE_NAME, Messages.AudioModelProperySource_file_name);
      descriptors[1] = new TextPropertyDescriptor(PATH, Messages.AudioModelProperySource_path);
      return descriptors;
    }
    if (audioModel instanceof AudioFile) {
      IPropertyDescriptor[] descriptors = new IPropertyDescriptor[8];
      descriptors[0] = new TextPropertyDescriptor(FILE_NAME, Messages.AudioModelProperySource_file_name);
      descriptors[1] = new TextPropertyDescriptor(PATH, Messages.AudioModelProperySource_path);
      descriptors[2] = new TextPropertyDescriptor(TAG, Messages.AudioModelProperySource_tag);
      descriptors[3] = new TextPropertyDescriptor(CODEC, Messages.AudioModelProperySource_codes);
      descriptors[4] = new TextPropertyDescriptor(BIT_RATE, Messages.AudioModelProperySource_bit_rate);
      descriptors[5] = new TextPropertyDescriptor(FREQUENCY, Messages.AudioModelProperySource_frequency);
      descriptors[6] = new TextPropertyDescriptor(LENGTH, Messages.AudioModelProperySource_length);
      descriptors[7] = new TextPropertyDescriptor(MODIFIED, Messages.AudioModelProperySource_modified);
      return descriptors;
    }

    return null;
  }
View Full Code Here

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

  protected ArrayList<IPropertyDescriptor> getProperties() {
    ArrayList<IPropertyDescriptor> properties = new ArrayList<IPropertyDescriptor>();
    if (this.node instanceof GeometryModel) {
      properties.add(new PropertyDescriptor(ID, "ID"));
     
      TextPropertyDescriptor desc = new TextPropertyDescriptor(
          NodeModel.PROPERTY_RENAME, "Name");
      properties.add(desc);
      desc = new TextPropertyDescriptor(positionXID, "x");
      desc.setCategory("Geometry");
      properties.add(desc);

      desc = new TextPropertyDescriptor(positionYID, "y");
      desc.setCategory("Geometry");
      properties.add(desc);

      desc = new TextPropertyDescriptor(scaleID, "Scale");
      desc.setCategory("Geometry");
      properties.add(desc);

      desc = new TextPropertyDescriptor(rotateID, "Rotate");
      desc.setCategory("Geometry");
      properties.add(desc);
    }
    return properties;
  }
View Full Code Here

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

  }
 
  protected ArrayList<IPropertyDescriptor> getProperties() {
    ArrayList<IPropertyDescriptor> properties = new ArrayList<IPropertyDescriptor>();
    if (this.node instanceof NodeModel) {
      properties.add(new TextPropertyDescriptor(NodeModel.PROPERTY_RENAME, "Name"));
   
        return properties;
  }
View Full Code Here

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

  }

  public IPropertyDescriptor[] getPropertyDescriptors() {
    ArrayList<IPropertyDescriptor> properties = new ArrayList<IPropertyDescriptor>();
         if (this.node instanceof RuleShapeModel) {
           TextPropertyDescriptor desc = new TextPropertyDescriptor(NodeModel.PROPERTY_RENAME, "Name");
             properties.add(desc);
             desc = new TextPropertyDescriptor(scaleID, "Scale");
             desc.setCategory("Geometry");
             properties.add(desc);
            
             desc = new TextPropertyDescriptor(rotateID, "Rotate");
             desc.setCategory("Geometry");
             properties.add(desc);
            
             ComboBoxPropertyDescriptor combo = new ComboBoxPropertyDescriptor(flipHorizontal, "Flip horizontal", bool);
             desc.setCategory("Geometry");
             properties.add(combo);
            
             combo = new ComboBoxPropertyDescriptor(flipVertical, "Flip vertical", bool);
             desc.setCategory("Geometry");
             properties.add(combo);
         }
         return properties.toArray(new IPropertyDescriptor[0]);

  }
View Full Code Here

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

    public final IPropertyDescriptor[] getPropertyDescriptors() {
        List<IPropertyDescriptor> descriptors = new ArrayList<IPropertyDescriptor>();
        if (this instanceof NamedGraphElement) {
            if (((NamedGraphElement) this).canNameBeSetFromProperties()) {
                descriptors.add(new TextPropertyDescriptor(PROPERTY_NAME, Messages.getString("property.name")));
            } else {
                descriptors.add(new PropertyDescriptor(PROPERTY_NAME, Messages.getString("property.name")));
            }
        }
        //if (this instanceof Describable) {
        descriptors.add(new TextPropertyDescriptor(PROPERTY_DESCRIPTION, Messages.getString("property.description")));
        //}
        if (this instanceof Delegable) {
            String type = ((Delegable) this).getDelegationType();
            descriptors.add(new DelegableClassPropertyDescriptor(PROPERTY_CLASS, Messages.getString("property.delegation.class"), type));
            descriptors.add(new DelegableConfPropertyDescriptor(PROPERTY_CONFIGURATION, (Delegable) this, Messages.getString("property.delegation.configuration")));
View Full Code Here

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

  }

  @Override
  public IPropertyDescriptor[] getPropertyDescriptors() {
    return new IPropertyDescriptor[] {
        new TextPropertyDescriptor("name", "Name"),
        new TextPropertyDescriptor("compatibilityLevel", "Compatibility Level"),
        new TextPropertyDescriptor("libraryName", "Library Name"),
        new TextPropertyDescriptor("UUID", "UUID")
    };
  }
View Full Code Here

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

            if (pd != null)
              result.add(new PropertyDescriptorWrapper(_element,
                  pd));// ,
              // getStatusLineManager()));
            else {
              final PropertyDescriptor pd1 = new TextPropertyDescriptor(
                  attr.getName(), attr.getName());
              pd1.setDescription(attr.getDescription());
              pd1.setCategory(ITabbedPropertiesConstants.OTHER_CATEGORY);
              result.add(new PropertyDescriptorWrapper(_element,
                  pd1));// ,
              // getStatusLineManager()));
            }
View Full Code Here

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

            Map attrs = ((SimpleMarkerAnnotation) fAnnotation).getMarker().getAttributes();
            Object[] keys = attrs.keySet().toArray();

            fDescriptors = new IPropertyDescriptor[keys.length];
            for (int i = 0; i < keys.length; i++) {
              TextPropertyDescriptor descriptor = new TextPropertyDescriptor(keys[i].toString(), keys[i].toString());
              fDescriptors[i] = descriptor;
            }
          }
          else if (fAnnotation instanceof TemporaryAnnotation) {
            Object key = ((TemporaryAnnotation) fAnnotation).getKey();
            if (key != null && key instanceof ReconcileAnnotationKey) {
              String[] keys = TEMPORARY_ANNOTATION_KEYS;
              fDescriptors = new IPropertyDescriptor[keys.length];
              for (int i = 0; i < keys.length; i++) {
                TextPropertyDescriptor descriptor = new TextPropertyDescriptor(keys[i].toString(), keys[i].toString());
                fDescriptors[i] = descriptor;
              }
            }
          }
        }
View Full Code Here

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

            if (pd != null)
              result.add(new PropertyDescriptorWrapper(_element,
                  pd));// ,
              // getStatusLineManager()));
            else {
              final PropertyDescriptor pd1 = new TextPropertyDescriptor(
                  attr.getName(), attr.getName());
              pd1.setDescription(attr.getDescription());
              pd1.setCategory(ITabbedPropertiesConstants.OTHER_CATEGORY);
              result.add(new PropertyDescriptorWrapper(_element,
                  pd1));// ,
              // getStatusLineManager()));
            }
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.