From d7def99afed8532e310cf89a810d5407894b6402 Mon Sep 17 00:00:00 2001 From: "Kirill.Safonov" Date: Tue, 22 Dec 2009 20:39:39 +0300 Subject: [PATCH] run configuration editor: don't leave row space if there's no provider for a stored before-launch task config [r=yole] --- .../impl/ConfigurationSettingsEditorWrapper.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/execution/impl/ConfigurationSettingsEditorWrapper.java b/platform/lang-impl/src/com/intellij/execution/impl/ConfigurationSettingsEditorWrapper.java index 86fe0884f917..c433a70df571 100644 --- a/platform/lang-impl/src/com/intellij/execution/impl/ConfigurationSettingsEditorWrapper.java +++ b/platform/lang-impl/src/com/intellij/execution/impl/ConfigurationSettingsEditorWrapper.java @@ -38,8 +38,8 @@ import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; -import java.util.Collections; -import java.util.Map; +import java.util.*; +import java.util.List; /** * User: anna @@ -79,15 +79,19 @@ public class ConfigurationSettingsEditorWrapper extends SettingsEditor stepsRows = new ArrayList(); for (BeforeRunTaskProvider provider : providers) { final BeforeRunTask task = myStepsBeforeLaunch.get(provider.getId()); if (task != null) { final StepBeforeLaunchRow stepRow = new StepBeforeLaunchRow(runConfiguration, provider, task); myStepBeforeLaunchRows.put(provider.getId(), stepRow); - myStepsPanel.add(stepRow); + stepsRows.add(stepRow); } } + myStepsPanel.setLayout(new GridLayout(stepsRows.size(), 1)); + for (StepBeforeLaunchRow stepRow : stepsRows) { + myStepsPanel.add(stepRow); + } } myStoreProjectConfiguration = runManager.isConfigurationShared(settings);