public abstract class AbstractModuleDataService<E extends ModuleData> extends AbstractProjectDataService<E,Module>
Modifier and Type | Field and Description |
---|---|
static Key<ModuleData> |
MODULE_DATA_KEY |
static Key<Module> |
MODULE_KEY |
static Key<java.util.Map<OrderEntry,OrderAware>> |
ORDERED_DATA_MAP_KEY |
EMPTY_LIST
Constructor and Description |
---|
AbstractModuleDataService() |
Modifier and Type | Method and Description |
---|---|
void |
importData(java.util.Collection<DataNode<E>> toImport,
ProjectData projectData,
Project project,
IdeModifiableModelsProvider modelsProvider)
It's assumed that given data nodes present at the ide when this method returns.
|
void |
onFailureImport(Project project) |
void |
onSuccessImport(java.util.Collection<DataNode<E>> imported,
ProjectData projectData,
Project project,
IdeModelsProvider modelsProvider) |
void |
postProcess(java.util.Collection<DataNode<E>> toImport,
ProjectData projectData,
Project project,
IdeModifiableModelsProvider modelsProvider) |
protected void |
rearrangeOrderEntries(java.util.Map<OrderEntry,OrderAware> orderEntryDataMap,
ModifiableRootModel modifiableRootModel) |
void |
removeData(Computable<java.util.Collection<Module>> toRemoveComputable,
java.util.Collection<DataNode<E>> toIgnore,
ProjectData projectData,
Project project,
IdeModifiableModelsProvider modelsProvider)
Asks to remove all given ide project entities.
|
protected void |
setModuleOptions(Module module,
DataNode<E> moduleDataNode) |
static void |
unlinkModuleFromExternalSystem(Module module) |
computeOrphanData, getTargetDataKey
public static final Key<ModuleData> MODULE_DATA_KEY
public static final Key<Module> MODULE_KEY
public static final Key<java.util.Map<OrderEntry,OrderAware>> ORDERED_DATA_MAP_KEY
public void importData(java.util.Collection<DataNode<E>> toImport, ProjectData projectData, Project project, IdeModifiableModelsProvider modelsProvider)
ProjectDataService
importData
in interface ProjectDataService<E extends ModuleData,Module>
importData
in class AbstractProjectDataService<E extends ModuleData,Module>
public void removeData(Computable<java.util.Collection<Module>> toRemoveComputable, java.util.Collection<DataNode<E>> toIgnore, ProjectData projectData, Project project, IdeModifiableModelsProvider modelsProvider)
ProjectDataService
ProjectDataService
might be configured for a target entity type, there is a possible case
that the entities have already been removed when this method is called. Then it's necessary to cleanup auxiliary data (if any)
or just return otherwise.removeData
in interface ProjectDataService<E extends ModuleData,Module>
removeData
in class AbstractProjectDataService<E extends ModuleData,Module>
toRemoveComputable
- project entities to removeproject
- target projectpublic void onSuccessImport(java.util.Collection<DataNode<E>> imported, ProjectData projectData, Project project, IdeModelsProvider modelsProvider)
public void onFailureImport(Project project)
public static void unlinkModuleFromExternalSystem(Module module)
public void postProcess(java.util.Collection<DataNode<E>> toImport, ProjectData projectData, Project project, IdeModifiableModelsProvider modelsProvider)
protected void rearrangeOrderEntries(java.util.Map<OrderEntry,OrderAware> orderEntryDataMap, ModifiableRootModel modifiableRootModel)