Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2021-01-05 07:10:30 +0000
committerAndrey Loskutov2021-01-05 13:17:47 +0000
commitd3ab09fbec4de49c976c6c0d123a1e4f3a742b56 (patch)
tree80eb6b65ec71e0322d5bbdd7746dee6214ce1c96 /org.eclipse.debug.core/core/org
parent0c2baeb0bbe9e5a9d2f158e7c120dd4f56b3d081 (diff)
downloadeclipse.platform.debug-master.tar.gz
eclipse.platform.debug-master.tar.xz
eclipse.platform.debug-master.zip
ILaunchConfigurationListener.launchConfigurationAdded() Change-Id: I1e0741a4c718b8ac2c9f51d90ef3681f6926ac95
Diffstat (limited to 'org.eclipse.debug.core/core/org')
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/core/DebugPlugin.java8
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java4
2 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/core/DebugPlugin.java b/org.eclipse.debug.core/core/org/eclipse/debug/core/DebugPlugin.java
index 205163956..65e78f5b2 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/core/DebugPlugin.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/core/DebugPlugin.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2019 IBM Corporation and others.
+ * Copyright (c) 2000, 2021 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -591,6 +591,9 @@ public class DebugPlugin extends Plugin {
public synchronized ILaunchManager getLaunchManager() {
if (fLaunchManager == null) {
fLaunchManager = new LaunchManager();
+ fLaunchManager.getAllLaunchConfigurations();
+ // monitor launch configuration renames for launch groups
+ fLaunchManager.addLaunchConfigurationListener(new GroupMemberChangeListener());
}
return fLaunchManager;
}
@@ -726,9 +729,6 @@ public class DebugPlugin extends Plugin {
manager.registerAdapters(actionFactory, ILaunch.class);
manager.registerAdapters(actionFactory, IProcess.class);
manager.registerAdapters(actionFactory, IDebugElement.class);
-
- // monitor launch configuration renames for launch groups
- getLaunchManager().addLaunchConfigurationListener(new GroupMemberChangeListener());
}
/**
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java
index caf10c2d7..4caad68bf 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2020 IBM Corporation and others.
+ * Copyright (c) 2000, 2021 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -1120,7 +1120,7 @@ public class LaunchManager extends PlatformObject implements ILaunchManager, IRe
*
* @return all launch configuration handles
*/
- private synchronized List<ILaunchConfiguration> getAllLaunchConfigurations() {
+ public synchronized List<ILaunchConfiguration> getAllLaunchConfigurations() {
if (fLaunchConfigurationIndex == null) {
try {
fLaunchConfigurationIndex = new ArrayList<>(20);

Back to the top