Examples of CreationSupport


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

            "}");
    // initial state
    {
      LayoutInfo layout = panel.getLayout();
      {
        CreationSupport creationSupport = layout.getCreationSupport();
        assertInstanceOf(ImplicitLayoutCreationSupport.class, creationSupport);
        assertTrue(creationSupport.canDelete());
      }
      {
        VariableSupport variableSupport = layout.getVariableSupport();
        assertInstanceOf(LocalUniqueVariableSupport.class, variableSupport);
        assertEquals("rowLayout", variableSupport.getName());
View Full Code Here

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

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

    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

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

    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
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.