Package com.sodius.mdw.core
Interface WorkbenchConfiguration
-
public interface WorkbenchConfigurationDefines properties to configure the workbench.This interface is not intended to be implemented by clients.
- See Also:
MDWorkbench.getConfiguration()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandLinegetCommandLine()Returns the command line that launched the workbench.LoggergetLogger()Returns the logger, used to display errors and warnings, as well as debugging information.ClassLoadergetMetamodelsClassLoader()Returns the class loader used to detect and load metamodels.MDWorkbenchgetWorkbench()Return the configured workbench.booleanisHeadless()Determines whether the workbench runs in headless mode (no user interface).voidsetCommandLine(CommandLine commandLine)Sets the command line that launched the workbench.voidsetHeadless(boolean headless)Specifies whether the workbench runs in headless mode (no user interface).voidsetLogger(Logger logger)Sets the logger to use to display errors and warnings, as well as debugging information.voidsetMetamodelsClassLoader(ClassLoader classLoader)Sets the class loader used to detect and load metamodels.
-
-
-
Method Detail
-
getWorkbench
MDWorkbench getWorkbench()
Return the configured workbench.- Returns:
- the workbench.
-
isHeadless
boolean isHeadless()
Determines whether the workbench runs in headless mode (no user interface).This property can be used for example by template and script designers to check whether they should request options to the end-user through an dialog box or a configuration file.
- Returns:
trueif the workbench runs in headless mode (no user interface),falseotherwise.
-
setHeadless
void setHeadless(boolean headless)
Specifies whether the workbench runs in headless mode (no user interface).- Parameters:
headless-trueif the workbench should runs in headless mode (no user interface),falseotherwise.
-
getLogger
Logger getLogger()
Returns the logger, used to display errors and warnings, as well as debugging information.- Returns:
- the logger.
-
setLogger
void setLogger(Logger logger)
Sets the logger to use to display errors and warnings, as well as debugging information.- Parameters:
logger- the logger.
-
getCommandLine
CommandLine getCommandLine()
Returns the command line that launched the workbench.- Returns:
- the main command line.
-
setCommandLine
void setCommandLine(CommandLine commandLine)
Sets the command line that launched the workbench.- Parameters:
commandLine- the command line.
-
getMetamodelsClassLoader
ClassLoader getMetamodelsClassLoader()
Returns the class loader used to detect and load metamodels. This class loader is used only for non-OSGI platforms. Default is to use the class loader ofMDWorkbenchclass to load metamodels.- Returns:
- the class loader to load metamodels.
- Since:
- 3.6.11
-
setMetamodelsClassLoader
void setMetamodelsClassLoader(ClassLoader classLoader)
Sets the class loader used to detect and load metamodels. Changing the class loader only has effect before metamodels are loaded, i.e. beforeMDWorkbench.getMetamodelManager()is ever called. This class loader is used only for non-OSGI platforms.- Parameters:
classLoader- the class loader to load metamodels.- Since:
- 3.6.11
-
-