Package com.google.gdt.eclipse.designer.model.module

Examples of com.google.gdt.eclipse.designer.model.module.AbstractModuleElement


    // add definition for factory to xxx.gwt.xml
    {
      ModuleDescription moduleDescription = Utils.getSingleModule(packageFragment);
      DefaultModuleProvider.modify(moduleDescription, new ModuleModification() {
        public void modify(ModuleElement moduleElement) throws Exception {
          AbstractModuleElement replaceElement = new AbstractModuleElement("replace-with");
          moduleElement.addChild(replaceElement);
          replaceElement.setAttribute("class", packageName + "." + className + "Impl");
          //
          AbstractModuleElement whenElement = new AbstractModuleElement("when-type-is");
          replaceElement.addChild(whenElement);
          whenElement.setAttribute("class", packageName + "." + className);
        }
      });
    }
    return file;
  }
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.model.module.AbstractModuleElement

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.