Package org.eclipse.wb.internal.core.xml.model.creation

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


            "<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'"
                + " xmlns:g='urn:import:com.google.gwt.user.client.ui'>",
            "  <g:AbsolutePanel title='__wbp_liveWidget'/>",
            "</ui:UiBinder>"});
    // prepare component
    CreationSupport creationSupport =
        ((ILiveCreationSupport) m_component.getCreationSupport()).getLiveComponentCreation();
    WidgetInfo widget =
        (WidgetInfo) XmlObjectUtils.createObject(
            panel.getContext(),
            m_component.getDescription(),
View Full Code Here


    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));
View Full Code Here

    m_rootModel.accept(new ObjectInfoVisitor() {
      @Override
      public void endVisit(ObjectInfo objectInfo) throws Exception {
        if (objectInfo instanceof XmlObjectInfo) {
          XmlObjectInfo xmlObjectInfo = (XmlObjectInfo) objectInfo;
          CreationSupport creationSupport = xmlObjectInfo.getCreationSupport();
          if (!XmlObjectUtils.isImplicit(xmlObjectInfo)) {
            DocumentElement element = creationSupport.getElement();
            String path = UiBinderParser.getPath(element);
            if (xmlObjectInfo instanceof IsWidgetWrappedInfo) {
              xmlObjectInfo = ((IsWidgetWrappedInfo) xmlObjectInfo).getWrapper();
            }
            m_pathToModelMap.put(path, xmlObjectInfo);
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.xml.model.creation.CreationSupport

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.