Class AbstractModuleConfiguration

java.lang.Object
org.eclipse.epsilon.common.dt.launching.tabs.AbstractModuleConfiguration
All Implemented Interfaces:
ModuleConfiguration
Direct Known Subclasses:
EclModuleConfiguration, EglModuleConfiguration, EgxModuleConfiguration, EmlModuleConfiguration, EolModuleConfiguration, EplModuleConfiguration, EtlModuleConfiguration, EvlModuleConfiguration, FlockModuleConfiguration, PinsetModuleConfiguration

public class AbstractModuleConfiguration extends Object implements ModuleConfiguration
Since:
1.6
Author:
Horacio Hoyos, Sina Madani - parallel configuraiton utils
  • Field Details

    • THREAD_INITIAL

      protected static final int THREAD_INITIAL
    • THREAD_INCREMENTS

      protected static final int THREAD_INCREMENTS
    • THREAD_MAXIMUM

      protected static final int THREAD_MAXIMUM
  • Constructor Details

    • AbstractModuleConfiguration

      public AbstractModuleConfiguration()
  • Method Details

    • initializeFrom

      public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
      Description copied from interface: ModuleConfiguration
      Initialise the composite for this module with the configuration values
      Specified by:
      initializeFrom in interface ModuleConfiguration
    • performApply

      public void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
      Description copied from interface: ModuleConfiguration
      Store the configured values in the configuration
      Specified by:
      performApply in interface ModuleConfiguration
    • createModuleConfigurationWidgets

      public void createModuleConfigurationWidgets(org.eclipse.swt.widgets.Composite group, AbstractAdvancedConfigurationTab tab)
      Description copied from interface: ModuleConfiguration
      Create the composite that contains the module configuration options
      Specified by:
      createModuleConfigurationWidgets in interface ModuleConfiguration
      Parameters:
      group - a SWT Composite that can be used to place swt widgets required for configuring the module.
    • calculateThreadIncrementFromInitial

      protected static int calculateThreadIncrementFromInitial(int initial)
      Example mapping of initial -> increment:
      64 -> 8,
      56 -> 7,
      48 -> 6,
      32 -> 4,
      24 -> 4,
      16 -> 4,
      12 -> 3,
      8 -> 2,
      6 -> 2,
      4 -> 2,
      2 -> 1
    • createParallelContainer

      protected static org.eclipse.swt.widgets.Composite createParallelContainer(org.eclipse.swt.widgets.Composite group)
    • createThreadsLabel

      protected static org.eclipse.swt.widgets.Label createThreadsLabel(org.eclipse.swt.widgets.Composite container)
    • createThreadsSelector

      protected static org.eclipse.swt.widgets.Spinner createThreadsSelector(org.eclipse.swt.widgets.Composite container, AbstractAdvancedConfigurationTab tab)
    • initializeThreadsFromConfiguration

      protected static void initializeThreadsFromConfiguration(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.swt.widgets.Spinner numThreadsSelector)
    • performApplyThreadsForConfiguration

      protected static void performApplyThreadsForConfiguration(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration, org.eclipse.swt.widgets.Spinner numThreadsSelector)