public abstract class AbstractIdeModifiableModelsProvider extends IdeModelsProviderImpl implements IdeModifiableModelsProvider
myProject
EP_NAME
Constructor and Description |
---|
AbstractIdeModifiableModelsProvider(Project project) |
findIdeModule, findIdeModuleDependency, findIdeModuleOrderEntry, getModules, getUnloadedModuleDescription, suggestModuleNameCandidates
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findIdeModule, findIdeModuleDependency, findIdeModuleOrderEntry, getModules, getUnloadedModuleDescription
public AbstractIdeModifiableModelsProvider(Project project)
public <T extends ModifiableModel> T findModifiableModel(java.lang.Class<T> instanceOf)
findModifiableModel
in interface IdeModifiableModelsProvider
public <T extends ModifiableModel> T getModifiableModel(java.lang.Class<T> instanceOf)
getModifiableModel
in interface IdeModifiableModelsProvider
protected abstract ModifiableModuleModel doGetModifiableModuleModel()
protected abstract ModifiableRootModel doGetModifiableRootModel(Module module)
protected abstract ModifiableFacetModel doGetModifiableFacetModel(Module module)
protected abstract Library.ModifiableModel doGetModifiableLibraryModel(Library library)
public abstract LibraryTable.ModifiableModel getModifiableProjectLibrariesModel()
getModifiableProjectLibrariesModel
in interface IdeModifiableModelsProvider
public Module [] getModules()
getModules
in interface IdeModelsProvider
getModules
in class IdeModelsProviderImpl
public OrderEntry [] getOrderEntries(Module module)
getOrderEntries
in interface IdeModelsProvider
getOrderEntries
in class IdeModelsProviderImpl
public Module newModule(java.lang.String filePath, java.lang.String moduleTypeId)
newModule
in interface IdeModifiableModelsProvider
public Module newModule(ModuleData moduleData)
newModule
in interface IdeModifiableModelsProvider
public Module findIdeModule(java.lang.String ideModuleName)
findIdeModule
in interface IdeModelsProvider
findIdeModule
in class IdeModelsProviderImpl
public Library findIdeLibrary(LibraryData libraryData)
findIdeLibrary
in interface IdeModelsProvider
findIdeLibrary
in class IdeModelsProviderImpl
public VirtualFile [] getContentRoots(Module module)
getContentRoots
in interface IdeModelsProvider
getContentRoots
in class IdeModelsProviderImpl
public VirtualFile [] getSourceRoots(Module module)
getSourceRoots
in interface IdeModelsProvider
getSourceRoots
in class IdeModelsProviderImpl
public VirtualFile [] getSourceRoots(Module module, boolean includingTests)
getSourceRoots
in interface IdeModelsProvider
getSourceRoots
in class IdeModelsProviderImpl
public ModifiableModuleModel getModifiableModuleModel()
getModifiableModuleModel
in interface IdeModifiableModelsProvider
public ModifiableRootModel getModifiableRootModel(Module module)
getModifiableRootModel
in interface IdeModifiableModelsProvider
public ModifiableFacetModel getModifiableFacetModel(Module module)
getModifiableFacetModel
in interface IdeModifiableModelsProvider
public Library [] getAllLibraries()
getAllLibraries
in interface IdeModelsProvider
getAllLibraries
in class IdeModelsProviderImpl
public Library getLibraryByName(java.lang.String name)
getLibraryByName
in interface IdeModelsProvider
getLibraryByName
in class IdeModelsProviderImpl
public Library createLibrary(java.lang.String name)
createLibrary
in interface IdeModifiableModelsProvider
public Library createLibrary(java.lang.String name, ProjectModelExternalSource externalSource)
createLibrary
in interface IdeModifiableModelsProvider
public void removeLibrary(Library library)
removeLibrary
in interface IdeModifiableModelsProvider
public Library.ModifiableModel getModifiableLibraryModel(Library library)
getModifiableLibraryModel
in interface IdeModifiableModelsProvider
public ModifiableWorkspace getModifiableWorkspace()
public java.lang.String [] getLibraryUrls(Library library, OrderRootType type)
getLibraryUrls
in interface IdeModelsProvider
getLibraryUrls
in class IdeModelsProviderImpl
public ModalityState getModalityStateForQuestionDialogs()
getModalityStateForQuestionDialogs
in interface IdeModifiableModelsProvider
public java.util.List<Module> getAllDependentModules(Module module)
getAllDependentModules
in interface IdeModelsProvider
getAllDependentModules
in class IdeModelsProviderImpl
public void commit()
commit
in interface IdeModifiableModelsProvider
public void dispose()
dispose
in interface IdeModifiableModelsProvider
public void setTestModuleProperties(Module testModule, java.lang.String productionModuleName)
setTestModuleProperties
in interface IdeModifiableModelsProvider
public java.lang.String getProductionModuleName(Module module)
getProductionModuleName
in interface IdeModifiableModelsProvider
public ModuleOrderEntry trySubstitute(Module ownerModule, LibraryOrderEntry libraryOrderEntry, ProjectCoordinate publicationId)
trySubstitute
in interface IdeModifiableModelsProvider
public void registerModulePublication(Module module, ProjectCoordinate modulePublication)
registerModulePublication
in interface IdeModifiableModelsProvider
public boolean isSubstituted(java.lang.String libraryName)
isSubstituted
in interface IdeModifiableModelsProvider
public <T> T getUserData(Key<T> key)
getUserData
in interface UserDataHolder
public <T> void putUserData(Key<T> key, T value)
UserDataHolder
putUserData
in interface UserDataHolder
public java.lang.String findModuleByPublication(ProjectCoordinate publicationId)
findModuleByPublication
in interface IdeModifiableModelsProvider