Package org.eclipse.ui.views.properties

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


            List<IPropertyDescriptor> props = new ArrayList<IPropertyDescriptor>();
            try {
                Map<?, ?> attributes = marker.getAttributes();
                Set<?> keySet = new TreeSet<Object>(attributes.keySet());
                for (Object object : keySet) {
                    props.add(new PropertyDescriptor(object, "" + object));
                }
            } catch (CoreException e) {
                FindbugsPlugin.getDefault().logException(e, "MarkerPropertySource: marker access failed");
            }
            props.add(new PropertyDescriptor(PropId.Bug, "Bug"));
            props.add(new PropertyDescriptor(PropId.Resource, "Resource"));
            props.add(new PropertyDescriptor(PropId.Id, "Marker id"));
            props.add(new PropertyDescriptor(PropId.Type, "Marker type"));
            props.add(new PropertyDescriptor(PropId.CreationTime, "Creation time"));
            propertyDescriptors = props.toArray(new PropertyDescriptor[0]);
        }
View Full Code Here


        return descriptors.toArray(new IPropertyDescriptor[descriptors.size()]);
    }

    private void addDescriptor(String id, String displayName, String category,
            List<IPropertyDescriptor> descriptors) {
        PropertyDescriptor descriptor = new PropertyDescriptor(id, displayName);
        descriptor.setCategory(category);
        descriptors.add(descriptor);
    }
View Full Code Here

        return descriptors.toArray(new IPropertyDescriptor[descriptors.size()]);
    }

    private void addDescriptor(String id, String displayName, String category,
            List<PropertyDescriptor> descriptors) {
        PropertyDescriptor descriptor = new PropertyDescriptor(id, displayName);
        descriptor.setCategory(category);
        descriptors.add(descriptor);
    }
View Full Code Here

        return descriptors.toArray(new IPropertyDescriptor[descriptors.size()]);
    }

    private void addDescriptor(String id, String displayName, String category,
            List<PropertyDescriptor> descriptors) {
        PropertyDescriptor descriptor = new PropertyDescriptor(id, displayName);
        descriptor.setCategory(category);
        descriptors.add(descriptor);
    }
View Full Code Here

        return descriptors.toArray(new IPropertyDescriptor[descriptors.size()]);
    }

    private void addDescriptor(String id, String displayName, String category,
            List<PropertyDescriptor> descriptors) {
        PropertyDescriptor descriptor = new PropertyDescriptor(id, displayName);
        descriptor.setCategory(category);
        descriptors.add(descriptor);
    }
View Full Code Here

  }

  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");
View Full Code Here

  }
 
  @Override
  protected ArrayList<IPropertyDescriptor> getProperties() {
    ArrayList<IPropertyDescriptor> properties = super.getProperties();
    properties.add(new PropertyDescriptor(ruleType, "Rule Type"));
   
    return properties;
  }
View Full Code Here

    }

    @Override
    protected List<IPropertyDescriptor> getCustomPropertyDescriptors() {
        List<IPropertyDescriptor> list = super.getCustomPropertyDescriptors();
        list.add(new PropertyDescriptor(PROPERTY_FORM_FILE, Messages.getString("FormNode.property.formFile")));
        list.add(new PropertyDescriptor(PROPERTY_FORM_VALIDATION_FILE, Messages.getString("FormNode.property.formValidationFile")));
        list.add(new PropertyDescriptor(PROPERTY_FORM_SCRIPT_FILE, Messages.getString("FormNode.property.formScriptFile")));
        return list;
    }
View Full Code Here

   
    @Override
    public List<IPropertyDescriptor> getCustomPropertyDescriptors() {
        List<IPropertyDescriptor> list = new ArrayList<IPropertyDescriptor>();
        list.add(new FormatClassPropertyDescriptor(PROPERTY_FORMAT, Messages.getString("Variable.property.format"), this));
        list.add(new PropertyDescriptor(PROPERTY_PUBLIC_VISIBILITY, Messages.getString("Variable.property.publicVisibility")));
        return list;
    }
View Full Code Here

        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")));
        //}
View Full Code Here

TOP

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

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.