From 5be4ad63b3188cb46186391d0737e61375fcf918 Mon Sep 17 00:00:00 2001 From: Igor Fedorenko Date: Thu, 14 Mar 2013 00:16:20 -0400 Subject: 380484 --threads is one less than it should be Signed-off-by: Igor Fedorenko --- .../src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'org.eclipse.m2e.launching') diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java index 6d858fe9..b10205b5 100644 --- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java +++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/ui/internal/launch/MavenLaunchMainTab.java @@ -607,7 +607,7 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement this.skipTestsButton.setSelection(getAttribute(configuration, ATTR_SKIP_TESTS, false)); this.nonRecursiveButton.setSelection(getAttribute(configuration, ATTR_NON_RECURSIVE, false)); this.enableWorkspaceResolution.setSelection(getAttribute(configuration, ATTR_WORKSPACE_RESOLUTION, false)); - this.threadsCombo.select(getAttribute(configuration, ATTR_THREADS, 0)); + this.threadsCombo.select(getAttribute(configuration, ATTR_THREADS, 1) - 1); String location = getAttribute(configuration, ATTR_RUNTIME, ""); //$NON-NLS-1$ MavenRuntime runtime = runtimeManager.getRuntime(location); @@ -708,7 +708,7 @@ public class MavenLaunchMainTab extends AbstractLaunchConfigurationTab implement MavenRuntime runtime = (MavenRuntime) selection.getFirstElement(); configuration.setAttribute(ATTR_RUNTIME, runtime.getLocation()); - configuration.setAttribute(ATTR_THREADS, threadsCombo.getSelectionIndex()); + configuration.setAttribute(ATTR_THREADS, threadsCombo.getSelectionIndex() + 1); // store as String in "param=value" format List properties = new ArrayList(); -- cgit v1.2.3