2 * Copyright 2000-2015 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com.intellij.openapi.externalSystem.service.project;
18 import com.intellij.facet.ModifiableFacetModel;
19 import com.intellij.openapi.application.ModalityState;
20 import com.intellij.openapi.module.ModifiableModuleModel;
21 import com.intellij.openapi.module.Module;
22 import com.intellij.openapi.roots.ModifiableRootModel;
23 import com.intellij.openapi.roots.libraries.Library;
24 import com.intellij.openapi.roots.libraries.LibraryTable;
25 import com.intellij.packaging.artifacts.ModifiableArtifactModel;
26 import com.intellij.packaging.elements.PackagingElementResolvingContext;
27 import org.jetbrains.annotations.NonNls;
28 import org.jetbrains.annotations.NotNull;
31 * @author Vladislav.Soroka
34 public interface IdeModifiableModelsProvider extends IdeModelsProvider {
36 Module newModule(@NotNull @NonNls String filePath, final String moduleTypeId);
39 ModifiableModuleModel getModifiableModuleModel();
42 ModifiableRootModel getModifiableRootModel(Module module);
45 ModifiableFacetModel getModifiableFacetModel(Module module);
48 LibraryTable.ModifiableModel getModifiableProjectLibrariesModel();
50 Library.ModifiableModel getModifiableLibraryModel(Library library);
53 ModifiableArtifactModel getModifiableArtifactModel();
55 Library createLibrary(String name);
57 void removeLibrary(Library library);
59 ModalityState getModalityStateForQuestionDialogs();
61 ArtifactExternalDependenciesImporter getArtifactExternalDependenciesImporter();
63 PackagingElementResolvingContext getPackagingElementResolvingContext();
69 void setTestModuleProperties(Module testModule, String productionModuleName);