Interface GeneratorController


  • public interface GeneratorController
    Generator tasks controller, maintains generators list and the execution flow.

    This controller is a singleton and can therefore be found in Lookup:

    GeneratorController gc = Lookup.getDefault().lookup(GeneratorController.class);
    Author:
    Mathieu Bastian
    See Also:
    Generator
    • Method Detail

      • getGenerators

        Generator[] getGenerators()
        Returns generators currently loaded in the system.
        Returns:
        generators array that are available
      • generate

        void generate​(Generator generator)
        Execute a generator task in a background thread.

        The created elements are appened in the current workspace, or in a new workspace if the project is empty.

        Parameters:
        generator - the generator that is to be executed