Package org.eclipse.e4.xwt.metadata

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


            if (clr != null) {
              loadData.setClr(clr);
            }
          }
          if (targetObject == null) {
            targetObject = metaclass.newInstance(parameters);
            invokeCreatededAction(element, targetObject);
            Widget widget = UserData.getWidget(targetObject);
            if (widget != null) {
              Object clr = loadData.getClr();
              if (clr != null) {
View Full Code Here


      // type = expected type;
      // Need to support the
      String content = element.getContent();
      Object instance = null;
      if (content == null) {
        instance = metaclass.newInstance(new Object[] { swtObject });
        invokeCreatededAction(element, instance);
        if (instance instanceof TableEditor) {
          // TODO should be moved into IMetaclass
          TableEditor tableEditor = (TableEditor) instance;
          if (swtObject instanceof TableItem) {
View Full Code Here

          UserData.setCLR((Widget) clr, clr);
        }
      } else if (currentTagType != null
          && currentTagType.isAssignableFrom(type)) {
        IMetaclass metaclass = loader.getMetaclass(type);
        Object instance = metaclass.newInstance(parameters);
        loadData.setClr(instance);
        // use x:Class's instance
        if (instance instanceof Widget) {
          UserData.setCLR((Widget) instance, instance);
        }
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.