Package org.dyno.visual.swing.base.ExtensionRegistry

Examples of org.dyno.visual.swing.base.ExtensionRegistry.Sorting


  public void setFieldAccess(int fieldAccess) {
    this.fieldAccess = fieldAccess;
  }

  public ArrayList<IWidgetPropertyDescriptor> getPropertyDescriptors() {
    Sorting sorting = ExtensionRegistry.getCurrentSorting();
    HashMap<String, String> references = new HashMap<String, String>();
    Class beanClass = getWidgetClass();
    ArrayList<IWidgetPropertyDescriptor> propdesc = new ArrayList<IWidgetPropertyDescriptor>();
    for (Category category : sorting.getCategories().values()) {
      Provider provider = getProvider(category.getProviders(), beanClass);
      if (provider != null) {
        for (String refid : provider.getRefIds()) {
          IConfigurationElement prop = this.propertyConfigs.get(refid);
          if (prop != null) {
            references.put(refid, refid);
            IWidgetPropertyDescriptor property = createProperty(prop, beanClass);
            property.setCategory(category.getName());
            property.setFilterFlags(category.getFilters());
            propdesc.add(property);
          }
        }
      }
    }
    String defaultId = sorting.getDefaultCategory();
    Category category = sorting.getCategories().get(defaultId);
    for (String refid : propertyConfigs.keySet()) {
      if (references.get(refid) == null) {
        references.put(refid, refid);
        IConfigurationElement prop = propertyConfigs.get(refid);
        if (prop != null) {
View Full Code Here

TOP

Related Classes of org.dyno.visual.swing.base.ExtensionRegistry.Sorting

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.