Interface WorkbenchConfiguration


  • public interface WorkbenchConfiguration
    Defines properties to configure the workbench.

    This interface is not intended to be implemented by clients.

    See Also:
    MDWorkbench.getConfiguration()
    • 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:
        true if the workbench runs in headless mode (no user interface), false otherwise.
      • setHeadless

        void setHeadless​(boolean headless)
        Specifies whether the workbench runs in headless mode (no user interface).
        Parameters:
        headless - true if the workbench should runs in headless mode (no user interface), false otherwise.
      • 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 of MDWorkbench class 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. before MDWorkbench.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