Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2011-04-26 16:18:22 +0000
committerPawel Piech2011-04-26 16:18:22 +0000
commitd5d371784d5c6c849a84af800f0fdf93a607e43c (patch)
treef1038fc103511147e15defa3c88175673d4b7717 /dsf/org.eclipse.cdt.dsf.ui/src/org
parent04f74e7829498980754e9337fd34be7b9bce9e66 (diff)
downloadorg.eclipse.cdt-d5d371784d5c6c849a84af800f0fdf93a607e43c.tar.gz
org.eclipse.cdt-d5d371784d5c6c849a84af800f0fdf93a607e43c.tar.xz
org.eclipse.cdt-d5d371784d5c6c849a84af800f0fdf93a607e43c.zip
Bug 343867 - EvaluationContextManager unnecessarily triggers loading of org.eclipse.cdt.debug.ui
Diffstat (limited to 'dsf/org.eclipse.cdt.dsf.ui/src/org')
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/EvaluationContextManager.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/EvaluationContextManager.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/EvaluationContextManager.java
index 8dff61644c4..aa56811d137 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/EvaluationContextManager.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/EvaluationContextManager.java
@@ -15,7 +15,6 @@ package org.eclipse.cdt.dsf.debug.internal.ui;
import java.util.HashMap;
import java.util.Map;
-import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
import org.eclipse.cdt.dsf.ui.viewmodel.datamodel.IDMVMContext;
import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.jface.viewers.ISelection;
@@ -42,8 +41,13 @@ import org.eclipse.ui.PlatformUI;
*/
public class EvaluationContextManager implements IWindowListener, IPageListener, ISelectionListener, IPartListener2 {
+ // Avoid referencing the cdt.debug.ui plugin for this constnat so that the
+ // cdt.debug.ui is not automatically activated
+ // Bug 343867.
+ private static final String CDT_DEBUG_UI_PLUGIN_ID = "org.eclipse.cdt.debug.ui"; //$NON-NLS-1$
+
// Must use the same ID than the base CDT uses since we want to enable actions that are registered by base CDT.
- private final static String DEBUGGER_ACTIVE = CDebugUIPlugin.getUniqueIdentifier() + ".debuggerActive"; //$NON-NLS-1$
+ private final static String DEBUGGER_ACTIVE = CDT_DEBUG_UI_PLUGIN_ID + ".debuggerActive"; //$NON-NLS-1$
protected static EvaluationContextManager fgManager;

Back to the top