From cf9c80f17e8f48c805bd8f83023bc591ae2add47 Mon Sep 17 00:00:00 2001 From: John Cortell Date: Tue, 6 Oct 2009 20:43:36 +0000 Subject: [291535] inconsistency in listener registration in launch vm providers --- .../cdt/dsf/debug/ui/viewmodel/launch/AbstractLaunchVMProvider.java | 5 +++++ .../examples/dsf/pda/ui/viewmodel/launch/PDALaunchVMProvider.java | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'dsf') diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/AbstractLaunchVMProvider.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/AbstractLaunchVMProvider.java index 74f0b5b5282..1c665f2da8f 100644 --- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/AbstractLaunchVMProvider.java +++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/AbstractLaunchVMProvider.java @@ -86,6 +86,11 @@ public class AbstractLaunchVMProvider extends AbstractDMVMProvider handlePropertyChanged(store, event); }}; store.addPropertyChangeListener(fPreferencesListener); + + // Register the LaunchVM provider as a listener to debug and launch + // events. These events are used by the launch and processes nodes. + DebugPlugin.getDefault().addDebugEventListener(this); + DebugPlugin.getDefault().getLaunchManager().addLaunchListener(this); } @Override diff --git a/dsf/org.eclipse.cdt.examples.dsf.pda.ui/src/org/eclipse/cdt/examples/dsf/pda/ui/viewmodel/launch/PDALaunchVMProvider.java b/dsf/org.eclipse.cdt.examples.dsf.pda.ui/src/org/eclipse/cdt/examples/dsf/pda/ui/viewmodel/launch/PDALaunchVMProvider.java index b00b63e8946..3bca556ccb1 100644 --- a/dsf/org.eclipse.cdt.examples.dsf.pda.ui/src/org/eclipse/cdt/examples/dsf/pda/ui/viewmodel/launch/PDALaunchVMProvider.java +++ b/dsf/org.eclipse.cdt.examples.dsf.pda.ui/src/org/eclipse/cdt/examples/dsf/pda/ui/viewmodel/launch/PDALaunchVMProvider.java @@ -62,10 +62,5 @@ public class PDALaunchVMProvider extends AbstractLaunchVMProvider // Stack frames node is under the PDA threads node. IVMNode stackFramesNode = new StackFramesVMNode(this, getSession()); addChildNodes(threadsNode, new IVMNode[] { stackFramesNode }); - - // Register the LaunchVM provider as a listener to debug and launch - // events. These events are used by the launch and processes nodes. - DebugPlugin.getDefault().addDebugEventListener(this); - DebugPlugin.getDefault().getLaunchManager().addLaunchListener(this); } } -- cgit v1.2.3