Package com.google.gdt.eclipse.designer.util.DefaultModuleProvider

Examples of com.google.gdt.eclipse.designer.util.DefaultModuleProvider.ModuleModification


            "/* filler filler filler filler filler */"));
    waitForAutoBuild();
    // add sub/My.css into module
    {
      ModuleDescription module = Utils.getModule(m_javaProject, "test.Module");
      DefaultModuleProvider.modify(module, new ModuleModification() {
        public void modify(ModuleElement moduleElement) throws Exception {
          moduleElement.addStylesheetElement("sub/My.css");
        }
      });
    }
View Full Code Here


      IFolder publicFolder = m_module.getModulePublicFolder();
      IFolder extFolder = publicFolder.getFolder(new Path("js/ext"));
      extractZip(zipFile, extFolder);
    }
    // add elements into module
    DefaultModuleProvider.modify(m_module, new ModuleModification() {
      public void modify(ModuleElement moduleElement) throws Exception {
        moduleElement.addStylesheetElement("js/ext/resources/css/ext-all.css");
        moduleElement.addScriptElement("js/ext/adapter/ext/ext-base.js");
        moduleElement.addScriptElement("js/ext/ext-all.js");
        moduleElement.addInheritsElement("com.gwtext.GwtExt");
View Full Code Here

    ensureInherits(module, ACTIVITY_NAME);
  }

  private static void ensureInherits(ModuleDescription module, final String newModuleName)
      throws Exception {
    DefaultModuleProvider.modify(module, new ModuleModification() {
      public void modify(ModuleElement moduleElement) throws Exception {
        if (moduleElement.getInheritsElement(newModuleName) == null) {
          moduleElement.addInheritsElement(newModuleName);
        }
      }
View Full Code Here

      IOUtils.closeQuietly(stream);
    }
    // modify module file
    try {
      ModuleDescription module = Utils.getSingleModule(newType);
      DefaultModuleProvider.modify(module, new ModuleModification() {
        public void modify(ModuleElement moduleElement) throws Exception {
          EntryPointElement entryPointElement = new EntryPointElement();
          moduleElement.addChild(entryPointElement);
          entryPointElement.setClassName(newType.getFullyQualifiedName());
        }
View Full Code Here

        ProjectUtils.addJar(m_javaProject, m_libraryLocation + "/smartgwt.jar", null);
        ProjectUtils.addJar(m_javaProject, m_libraryLocation + "/smartgwt-skins.jar", null);
      }
    }
    // add elements into module
    DefaultModuleProvider.modify(m_module, new ModuleModification() {
      public void modify(ModuleElement moduleElement) throws Exception {
        moduleElement.addInheritsElement("com.smartgwt.SmartGwt");
      }
    });
    // add "script" into HTML
View Full Code Here

    m_testProject.addExternalJar(resourcesLocation);
    waitForAutoBuild();
    // add my.Resources module
    {
      ModuleDescription module = Utils.getModule(m_javaProject, "test.Module");
      DefaultModuleProvider.modify(module, new ModuleModification() {
        public void modify(ModuleElement moduleElement) throws Exception {
          moduleElement.addInheritsElement("my.Resources");
        }
      });
    }
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.util.DefaultModuleProvider.ModuleModification

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.