1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

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>
This commit is contained in:
Marc Khouzam 2012-05-28 16:01:05 -04:00
parent 22d7ec958f
commit fe5f6d43f2

View file

@ -297,21 +297,13 @@ public class MulticoreVisualizer extends GraphicCanvasVisualizer
{ {
if (! m_actionsInitialized) return; 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(); boolean enabled = hasSelection();
m_selectAllAction.setEnabled(enabled);
m_refreshAction.setEnabled(enabled);
m_resumeAction.setEnabled(enabled); // We should not change the enablement of the debug view
m_suspendAction.setEnabled(enabled); // actions, as they are automatically enabled/disabled
m_terminateAction.setEnabled(enabled); // by the platform.
m_stepReturnAction.setEnabled(enabled);
m_stepOverAction.setEnabled(enabled);
m_stepIntoAction.setEnabled(enabled);
m_dropToFrameAction.setEnabled(enabled);
} }
/** Updates actions specific to context menu. */ /** Updates actions specific to context menu. */