Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2012-05-28 16:01:05 -0400
committerMarc Khouzam2012-05-29 14:33:35 -0400
commitfe5f6d43f25753ca501173901ddc30eb2f6faa51 (patch)
tree117f3530663767a020fd10e4a6c8b2fe3f640d97 /dsf-gdb
parent22d7ec958f7120bec546aa0c773576f9c4fb8edf (diff)
downloadorg.eclipse.cdt-fe5f6d43f25753ca501173901ddc30eb2f6faa51.tar.gz
org.eclipse.cdt-fe5f6d43f25753ca501173901ddc30eb2f6faa51.tar.xz
org.eclipse.cdt-fe5f6d43f25753ca501173901ddc30eb2f6faa51.zip
Bug 380315: [visualizer] Enablement of runControl operation in the
multicore visualizer toolbar are always enabled Change-Id: Ib3e5b2ae931d0e972f6e1a239eb240244f05099c Reviewed-on: https://git.eclipse.org/r/6135 Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com> IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com> Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
Diffstat (limited to 'dsf-gdb')
-rwxr-xr-xdsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java18
1 files changed, 5 insertions, 13 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java
index 2aca3f6ad3..e2debc2574 100755
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizer.java
@@ -297,21 +297,13 @@ public class MulticoreVisualizer extends GraphicCanvasVisualizer
{
if (! m_actionsInitialized) return;
- // TODO: do we need any special enabling code here?
- // Seems like we can rely on the enabling done by the DebugView itself,
- // since we've associated these actions with it.
-
boolean enabled = hasSelection();
+ m_selectAllAction.setEnabled(enabled);
+ m_refreshAction.setEnabled(enabled);
- m_resumeAction.setEnabled(enabled);
- m_suspendAction.setEnabled(enabled);
- m_terminateAction.setEnabled(enabled);
-
- m_stepReturnAction.setEnabled(enabled);
- m_stepOverAction.setEnabled(enabled);
- m_stepIntoAction.setEnabled(enabled);
- m_dropToFrameAction.setEnabled(enabled);
-
+ // We should not change the enablement of the debug view
+ // actions, as they are automatically enabled/disabled
+ // by the platform.
}
/** Updates actions specific to context menu. */

Back to the top