public interface MDIApplication
Modifier and Type | Method and Description |
---|---|
void |
disposeApplication()
Dispose of the Application, calling all necessary code before effectively calling
System.exit(0) . |
void |
endAction(MDIAction action)
Ends a generic action.
|
default void |
executeAction(MDIAction action)
Execute a generic Action.
|
default void |
executeAction(MDIAction action,
java.lang.ClassLoader loader)
Execute a generic Action, using a specific Classloader.
|
void |
executeAction(MDIAction action,
short blockingType)
Execute a generic Action.
|
void |
executeAction(MDIAction action,
short blockingType,
java.lang.ClassLoader loader)
Execute a generic Action, using a specific Classloader.
|
java.util.Map<java.lang.String,AppliManifestType> |
getAdditionalPluginTypes()
Return the optional additional Plugin Types.
|
java.util.Map<java.lang.String,java.lang.Boolean> |
getAllowedPluginTypes()
Return the allowed Plugin Types.
|
default ApplicationDesc |
getApplicationDesc()
Return the Application description.
|
default java.lang.String |
getApplicationID()
Return the ApplicationID.
|
default java.util.Map<java.lang.String,java.lang.String> |
getCommandLineArguments()
Return the launch arguments of the application.
|
ConfigurationManager |
getConfigurationManager()
Return the Configuration Manager.
|
ErrorLogger |
getErrorLogger()
Return the error logger.
|
Plugin |
getPlugin(java.lang.String clazz)
Return the Plugin, given its associated class path.
|
Plugin |
getPluginForName(java.lang.String name)
Return a Plugin, given its associated name.
|
java.util.List<Plugin> |
getPlugins()
Return the Plugins List.
|
default PluginsEDTSupport |
getPluginsEDTSupport(PluginsManager manager)
Return the support class for the GUI initialization of Plugins.
|
PluginsManager |
getPluginsManager()
Return the PluginsManager.
|
java.util.Map<java.lang.String,Plugin> |
getPluginsMap()
Return Plugins Map.
|
default java.io.File |
getStartDirectory()
Return the starting directory of the application.
|
long |
getTime()
Return the time after the last operation.
|
boolean |
hasPlugin(java.lang.String name)
Return true if the application has a Plugin of the specified name.
|
default boolean |
isDefaultBlockingActions()
Return true if actions are blocking by default.
|
void |
noTimeMessages()
Avoid to write time in messages for the current MDIAction.
|
void |
noWriteMessages()
Avoid to write messages for the current MDIAction.
|
default void |
setDefaultBlockingActions(boolean isBlocking)
Set if actions are blocking by default.
|
void |
showActionException(java.lang.String message,
java.lang.Exception e)
Show the last Exception associated with an Action.
|
void |
startTime(MDIAction action)
Start to count the time for the last operation, and show the statusBar progress.
|
long |
stopTime(MDIAction action)
Stop the time counting.
|
java.util.Map<java.lang.String,java.lang.Boolean> getAllowedPluginTypes()
PluginsManager.KEY_PLUGIN_TYPE
attribute in their manifest will have to match one of the Application allowed plugin type names.java.util.Map<java.lang.String,AppliManifestType> getAdditionalPluginTypes()
PluginsManager.setAdditionalPluginTypes(java.util.Map)
ConfigurationManager getConfigurationManager()
ErrorLogger getErrorLogger()
PluginsManager getPluginsManager()
default java.io.File getStartDirectory()
default void executeAction(MDIAction action)
action
- the Actiondefault void setDefaultBlockingActions(boolean isBlocking)
isBlocking
- true if actions are blocking by defaultdefault boolean isDefaultBlockingActions()
default PluginsEDTSupport getPluginsEDTSupport(PluginsManager manager)
DefaultPluginsEDTSupport
by default.manager
- the PluginsManagervoid executeAction(MDIAction action, short blockingType)
BlockingType.DEFAULT
: use the default blocking type of the applicationBlockingType.BLOCKING
: if the action should be blockingBlockingType.NOT_BLOCKING
: if the action should not be blockingaction
- the ActionblockingType
- the enumeration specifying if the action should be blockingdefault void executeAction(MDIAction action, java.lang.ClassLoader loader)
action
- the Actionloader
- the ClassLoadervoid executeAction(MDIAction action, short blockingType, java.lang.ClassLoader loader)
BlockingType.DEFAULT
: use the default blocking type of the applicationBlockingType.BLOCKING
: if the action should be blockingBlockingType.NOT_BLOCKING
: if the action should not be blockingaction
- the ActionblockingType
- the enumeration specifying if the action should be blockingloader
- the ClassLoadervoid showActionException(java.lang.String message, java.lang.Exception e)
message
- the messagee
- the Exceptionjava.util.List<Plugin> getPlugins()
java.util.Map<java.lang.String,Plugin> getPluginsMap()
Plugin getPluginForName(java.lang.String name)
name
- the Plugin nameboolean hasPlugin(java.lang.String name)
name
- the Plugin namePlugin getPlugin(java.lang.String clazz)
clazz
- the plugin class pathvoid startTime(MDIAction action)
action
- the Actionlong getTime()
long stopTime(MDIAction action)
action
- the Actionvoid endAction(MDIAction action)
action
- the actionvoid noWriteMessages()
void noTimeMessages()
default ApplicationDesc getApplicationDesc()
default java.lang.String getApplicationID()
void disposeApplication()
System.exit(0)
.default java.util.Map<java.lang.String,java.lang.String> getCommandLineArguments()