Class AbstractLanguage


  • public abstract class AbstractLanguage
    extends java.lang.Object
    Base class for the language extensions.
    • Constructor Detail

      • AbstractLanguage

        public AbstractLanguage()
    • Method Detail

      • setConfigurationElement

        protected void setConfigurationElement​(org.eclipse.core.runtime.IConfigurationElement pConfig)
        Parameters:
        pConfig - the configuration element for the language
      • getName

        public java.lang.String getName()
        Returns:
        the language display name
      • getNewWizardPage

        public LanguageWizardPage getNewWizardPage()
        Returns:
        the wizard page for the New UNO project wizard or null if none has been defined.
      • getExportBuildPart

        public LanguageExportPart getExportBuildPart()
        Returns:
        the export build part for the UNO export wizard or null if none has been defined.
      • getProjectHandler

        public abstract IProjectHandler getProjectHandler()
        Returns:
        the utility class for projects handling.
      • getLanguageBuilder

        public abstract ILanguageBuilder getLanguageBuilder()
        Returns:
        the utility class for building.
      • connectDebuggerToOffice

        public abstract void connectDebuggerToOffice​(IUnoidlProject pPrj,
                                                     org.eclipse.debug.core.ILaunch pLaunch,
                                                     org.eclipse.core.runtime.IPath pUserInstallation,
                                                     org.eclipse.core.runtime.IProgressMonitor pMonitor)
        Launch OpenOffice for debugging and connect the eclipse debugger to it. Currently only Java debugging is supported.
        Parameters:
        pPrj - the target project.
        pLaunch - the launch configuration to add our debug target to.
        pUserInstallation - user profile.
        pMonitor - monitor to report progress to.
      • configureSourceLocator

        public abstract void configureSourceLocator​(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy pConfiguration)
                                             throws org.eclipse.core.runtime.CoreException
        When in debug mode, we have to configure the appropriate source locator for the respective language. The rest will be taken care by the SourceLookupTab.
        Parameters:
        pConfiguration - the configuration to add extra attributes to.
        Throws:
        org.eclipse.core.runtime.CoreException - if something went wrong.