Examples of ElementCreationSupport


Examples of org.eclipse.wb.internal.core.xml.model.creation.ElementCreationSupport

      CreationSupport creationSupport) throws Exception {
    super(context, description, creationSupport);
    // prepare CreationSupport
    DocumentElement element = creationSupport.getElement();
    if (element == null) {
      setCreationSupport(new ElementCreationSupport());
      creationSupport = new CreationSupport() {
        @Override
        public void addElement(DocumentElement parent, int index) throws Exception {
          getCreationSupport().addElement(parent, index);
          DocumentElement newElement = getCreationSupport().getElement();
          setCreationSupport(new ElementCreationSupport(newElement));
          m_widget.setCreationSupport(new IsWidgetWrappedCreationSupport(newElement));
        }
      };
    } else {
      setCreationSupport(new ElementCreationSupport(element));
      creationSupport = new IsWidgetWrappedCreationSupport(element);
    }
    // create Widget
    {
      Class<?> widgetClass =
View Full Code Here

Examples of org.eclipse.wb.internal.core.xml.model.creation.ElementCreationSupport

  private void addNewSubMenu() throws Exception {
    MenuBarInfo subMenu =
        (MenuBarInfo) XmlObjectUtils.createObject(
            getContext(),
            "com.google.gwt.user.client.ui.MenuBar",
            new ElementCreationSupport("vertical"));
    XmlObjectUtils.add(subMenu, Associations.direct(), this, null);
  }
View Full Code Here

Examples of org.eclipse.wb.internal.core.xml.model.creation.ElementCreationSupport

    DocumentElement xmlElement = m_pathToElementMap.get(path);
    XmlObjectInfo objectInfo =
        XmlObjectUtils.createObject(
            m_context,
            object.getClass(),
            new ElementCreationSupport(xmlElement));
    GlobalStateXml.activate(objectInfo);
    objectInfo.setObject(object);
    m_pathToModelMap.put(path, objectInfo);
  }
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.