IDEA-254134 [new run config UI] in Before Launch section it's impossible to add several tasks of the same type

tags disposing fixed

GitOrigin-RevId: eb1ddb01dbd9008d01955d887d4ea1b467bf6934
This commit is contained in:
Dmitry Avdeev
2020-11-02 14:21:38 +00:00
committed by intellij-monorepo-bot
parent 0d03ae9521
commit 10f8b605b9
@@ -52,6 +52,7 @@ public final class BeforeRunComponent extends JPanel implements DnDTarget, Dispo
public BeforeRunComponent(@NotNull Disposable parentDisposable) {
super(new WrapLayout(FlowLayout.LEADING, 0, FragmentedSettingsBuilder.TAG_VGAP));
Disposer.register(parentDisposable, this);
add(Box.createVerticalStrut(30));
JPanel panel = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 0));
@@ -67,7 +68,7 @@ public final class BeforeRunComponent extends JPanel implements DnDTarget, Dispo
myAddPanel.add(myAddButton);
myAddLabel = new LinkLabel<>(ExecutionBundle.message("run.configuration.before.run.add.task"), null, (aSource, aLinkData) -> showPopup());
myAddLabel.setBorder(border);
DnDManager.getInstance().registerTarget(this, this, parentDisposable);
DnDManager.getInstance().registerTarget(this, this, this);
}
private List<BeforeRunTaskProvider<BeforeRunTask<?>>> getProviders() {