import flexmojos project (initial commit for the new model)
authorAlexander Doroshko <alexander.doroshko@jetbrains.com>
Wed, 1 Feb 2012 12:06:53 +0000 (16:06 +0400)
committerAlexander Doroshko <alexander.doroshko@jetbrains.com>
Wed, 1 Feb 2012 12:54:45 +0000 (16:54 +0400)
plugins/maven/src/main/java/org/jetbrains/idea/maven/importing/MavenDefaultModifiableModelsProvider.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/importing/MavenModifiableModelsProvider.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/importing/MavenUIModifiableModelsProvider.java

index 4ed210e84fc4a4a6854da7f5f222782e6304f90e..b970512c042b2e7465de70d0893e79abf18ca5b5 100644 (file)
@@ -77,6 +77,11 @@ public class MavenDefaultModifiableModelsProvider extends MavenBaseModifiableMod
     return FacetManager.getInstance(module).createModifiableModel();
   }
 
+  @Override
+  public LibraryTable.ModifiableModel getProjectLibrariesModel() {
+    return myLibrariesModel;
+  }
+
   public Library[] getAllLibraries() {
     return myLibrariesModel.getLibraries();
   }
index 4c32dd55e228204ee286f581875de3b265eb3e26..b69278c6ea07049d12b7c43498465a7f5a893cdb 100644 (file)
@@ -21,6 +21,7 @@ import com.intellij.openapi.module.ModifiableModuleModel;
 import com.intellij.openapi.module.Module;
 import com.intellij.openapi.roots.ModifiableRootModel;
 import com.intellij.openapi.roots.libraries.Library;
+import com.intellij.openapi.roots.libraries.LibraryTable;
 import com.intellij.packaging.artifacts.ModifiableArtifactModel;
 import com.intellij.packaging.elements.PackagingElementResolvingContext;
 import org.jetbrains.idea.maven.project.MavenModelsProvider;
@@ -38,6 +39,8 @@ public interface MavenModifiableModelsProvider extends MavenModelsProvider {
 
   ArtifactExternalDependenciesImporter getArtifactExternalDependenciesImporter();
 
+  LibraryTable.ModifiableModel getProjectLibrariesModel();
+
   Library[] getAllLibraries();
 
   Library getLibraryByName(String name);
index 98f29c18c6dd72fa777f6343dac0ded822b8e76e..f0ec25c6f429c08faeaca555de34a46f10c379c7 100644 (file)
@@ -22,6 +22,7 @@ import com.intellij.openapi.module.Module;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.roots.ModifiableRootModel;
 import com.intellij.openapi.roots.libraries.Library;
+import com.intellij.openapi.roots.libraries.LibraryTable;
 import com.intellij.openapi.roots.ui.configuration.ModulesConfigurator;
 import com.intellij.openapi.roots.ui.configuration.projectRoot.LibrariesModifiableModel;
 import com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectLibrariesConfigurable;
@@ -67,6 +68,11 @@ public class MavenUIModifiableModelsProvider extends MavenBaseModifiableModelsPr
     return (ModifiableFacetModel)myModulesConfigurator.getFacetModel(module);
   }
 
+  @Override
+  public LibraryTable.ModifiableModel getProjectLibrariesModel() {
+    return myLibrariesModel;
+  }
+
   public Library[] getAllLibraries() {
     return myLibrariesModel.getLibraries();
   }