1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-13 11:15:38 +02:00

Removed the 'Show Type Names' preference from the Registers view's preference page.

This commit is contained in:
Mikhail Khodjaiants 2003-04-01 17:18:06 +00:00
parent a2cb5a0f26
commit 466c67576b
4 changed files with 13 additions and 8 deletions

View file

@ -1,3 +1,9 @@
2003-04-01 Mikhail Khodjaiants
Removed the 'Show Type Names' preference from the Registers view's preference page.
* ShowRegisterTypesAction.java
* RegistersViewPreferencePage.java
* RegistersView.java
2003-03-31 Mikhail Khodjaiants
'Auto-Refresh' and 'Refresh' actions for registers view.
* ICDebugHelpContextIds.java

View file

@ -31,7 +31,7 @@ public class ShowRegisterTypesAction extends Action
*/
public ShowRegisterTypesAction( StructuredViewer viewer )
{
super( "Show &Type Names" );
super( "Show &Type Names", Action.AS_CHECK_BOX );
setViewer( viewer );
setToolTipText( "Show Type Names" );
CDebugImages.setLocalImageDescriptors( this, CDebugImages.IMG_LCL_TYPE_NAMES );

View file

@ -7,7 +7,6 @@ package org.eclipse.cdt.debug.internal.ui.preferences;
import org.eclipse.cdt.debug.internal.ui.ICDebugHelpContextIds;
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.ColorFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
@ -58,8 +57,6 @@ public class RegistersViewPreferencePage extends FieldEditorPreferencePage
{
addField( new ColorFieldEditor( ICDebugPreferenceConstants.CHANGED_REGISTER_RGB, "&Changed register value color:", getFieldEditorParent() ) );
createSpacer( getFieldEditorParent(), 1 );
addField( new BooleanFieldEditor( IDebugUIConstants.PREF_SHOW_TYPE_NAMES, "Show type &names by default", SWT.NONE, getFieldEditorParent() ) );
createSpacer( getFieldEditorParent(), 1 );
addField( new BooleanFieldEditor( ICDebugPreferenceConstants.PREF_REGISTERS_AUTO_REFRESH, "Auto-Refresh by default", getFieldEditorParent() ) );
}
@ -72,7 +69,6 @@ public class RegistersViewPreferencePage extends FieldEditorPreferencePage
public static void initDefaults( IPreferenceStore store )
{
store.setDefault( IDebugUIConstants.PREF_SHOW_TYPE_NAMES, false );
PreferenceConverter.setDefault( store,
ICDebugPreferenceConstants.CHANGED_REGISTER_RGB,
new RGB( 255, 0, 0 ) );

View file

@ -88,7 +88,6 @@ public class RegistersView extends AbstractDebugEventHandlerView
protected void createActions()
{
IAction action = new ShowRegisterTypesAction( getStructuredViewer() );
action.setChecked( CDebugUIPlugin.getDefault().getPreferenceStore().getBoolean( IDebugUIConstants.PREF_SHOW_TYPE_NAMES ) );
setAction( "ShowTypeNames", action ); //$NON-NLS-1$
action = new ChangeRegisterValueAction( getViewer() );
@ -134,13 +133,17 @@ public class RegistersView extends AbstractDebugEventHandlerView
{
menu.add( new Separator( ICDebugUIConstants.EMPTY_REGISTER_GROUP ) );
menu.add( new Separator( ICDebugUIConstants.REGISTER_GROUP ) );
menu.add( getAction( "ChangeRegisterValue" ) ); //$NON-NLS-1$
menu.add( new Separator( IDebugUIConstants.EMPTY_RENDER_GROUP ) );
menu.add( new Separator( IDebugUIConstants.RENDER_GROUP ) );
menu.add( getAction( "ShowTypeNames" ) ); //$NON-NLS-1$
menu.add( new Separator( ICDebugUIConstants.EMPTY_REFRESH_GROUP ) );
menu.add( new Separator( ICDebugUIConstants.REFRESH_GROUP ) );
menu.add( new Separator( IWorkbenchActionConstants.MB_ADDITIONS ) );
menu.appendToGroup( ICDebugUIConstants.REGISTER_GROUP, getAction( "ChangeRegisterValue" ) ); //$NON-NLS-1$
menu.appendToGroup( IDebugUIConstants.RENDER_GROUP, getAction( "ShowTypeNames" ) ); //$NON-NLS-1$
menu.appendToGroup( ICDebugUIConstants.REFRESH_GROUP, getAction( "AutoRefresh" ) ); //$NON-NLS-1$
menu.appendToGroup( ICDebugUIConstants.REFRESH_GROUP, getAction( "Refresh" ) ); //$NON-NLS-1$
}