org.openoffice.ide.eclipse.core.model.language
Class AbstractLanguage

java.lang.Object
  extended by org.openoffice.ide.eclipse.core.model.language.AbstractLanguage

public abstract class AbstractLanguage
extends java.lang.Object

Base class for the language extensions.

Author:
cbosdo

Constructor Summary
AbstractLanguage()
           
 
Method Summary
abstract  void configureSourceLocator(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy pConfiguration)
          When in debug mode, we have to configure the appropriate source locator for the respective language.
abstract  void connectDebuggerToOpenOffice(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.
 LanguageExportPart getExportBuildPart()
           
abstract  ILanguageBuilder getLanguageBuidler()
           
 java.lang.String getName()
           
 LanguageWizardPage getNewWizardPage()
           
abstract  IProjectHandler getProjectHandler()
           
protected  void setConfigurationElement(org.eclipse.core.runtime.IConfigurationElement pConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

getLanguageBuidler

public abstract ILanguageBuilder getLanguageBuidler()
Returns:
the utility class for building.

connectDebuggerToOpenOffice

public abstract void connectDebuggerToOpenOffice(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.