Package org.fusesource.ide.commons.properties

Examples of org.fusesource.ide.commons.properties.ComplexPropertyDescriptor


      if (propertyType == Boolean.class || propertyType == boolean.class) {
        propertyDest = new BooleanPropertyDescriptor(id, displayName);
      } else if (propertyType == String.class) {
        propertyDest = new TextPropertyDescriptor(id, displayName);
      } else if (propertyType.isPrimitive() || Number.class.isAssignableFrom(propertyType) || Date.class.isAssignableFrom(propertyType)) {
        propertyDest = new ComplexPropertyDescriptor(id, displayName, propertyType);
      } else {
        // TODO support other property types??
        Activator.getLogger().debug("Ignoring property for " + beanType.getName() + " of name: " + displayName + " of type" + propertyType.getName());
      }
      descriptorMap.put(id, descriptor);
View Full Code Here


        } else if (className.equals("java.lang.Boolean")) {
          descriptor = new BooleanPropertyDescriptor(key, keyText);
        } else {
          Class<?> aClass = nameToClassIndex.get(className);
          if (aClass != null) {
            descriptor = new ComplexPropertyDescriptor(key, keyText, aClass);
          } else {
            descriptor = new PropertyDescriptor(key, keyText);
          }
        }
        properties.add(descriptor);
View Full Code Here

TOP

Related Classes of org.fusesource.ide.commons.properties.ComplexPropertyDescriptor

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.