Package com.google.gdt.eclipse.designer.uibinder.parser

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


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

TOP

Related Classes of com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext

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.