Class AbstractLanguage

java.lang.Object
org.libreoffice.ide.eclipse.core.model.language.AbstractLanguage

public abstract class AbstractLanguage extends Object
Base class for the language extensions.
  • Constructor Details

    • AbstractLanguage

      public AbstractLanguage()
  • Method Details

    • setConfigurationElement

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

      public 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 prj, org.eclipse.debug.core.ILaunch launch, org.eclipse.core.runtime.IPath userInstallation, org.eclipse.core.runtime.IProgressMonitor monitor)
      Launch OpenOffice for debugging and connect the eclipse debugger to it. Currently only Java debugging is supported.
      Parameters:
      prj - the target project.
      launch - the launch configuration to add our debug target to.
      userInstallation - user profile.
      monitor - monitor to report progress to.
    • configureSourceLocator

      public abstract void configureSourceLocator(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration) 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:
      configuration - the configuration to add extra attributes to.
      Throws:
      org.eclipse.core.runtime.CoreException - if something went wrong.