diff --git a/debug/org.eclipse.cdt.debug.ui/plugin.xml b/debug/org.eclipse.cdt.debug.ui/plugin.xml index 74e7b2148e2..1ebe6501976 100644 --- a/debug/org.eclipse.cdt.debug.ui/plugin.xml +++ b/debug/org.eclipse.cdt.debug.ui/plugin.xml @@ -357,6 +357,19 @@ id="org.eclipse.cdt.debug.ui.actions.popup.RunToLine"> + + + + + 0) + { + primaryType = renderingTypes[0]; + createRenderingInContainer(memoryBlock, renderingTypes[0], IDebugUIConstants.ID_RENDERING_VIEW_PANE_1); + } + } catch (CoreException e1) { + DebugUIPlugin.log(e1); + } + + for (int i = 0; i 0 ) { + + } + } + + public void selectionChanged(IAction action, ISelection selection) { + if ( selection instanceof IStructuredSelection ) { + List list = new ArrayList(); + IStructuredSelection ssel = (IStructuredSelection)selection; + Iterator i = ssel.iterator(); + while( i.hasNext() ) { + Object o = i.next(); + if ( o instanceof ICVariable ) { + ICVariable var = (ICVariable)o; + boolean enabled = true; + action.setEnabled( enabled ); + if ( enabled ) { + list.add( o ); + } + } + } + setVariables( (ICVariable[])list.toArray( new ICVariable[list.size()] ) ); + } + else { + action.setChecked( false ); + action.setEnabled( false ); + } + } + + protected ICVariable[] getVariables() { + return variables; + } + + private void setVariables( ICVariable[] variables ) { + this.variables = variables; + } + +}