Class AbstractAdvancedConfigurationTab

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String IMPL_NAME  
      protected java.lang.String implName  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void activated​(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)  
      void createControl​(org.eclipse.swt.widgets.Composite parent)  
      void enableApply()  
      org.eclipse.swt.graphics.Image getImage()  
      java.util.Map<java.lang.String,​ModuleImplementationExtension> getImplementations()  
      protected java.util.List<java.lang.String> getImplementations​(org.eclipse.debug.core.ILaunchConfiguration configuration)
      The available implementations are extracted from the moduleImplementation extension point, based on the language provided by the plugin (see getPlugin()).
      abstract java.lang.String getLanguage​(org.eclipse.debug.core.ILaunchConfiguration configuration)
      Get the name of the language being configured
      java.lang.String getName()  
      abstract EpsilonPlugin getPlugin()  
      void initializeFrom​(org.eclipse.debug.core.ILaunchConfiguration configuration)  
      void performApply​(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)  
      void setImplementations​(java.util.Map<java.lang.String,​ModuleImplementationExtension> implementations)  
      protected boolean shouldConfigurationElementBeIncludedAsAnImplementation​(java.lang.String language, org.eclipse.core.runtime.IConfigurationElement configurationElement)
      Used by subclasses to control flexibility of what languages should be included when calling getImplementations() from a given IConfigurationElement.
      protected boolean shouldImplementationBeIncludedInDropDown​(java.lang.String implName, org.eclipse.debug.core.ILaunchConfiguration configuration)
      Whether to include the given option in the implementations drop-down combo list.
      protected boolean shouldImplementationBeRemoved​(java.lang.String language, org.eclipse.core.runtime.IConfigurationElement configurationElement)
      protected void updateAvailableImpls​(org.eclipse.debug.core.ILaunchConfiguration configuration)
      This method updates the drop-down list of available implementations.
      • Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab

        canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createUpdateJob, createVerticalSpacer, deactivated, dispose, getAttributeLabel, getAttributesLabelsForPrototype, getControl, getErrorMessage, getHelpContextId, getId, getLaunchConfigurationDialog, getLaunchManager, getMessage, getShell, getUpdateJobDelay, getWarningMessage, initializeAttributes, isDirty, isValid, launched, scheduleUpdateJob, setAttribute, setControl, setDirty, setErrorMessage, setHelpContextId, setLaunchConfigurationDialog, setMessage, setWarningMessage, updateLaunchConfigurationDialog
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.debug.ui.ILaunchConfigurationTab

        OkToLeaveTab, postApply, setDefaults
    • Field Detail

      • implName

        protected java.lang.String implName
    • Constructor Detail

      • AbstractAdvancedConfigurationTab

        public AbstractAdvancedConfigurationTab()
    • Method Detail

      • createControl

        public void createControl​(org.eclipse.swt.widgets.Composite parent)
      • initializeFrom

        public void initializeFrom​(org.eclipse.debug.core.ILaunchConfiguration configuration)
      • performApply

        public void performApply​(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
      • activated

        public void activated​(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)
        Specified by:
        activated in interface org.eclipse.debug.ui.ILaunchConfigurationTab
        Overrides:
        activated in class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
      • getName

        public java.lang.String getName()
      • getImage

        public org.eclipse.swt.graphics.Image getImage()
        Specified by:
        getImage in interface org.eclipse.debug.ui.ILaunchConfigurationTab
        Overrides:
        getImage in class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
      • getLanguage

        public abstract java.lang.String getLanguage​(org.eclipse.debug.core.ILaunchConfiguration configuration)
        Get the name of the language being configured
        Parameters:
        configuration - the eclipse launch configuration
        Since:
        1.6
      • updateAvailableImpls

        protected final void updateAvailableImpls​(org.eclipse.debug.core.ILaunchConfiguration configuration)
        This method updates the drop-down list of available implementations. If no alternatives exist, the combo (or the parent) can be disabled, but should show the default one.
        Parameters:
        configuration - the Eclipse launch configuration
      • shouldImplementationBeIncludedInDropDown

        protected boolean shouldImplementationBeIncludedInDropDown​(java.lang.String implName,
                                                                   org.eclipse.debug.core.ILaunchConfiguration configuration)
        Whether to include the given option in the implementations drop-down combo list.
        Parameters:
        implName - The name of the implementation
        configuration -
        Returns:
        Whether it should be included
      • shouldConfigurationElementBeIncludedAsAnImplementation

        protected boolean shouldConfigurationElementBeIncludedAsAnImplementation​(java.lang.String language,
                                                                                 org.eclipse.core.runtime.IConfigurationElement configurationElement)
        Used by subclasses to control flexibility of what languages should be included when calling getImplementations() from a given IConfigurationElement. By default, this simply tests for equality between the language and the configurationElement's language attribute.
        Parameters:
        language - As obtained from getLanguage(ILaunchConfiguration)
        configurationElement - Elements from the extension point.
        Returns:
        Whether the language from the configuration element should be included.
      • getImplementations

        protected final java.util.List<java.lang.String> getImplementations​(org.eclipse.debug.core.ILaunchConfiguration configuration)
        The available implementations are extracted from the moduleImplementation extension point, based on the language provided by the plugin (see getPlugin()).
        Parameters:
        configuration - the eclipse launch configuration
        Returns:
        A list of the names of the available module implementations for the language
        Throws:
        org.eclipse.core.runtime.CoreException - if the configuration dialog of an implementation can not be created
      • enableApply

        public void enableApply()