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
- Since:
- 1.6
- Author:
- Horacio Hoyos, Sina Madani - parallel configuraiton utils
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected static final int
protected static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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 -> 1void
createModuleConfigurationWidgets
(org.eclipse.swt.widgets.Composite group, AbstractAdvancedConfigurationTab tab) Create the composite that contains the module configuration optionsprotected static org.eclipse.swt.widgets.Composite
createParallelContainer
(org.eclipse.swt.widgets.Composite group) protected static org.eclipse.swt.widgets.Label
createThreadsLabel
(org.eclipse.swt.widgets.Composite container) protected static org.eclipse.swt.widgets.Spinner
createThreadsSelector
(org.eclipse.swt.widgets.Composite container, AbstractAdvancedConfigurationTab tab) void
initializeFrom
(org.eclipse.debug.core.ILaunchConfiguration configuration) Initialise the composite for this module with the configuration valuesprotected static void
initializeThreadsFromConfiguration
(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.swt.widgets.Spinner numThreadsSelector) void
performApply
(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration) Store the configured values in the configurationprotected static void
performApplyThreadsForConfiguration
(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration, org.eclipse.swt.widgets.Spinner numThreadsSelector)
-
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 interfaceModuleConfiguration
-
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 interfaceModuleConfiguration
-
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 interfaceModuleConfiguration
- 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)
-