Package org.dyno.visual.swing.base

Examples of org.dyno.visual.swing.base.PropertySource2


  public IPropertySource getPropertySource(Object object) {
    if (object instanceof Border) {
      IWidgetPropertyDescriptor[] properties = getBorderProperties();
      if (properties != null)
        return new PropertySource2(new StructuredSelection(object), properties);
    }
    return null;
  }
View Full Code Here


      return getCommonSuperClass(clazz1.getSuperclass(), clazz2.getSuperclass());
  }
 
  public IPropertySource getPropertySource(Object object) {
    if (object == null)
      return new PropertySource2(null, new IWidgetPropertyDescriptor[0]);
    IPropertySourceProvider provider = getProvider(object);
    if (provider != null) {
      return provider.getPropertySource(object);
    } else
      return null;
View Full Code Here

      IWidgetPropertyDescriptor[] properties = propdesc.toArray(new IWidgetPropertyDescriptor[propdesc.size()]);
      String lnfClassname = null;
      if (!selection.isEmpty()) {
        lnfClassname = getLnfClassname();
      }
      return new PropertySource2(lnfClassname, selection, properties);
    } else {
      if (!isRoot()) {
        propdesc.add(new BeanNameProperty(this));
        propdesc.add(new FieldAccessProperty(this));
        propdesc.add(new GetAccessProperty(this));
      }
      IWidgetPropertyDescriptor[] properties = propdesc.toArray(new IWidgetPropertyDescriptor[propdesc.size()]);
      return new PropertySource2(getLnfClassname(), new StructuredSelection(new Object[] { object }), properties);
    }
  }
View Full Code Here

  public void paintGrid(Graphics clipg) {
  }
  public void paintAnchor(Graphics g) {
  } 
  public IPropertySource getPropertySource(Object layout) {   
    return new PropertySource2(new StructuredSelection(layout), getLayoutProperties());
  }
View Full Code Here

TOP

Related Classes of org.dyno.visual.swing.base.PropertySource2

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.