Package org.eclipse.ui.views.properties

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


    if (element instanceof CompositeDataPropertySource) {
      int idx = cell.getColumnIndex();
      CompositeDataPropertySource cdps = (CompositeDataPropertySource) element;
      IPropertyDescriptor[] propertyDescriptors = cdps.getPropertyDescriptors();
      if (propertyDescriptors != null && propertyDescriptors.length > idx && idx >= 0) {
        IPropertyDescriptor descriptor = propertyDescriptors[idx];
        if (descriptor != null) {
          Object value = cdps.getPropertyValue(descriptor.getId());
          if (value instanceof Long) {
            Long l = (Long) value;
            long timestamp = l.longValue();
            if (timestamp <= 0) {
              return null;
View Full Code Here


      String keyText = key.toString();
      keyNames.add(keyText);
      final OpenType<?> type = compositeType.getType(keyText);
      if (type != null) {
        final String className = type.getClassName();
        IPropertyDescriptor descriptor;
        if (type.isArray()) {
          descriptor = new ListPropertyDescriptor(key, keyText);
        } else if (className.equals("java.lang.String")) {
          descriptor = new TextPropertyDescriptor(key, keyText);
        } else if (className.equals("java.lang.Boolean")) {
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.IPropertyDescriptor

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.