Package com.intellij.openapi.roots

Examples of com.intellij.openapi.roots.ModifiableRootModel


    LOG.assertTrue(myName != null);
    LOG.assertTrue(myModuleFilePath != null);

    final ModuleType moduleType = getModuleType();
    final Module module = moduleModel.newModule(myModuleFilePath, moduleType);
    final ModifiableRootModel modifiableModel = ModuleRootManager.getInstance(module).getModifiableModel();
    setupRootModel(modifiableModel);
    for (ModuleConfigurationUpdater updater : myUpdaters) {
      updater.update(module, modifiableModel);
    }
    modifiableModel.commit();

    module.setSavePathsRelative(true); // default setting

    return module;
  }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.roots.ModifiableRootModel

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.