Class EsiRemoveKeepReferencesService
- java.lang.Object
-
- com.nomagic.magicdraw.teamwork2.esi.EsiRemoveKeepReferencesService
-
@OpenApiAll public class EsiRemoveKeepReferencesService extends java.lang.Object
A service that is responsible for removing an ESI module with "Keeping References"
-
-
Constructor Summary
Constructors Constructor Description EsiRemoveKeepReferencesService()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
detachModulesKeepAndReferencesOnTask(Project project, IAttachedProjectRemoverCallback removeConfirmation, java.util.Collection<ModuleUsage> usages)
Removes usages of modules and keeps references to existing objects from modules.static boolean
detachModulesKeepAndReferencesOnTask(Project project, java.util.Collection<ModuleUsage> usages)
Removes usages of modules and keeps references to existing objects from modules.static void
detachModulesKeepReferences(Project project, java.util.Collection<ModuleUsage> usages, org.eclipse.core.runtime.IProgressMonitor monitor)
Removes usages of modules and keeps references to existing objects from modules.
-
-
-
Method Detail
-
detachModulesKeepAndReferencesOnTask
public static boolean detachModulesKeepAndReferencesOnTask(Project project, java.util.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 IAttachedProjectRemoverCallback removeConfirmation, java.util.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, java.util.Collection<ModuleUsage> usages, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.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:
java.lang.Exception
-
-