mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 03:53:21 +02:00
Do not allow to modify aggregate variables.
This commit is contained in:
parent
a83210a3a1
commit
63074a1820
1 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
package org.eclipse.cdt.debug.internal.ui.views.registers;
|
package org.eclipse.cdt.debug.internal.ui.views.registers;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.internal.ui.CDTDebugModelPresentation;
|
|
||||||
import org.eclipse.cdt.debug.internal.ui.ICDebugHelpContextIds;
|
import org.eclipse.cdt.debug.internal.ui.ICDebugHelpContextIds;
|
||||||
import org.eclipse.cdt.debug.internal.ui.actions.ChangeRegisterValueAction;
|
import org.eclipse.cdt.debug.internal.ui.actions.ChangeRegisterValueAction;
|
||||||
import org.eclipse.cdt.debug.internal.ui.actions.ShowRegisterTypesAction;
|
import org.eclipse.cdt.debug.internal.ui.actions.ShowRegisterTypesAction;
|
||||||
|
@ -18,6 +17,7 @@ import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
||||||
import org.eclipse.cdt.debug.ui.ICDebugUIConstants;
|
import org.eclipse.cdt.debug.ui.ICDebugUIConstants;
|
||||||
import org.eclipse.debug.core.DebugException;
|
import org.eclipse.debug.core.DebugException;
|
||||||
import org.eclipse.debug.core.model.IStackFrame;
|
import org.eclipse.debug.core.model.IStackFrame;
|
||||||
|
import org.eclipse.debug.ui.DebugUITools;
|
||||||
import org.eclipse.debug.ui.IDebugModelPresentation;
|
import org.eclipse.debug.ui.IDebugModelPresentation;
|
||||||
import org.eclipse.debug.ui.IDebugUIConstants;
|
import org.eclipse.debug.ui.IDebugUIConstants;
|
||||||
import org.eclipse.jface.action.IAction;
|
import org.eclipse.jface.action.IAction;
|
||||||
|
@ -51,7 +51,7 @@ public class RegistersView extends AbstractDebugEventHandlerView
|
||||||
/**
|
/**
|
||||||
* The model presentation used as the label provider for the tree viewer.
|
* The model presentation used as the label provider for the tree viewer.
|
||||||
*/
|
*/
|
||||||
private CDTDebugModelPresentation fModelPresentation;
|
private IDebugModelPresentation fModelPresentation;
|
||||||
|
|
||||||
protected static final String VARIABLES_SELECT_ALL_ACTION = SELECT_ALL_ACTION + ".Registers"; //$NON-NLS-1$
|
protected static final String VARIABLES_SELECT_ALL_ACTION = SELECT_ALL_ACTION + ".Registers"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
@ -60,7 +60,6 @@ public class RegistersView extends AbstractDebugEventHandlerView
|
||||||
*/
|
*/
|
||||||
protected Viewer createViewer( Composite parent )
|
protected Viewer createViewer( Composite parent )
|
||||||
{
|
{
|
||||||
fModelPresentation = new CDTDebugModelPresentation();
|
|
||||||
CDebugUIPlugin.getDefault().getPreferenceStore().addPropertyChangeListener( this );
|
CDebugUIPlugin.getDefault().getPreferenceStore().addPropertyChangeListener( this );
|
||||||
|
|
||||||
// add tree viewer
|
// add tree viewer
|
||||||
|
@ -167,6 +166,7 @@ public class RegistersView extends AbstractDebugEventHandlerView
|
||||||
*/
|
*/
|
||||||
public void dispose()
|
public void dispose()
|
||||||
{
|
{
|
||||||
|
fModelPresentation.dispose();
|
||||||
getSite().getPage().removeSelectionListener( ICDebugUIConstants.ID_REGISTERS_VIEW, this );
|
getSite().getPage().removeSelectionListener( ICDebugUIConstants.ID_REGISTERS_VIEW, this );
|
||||||
CDebugUIPlugin.getDefault().getPreferenceStore().removePropertyChangeListener( this );
|
CDebugUIPlugin.getDefault().getPreferenceStore().removePropertyChangeListener( this );
|
||||||
super.dispose();
|
super.dispose();
|
||||||
|
@ -188,7 +188,7 @@ public class RegistersView extends AbstractDebugEventHandlerView
|
||||||
{
|
{
|
||||||
if ( fModelPresentation == null )
|
if ( fModelPresentation == null )
|
||||||
{
|
{
|
||||||
fModelPresentation = new CDTDebugModelPresentation();
|
fModelPresentation = DebugUITools.newDebugModelPresentation();
|
||||||
}
|
}
|
||||||
return fModelPresentation;
|
return fModelPresentation;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue