Class ModuleImplementationExtension


  • public class ModuleImplementationExtension
    extends java.lang.Object
    The Module Implementation Extension stores configuration information about existing module implementations.
    Author:
    Horacio Hoyos Rodriguez
    • Constructor Detail

      • ModuleImplementationExtension

        public ModuleImplementationExtension​(org.eclipse.core.runtime.IConfigurationElement configurationElement)
        Instantiates a new module implementation extension.
        Parameters:
        configurationElement - the configuration element
    • Method Detail

      • forImplementation

        public static ModuleImplementationExtension forImplementation​(java.lang.String languageName,
                                                                      java.lang.String implName)
        Get the ModuleImplementationExtension for a specific implementation. ModuleImplementationExtensions created via this method also provide
        Parameters:
        implName - the name of the implementation
        Returns:
        the ModuleImplementationExtension or null if not found in the extension registry
      • defaultImplementation

        public static ModuleImplementationExtension defaultImplementation​(java.lang.String languageName)
        Default implementation.
        Parameters:
        languageName -
        Returns:
        the module implementation extension
      • getClazz

        public java.lang.String getClazz()
        Gets the clazz.
        Returns:
        the clazz
      • getName

        public java.lang.String getName()
        Gets the name.
        Returns:
        the name
      • getLanguage

        public java.lang.String getLanguage()
        Gets the language.
        Returns:
        the language
      • isDefault

        public boolean isDefault()
      • createModule

        public <T extends IModule> T createModule()
                                           throws org.eclipse.core.runtime.CoreException
        Creates the module.
        Type Parameters:
        T - the generic type
        Returns:
        the t
        Throws:
        org.eclipse.core.runtime.CoreException - the core exception