Class EsiRemoveKeepReferencesService
java.lang.Object
com.nomagic.magicdraw.teamwork2.esi.EsiRemoveKeepReferencesService
A service that is responsible for removing an ESI module with "Keeping References"
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
detachModulesKeepAndReferencesOnTask
(Project project, com.nomagic.ci.persistence.decomposition.IAttachedProjectRemoverCallback removeConfirmation, Collection<ModuleUsage> usages) Removes usages of modules and keeps references to existing objects from modules.static boolean
detachModulesKeepAndReferencesOnTask
(Project project, Collection<ModuleUsage> usages) Removes usages of modules and keeps references to existing objects from modules.static void
detachModulesKeepReferences
(Project project, Collection<ModuleUsage> usages, ProgressStatus monitor) Removes usages of modules and keeps references to existing objects from modules.
-
Constructor Details
-
EsiRemoveKeepReferencesService
public EsiRemoveKeepReferencesService()
-
-
Method Details
-
detachModulesKeepAndReferencesOnTask
public static boolean detachModulesKeepAndReferencesOnTask(Project project, Collection<ModuleUsage> usages) Removes usages of modules and keeps references to existing objects from modules.- Parameters:
project
- a project.usages
- a collection of usages.- Returns:
- true the operation was successful.
-
detachModulesKeepAndReferencesOnTask
public static boolean detachModulesKeepAndReferencesOnTask(Project project, @CheckForNull com.nomagic.ci.persistence.decomposition.IAttachedProjectRemoverCallback removeConfirmation, Collection<ModuleUsage> usages) Removes usages of modules and keeps references to existing objects from modules.- Parameters:
project
- a project.usages
- a collection of usages.removeConfirmation
- remove confirmation- Returns:
- true the operation was successful.
-
detachModulesKeepReferences
public static void detachModulesKeepReferences(Project project, Collection<ModuleUsage> usages, ProgressStatus monitor) throws Exception Removes usages of modules and keeps references to existing objects from modules.- Parameters:
project
- a project.usages
- a collection of usages.monitor
- progress monitor- Throws:
Exception
-