Class CommandLineActionManager
- java.lang.Object
-
- com.nomagic.magicdraw.commandline.CommandLineActionManager
-
@OpenApi public final class CommandLineActionManager extends java.lang.Object
Manager registers available command line actions.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<CommandLineAction>
mActions
private static CommandLineActionManager
mInstance
-
Constructor Summary
Constructors Modifier Constructor Description private
CommandLineActionManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAction(CommandLineAction action)
Register command line action.(package private) java.util.List<CommandLineAction>
getActions()
static CommandLineActionManager
getInstance()
Get manager instance.void
removeAction(CommandLineAction action)
Remove command line action.
-
-
-
Field Detail
-
mInstance
private static CommandLineActionManager mInstance
-
mActions
private final java.util.List<CommandLineAction> mActions
-
-
Method Detail
-
getInstance
@OpenApi public static CommandLineActionManager getInstance()
Get manager instance.- Returns:
- manager.
-
addAction
@OpenApi public void addAction(CommandLineAction action)
Register command line action.- Parameters:
action
- command line action to register.
-
removeAction
@OpenApi public void removeAction(CommandLineAction action)
Remove command line action.- Parameters:
action
- command line action to remove.
-
getActions
java.util.List<CommandLineAction> getActions()
-
-