Package org.eclipse.e4.xwt.metadata

Examples of org.eclipse.e4.xwt.metadata.IMetaclass.findProperty()


   *
   * @param javaclass
   */
  static public Object getPropertyValue(Object uiElement, String propertyName) {
    IMetaclass metaclass = XWT.getMetaclass(uiElement);
    IProperty property = metaclass.findProperty(propertyName);
    if (property == null) {
      return null;
    }
    return XWTLoaderManager.getActive().getPropertyValue(uiElement,
        property);
View Full Code Here


   * @param javaclass
   */
  static public void setPropertyValue(Object uiElement, String propertyName,
      Object value) {
    IMetaclass metaclass = XWT.getMetaclass(uiElement);
    IProperty property = metaclass.findProperty(propertyName);
    if (property == null) {
      throw new XWTException("Property " + propertyName + " not found.");
    }
    XWTLoaderManager.getActive().setPropertyValue(uiElement, property,
        value);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.