Package org.eclipse.ui.views.properties

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


  public IPropertyDescriptor[] getPropertyDescriptors() {
    IPropertyDescriptor[] returnVal = new IPropertyDescriptor[dbObj
        .keySet().size()];
    int counter = 0;
    for (String propKey : dbObj.keySet()) {
      returnVal[counter] = new PropertyDescriptor(propKey, propKey);
      counter++;
    }
    return returnVal;
  }
View Full Code Here


  }

  @Override
  public IPropertyDescriptor[] getPropertyDescriptors() {
    return new IPropertyDescriptor[]{
        new PropertyDescriptor(NAME, getCaption("collectionPS.name")),
        new PropertyDescriptor(DOCUMENT_COUNT,
            getCaption("collectionPS.documents")),
        new PropertyDescriptor(INDEXES,
            getCaption("collectionPS.indexes")),};
  }
View Full Code Here

    public IPropertyDescriptor[] getPropertyDescriptors() {
      IPropertyDescriptor[] descriptors = new PropertyDescriptor[indexInfo
          .size()];
      for (int i = 0; i < descriptors.length; i++) {
        DBObject indexObj = indexInfo.get(i);
        descriptors[i] = new PropertyDescriptor(indexObj, indexObj.get(
            "name").toString());
      }
      return descriptors;
    }
View Full Code Here

  }

  @Override
  public IPropertyDescriptor[] getPropertyDescriptors() {
    return new IPropertyDescriptor[]{
        new PropertyDescriptor(NAME, getCaption("databasePS.name")),
        new PropertyDescriptor(PROFILING_LEVEL,
            getCaption("databasePS.profileLevel")),};
  }
View Full Code Here

    /**
     * @see org.eclipse.ui.views.properties.IPropertySource#getPropertyDescriptors()
     */
    @Override
    public IPropertyDescriptor[] getPropertyDescriptors() {
        return new IPropertyDescriptor[] { new PropertyDescriptor("hello", "balh") };
    }
View Full Code Here

   * org.eclipse.ui.views.properties.IPropertySource#getPropertyDescriptors()
   */
  @Override
  public IPropertyDescriptor[] getPropertyDescriptors() {
    List<IPropertyDescriptor> descriptors = new ArrayList<IPropertyDescriptor>();
    final PropertyDescriptor user = new PropertyDescriptor(Property.USER, "User");
    final PropertyDescriptor group = new PropertyDescriptor(Property.GROUP, "Group");
    final PropertyDescriptor isDownloaded = new PropertyDescriptor(Property.ISLOCAL, "Is downloaded");
    final PropertyDescriptor perms = new PropertyDescriptor(Property.PERMISSIONS, "Effective Permissions");
    final PropertyDescriptor userPerms = new PropertyDescriptor(Property.USER_PERMISSIONS, "User Permissions");
    final PropertyDescriptor groupPerms = new PropertyDescriptor(Property.GROUP_PERMISSIONS, "Group Permissions");
    final PropertyDescriptor otherPerms = new PropertyDescriptor(Property.OTHER_PERMISSIONS, "Other Permissions");
    descriptors.add(user);
    descriptors.add(group);
    descriptors.add(isDownloaded);
    descriptors.add(perms);
    descriptors.add(userPerms);
View Full Code Here

   */
  @Override
  public IPropertyDescriptor[] getPropertyDescriptors() {
    if (zNode != null) {
      List<IPropertyDescriptor> props = new ArrayList<IPropertyDescriptor>();
      props.add(new PropertyDescriptor(PROP_PATH, "Path"));
      // Versions
      props.add(new PropertyDescriptor(PROP_VERSION, "Version (Node)"));
      props.add(new PropertyDescriptor(PROP_VERSION_CHILDREN, "Version (Children)"));
      props.add(new PropertyDescriptor(PROP_VERSION_ACL, "Version (ACL)"));
      // IDs
      props.add(new PropertyDescriptor(PROP_ID_CREATION, "ID (Creation)"));
      props.add(new PropertyDescriptor(PROP_ID_MODIFICATION, "ID (Modification)"));
      // Time
      props.add(new PropertyDescriptor(PROP_TIME_CREATION, "Created"));
      props.add(new PropertyDescriptor(PROP_TIME_MODIFICATION, "Modified"));
      props.add(new PropertyDescriptor(PROP_TIME_REFRESH, "Refreshed"));
      // Misc
      props.add(new PropertyDescriptor(PROP_CHILD_COUNT, "Children Count"));
      props.add(new PropertyDescriptor(PROP_DATA_SIZE, "Data size"));
      props.add(new PropertyDescriptor(PROP_EPHERMERAL, "Is Ephermeral Node"));
      if (zNode.isEphermeral())
        props.add(new PropertyDescriptor(PROP_EPHERMERAL_SESSION_ID, "Ephermeral Session Id"));
      return props.toArray(new IPropertyDescriptor[props.size()]);
    }
    return new IPropertyDescriptor[0];
  }
View Full Code Here

        Constraint constraint = vertex.getConstraint();
        if ( constraint == null ) {
            return;
        }
        IPropertyDescriptor prop = new PropertyDescriptor( CONSTRAINT,
                                                           CONSTRAINT_CAP );
        addProperty( prop,
                     constraint.toString(),
                     descriptorList,
                     valueMap );
View Full Code Here

        if ( constraints == null ) {
            return;
        }

        for ( int i = 0, length = constraints.length; i < length; i++ ) {
            PropertyDescriptor prop = new PropertyDescriptor( CONSTRAINT + (i + 1),
                                                              CONSTRAINT_CAP + " " + (i + 1) );
            addOther( prop,
                      constraints[i].toString(),
                      descriptorList,
                      valueMap );
View Full Code Here

        Constraint constraint = vertex.getConstraint();
        if ( constraint == null ) {
            return;
        }
        IPropertyDescriptor prop = new PropertyDescriptor( CONSTRAINT,
                                                           CONSTRAINT_CAP );
        addProperty( prop,
                     constraint.toString(),
                     descriptorList,
                     valueMap );
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.