Examples of UiBinderContext


Examples of com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext

   */
  protected final XmlObjectInfo _parse(String path, String content) throws Exception {
    IFile file = setFileContent(path, content);
    IDocument document = new Document(content);
    // prepare UiBinderContext
    UiBinderContext context = new UiBinderContext(file, document);
    m_lastContext = context;
    // parse
    try {
      UiBinderParser parser = new UiBinderParser(context);
      m_lastObject = parser.parse();
      m_lastLoader = m_lastContext.getClassLoader();
    } finally {
      m_lastState = context.getState();
    }
    // done
    return m_lastObject;
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext

        "  <g:FlowPanel ui:field='oldName'/>",
        "</ui:UiBinder>");
    refresh();
    // do @UiField rename
    {
      UiBinderContext context = (UiBinderContext) m_lastContext;
      IField modelField = context.getFormType().getField("oldName");
      RenameSupport renameSupport =
          RenameSupport.create(modelField, "newName", RenameSupport.UPDATE_REFERENCES);
      renameSupport.perform(DesignerPlugin.getShell(), DesignerPlugin.getActiveWorkbenchWindow());
    }
    assertEquals(
View Full Code Here

Examples of com.google.gwt.uibinder.rebind.UiBinderContext

  public MockUiBinderWriter(JClassType baseClass, String implClassName, String templatePath,
      TypeOracle oracle, MortalLogger logger, FieldManager fieldManager,
      MessagesWriter messagesWriter, String binderUri, ResourceOracle resourceOracle)
      throws UnableToCompleteException {
    super(baseClass, implClassName, templatePath, oracle, logger, fieldManager, messagesWriter,
        DesignTimeUtilsStub.EMPTY, new UiBinderContext(), true, false, binderUri, resourceOracle);
  }
View Full Code Here

Examples of com.google.gwt.uibinder.rebind.UiBinderContext

        code.append("}\n");
        return code;
      }
    };
    return new ElementParserTester(PARSED_TYPE,
        new UiChildParser(new UiBinderContext()), invalidParamType);
  }
View Full Code Here

Examples of com.google.gwt.uibinder.rebind.UiBinderContext

        code.append("}\n");
        return code;
      }
    };

    return new ElementParserTester(PARSED_TYPE, new UiChildParser(new UiBinderContext()),
        paramType, paramTypeImpl, editor, checkBox, hasUiChildren);
  }
View Full Code Here

Examples of com.google.gwt.uibinder.rebind.UiBinderContext

  private UiBinderContext uiBinderCtx;

  @Override
  protected void setUp() throws Exception {
    super.setUp();
    uiBinderCtx = new UiBinderContext();
    gwtTypeAdapter = new JClassTypeAdapter();
    ownerType = gwtTypeAdapter.adaptJavaClass(this.getClass());
  }
View Full Code Here

Examples of com.google.gwt.uibinder.rebind.UiBinderContext

  private UiBinderContext uiBinderCtx;

  @Override
  protected void setUp() throws Exception {
    super.setUp();
    uiBinderCtx = new UiBinderContext();
    gwtTypeAdapter = new JClassTypeAdapter();
  }
View Full Code Here

Examples of com.google.gwt.uibinder.rebind.UiBinderContext

  protected void setUp() throws Exception {
    super.setUp();
    CompilationState state = CompilationStateBuilder.buildFrom(
        createCompileLogger(), new CompilerContext(), getJavaResources());
    types = state.getTypeOracle();
    uiBinderCtx = new UiBinderContext();
    labelType = types.findType("com.google.gwt.user.client.ui.Label");
    buttonType = types.findType("com.google.gwt.user.client.ui.Button");
    clickEventType = types.findType("com.google.gwt.event.dom.client.ClickEvent");
    mouseOverEventType = types.findType("com.google.gwt.event.dom.client.MouseOverEvent");
  }
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.