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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractModuleConfiguration.ConfigurationTabSelectionListener
-
Field Summary
Fields Modifier and Type Field Description protected static int
THREAD_INCREMENTS
protected static int
THREAD_INITIAL
protected static int
THREAD_MAXIMUM
-
Constructor Summary
Constructors Constructor Description AbstractModuleConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 -> 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)
-
-
-
Method Detail
-
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)
-
-