mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 17:25:38 +02:00
Moved the "Show Full Paths" action from toolbars to view's menus.
This commit is contained in:
parent
884e67b57e
commit
e9f35af8d7
12 changed files with 588 additions and 192 deletions
|
@ -1,3 +1,17 @@
|
|||
2004-04-01 Mikhail Khodjaiants
|
||||
Moved the "Show Full Paths" action from toolbars to view's menus.
|
||||
* CDebugModelPresentation.java - new (will replace CDTDebugModelPresentation)
|
||||
* CDebugUIMessages.java - new
|
||||
* CDebugUIMessages.properties - new
|
||||
* ActionMessages.properties - new
|
||||
* ActionMessages.java - new
|
||||
* ShowFullPathsAction.java
|
||||
* ViewFilterAction.java -new
|
||||
* ICDebugPreferenceConstants.java
|
||||
* icons/full/clcl16/show_paths.gif - new (replaced the old icon)
|
||||
* plugin.properties
|
||||
* plugin.xml
|
||||
|
||||
2004-03-31 Mikhail Khodjaiants
|
||||
Added default preferences to the C/C++ Debug preference page.
|
||||
Removed the preference page of the Shared Libraries views.
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 147 B After Width: | Height: | Size: 327 B |
|
@ -43,7 +43,7 @@ RunToLineAction.label=Run To &Line
|
|||
JumpToLineAction.label=Resume At Li&ne
|
||||
GlobalRunToLineAction.label=Run To &Line (C/C++)
|
||||
GlobalJumpToLineAction.label=Resume At Li&ne (C/C++)
|
||||
ShowFullPathsAction.label=Show Full Paths
|
||||
ShowFullPathsAction.label=Show Full &Paths
|
||||
ShowFullPathsAction.tooltip=Show Full Paths
|
||||
|
||||
AddGlobalsAction.label=Add Global Variables...
|
||||
|
|
|
@ -69,24 +69,24 @@
|
|||
targetID="org.eclipse.debug.ui.DebugPerspective">
|
||||
<view
|
||||
relative="org.eclipse.debug.ui.VariableView"
|
||||
relationship="stack"
|
||||
id="org.eclipse.cdt.debug.ui.MemoryView">
|
||||
id="org.eclipse.cdt.debug.ui.MemoryView"
|
||||
relationship="stack">
|
||||
</view>
|
||||
<viewShortcut
|
||||
id="org.eclipse.cdt.debug.ui.MemoryView">
|
||||
</viewShortcut>
|
||||
<view
|
||||
relative="org.eclipse.debug.ui.VariableView"
|
||||
relationship="stack"
|
||||
id="org.eclipse.cdt.debug.ui.SharedLibrariesView">
|
||||
id="org.eclipse.cdt.debug.ui.SharedLibrariesView"
|
||||
relationship="stack">
|
||||
</view>
|
||||
<viewShortcut
|
||||
id="org.eclipse.cdt.debug.ui.SharedLibrariesView">
|
||||
</viewShortcut>
|
||||
<view
|
||||
relative="org.eclipse.debug.ui.VariableView"
|
||||
relationship="stack"
|
||||
id="org.eclipse.cdt.debug.ui.SignalsView">
|
||||
id="org.eclipse.cdt.debug.ui.SignalsView"
|
||||
relationship="stack">
|
||||
</view>
|
||||
<viewShortcut
|
||||
id="org.eclipse.cdt.debug.ui.SignalsView">
|
||||
|
@ -290,25 +290,10 @@
|
|||
</pluginState>
|
||||
</enablement>
|
||||
</action>
|
||||
<action
|
||||
label="%ShowFullPathsAction.label"
|
||||
style="toggle"
|
||||
icon="icons/full/clcl16/show_paths.gif"
|
||||
helpContextId="show_full_paths_action_context"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
|
||||
menubarPath="renderGroup"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction">
|
||||
<enablement>
|
||||
<pluginState
|
||||
value="activated"
|
||||
id="org.eclipse.cdt.debug.ui">
|
||||
</pluginState>
|
||||
</enablement>
|
||||
</action>
|
||||
<action
|
||||
label="%SwitchToDisassemblyAction.label"
|
||||
style="toggle"
|
||||
icon="icons/full/clcl16/disassembly.gif"
|
||||
style="toggle"
|
||||
helpContextId="switch_to_disassembly_action_context"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.SwitchToDisassemblyActionDelegate"
|
||||
menubarPath="renderGroup"
|
||||
|
@ -323,8 +308,8 @@
|
|||
</action>
|
||||
<action
|
||||
label="%ShowDebuggerConsoleAction.label"
|
||||
style="toggle"
|
||||
icon="icons/full/clcl16/debugger_console.gif"
|
||||
style="toggle"
|
||||
helpContextId="show_debugger_console_action_context"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.DebuggerConsoleActionDelegate"
|
||||
menubarPath="renderGroup"
|
||||
|
@ -460,21 +445,6 @@
|
|||
<viewerContribution
|
||||
targetID="org.eclipse.debug.ui.BreakpointView"
|
||||
id="org.eclipse.cdt.debug.ui.breakpointview.popupMenu">
|
||||
<action
|
||||
label="%ShowFullPathsAction.label"
|
||||
style="toggle"
|
||||
icon="icons/full/clcl16/show_paths.gif"
|
||||
helpContextId="show_full_paths_action_context"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
|
||||
menubarPath="renderGroup"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction">
|
||||
<enablement>
|
||||
<pluginState
|
||||
value="activated"
|
||||
id="org.eclipse.cdt.debug.ui">
|
||||
</pluginState>
|
||||
</enablement>
|
||||
</action>
|
||||
</viewerContribution>
|
||||
<viewerContribution
|
||||
targetID="org.eclipse.debug.ui.ExpressionView"
|
||||
|
@ -736,21 +706,6 @@
|
|||
<viewerContribution
|
||||
targetID="org.eclipse.cdt.debug.ui.SharedLibrariesView"
|
||||
id="org.eclipse.cdt.debug.ui.SharedLibrariesViewPopupActions">
|
||||
<action
|
||||
label="%ShowFullPathsAction.label"
|
||||
style="toggle"
|
||||
icon="icons/full/clcl16/show_paths.gif"
|
||||
helpContextId="show_full_paths_action_context"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
|
||||
menubarPath="renderGroup"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction">
|
||||
<enablement>
|
||||
<pluginState
|
||||
value="activated"
|
||||
id="org.eclipse.cdt.debug.ui">
|
||||
</pluginState>
|
||||
</enablement>
|
||||
</action>
|
||||
</viewerContribution>
|
||||
<objectContribution
|
||||
objectClass="org.eclipse.cdt.debug.core.model.ICSharedLibrary"
|
||||
|
@ -759,8 +714,8 @@
|
|||
label="%LoadSymbolsAction.label"
|
||||
icon="icons/full/clcl16/load_symbols_co.gif"
|
||||
helpContextId="load_symbols_action_context"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.LoadSymbolsActionDelegate"
|
||||
tooltip="%LoadSymbolsAction.tooltip"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.LoadSymbolsActionDelegate"
|
||||
menubarPath="sharedLibrariesGroup"
|
||||
enablesFor="1"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.LoadSymbolsActionDelegate">
|
||||
|
@ -779,8 +734,8 @@
|
|||
label="%SignalAction.label"
|
||||
icon="icons/full/clcl16/signal_co.gif"
|
||||
helpContextId="signal_action_context"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.SignalActionDelegate"
|
||||
tooltip="%SignalAction.tooltip"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.SignalActionDelegate"
|
||||
menubarPath="additions"
|
||||
enablesFor="1"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.SignalActionDelegate">
|
||||
|
@ -817,8 +772,8 @@
|
|||
<action
|
||||
label="%RestoreDefaultTypeAction.label"
|
||||
helpContextId="restore_default_type_action_context"
|
||||
tooltip="%RestoreDefaultTypeAction.tooltip"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.RestoreDefaultTypeActionDelegate"
|
||||
tooltip="%RestoreDefaultTypeAction.tooltip"
|
||||
menubarPath="additions"
|
||||
enablesFor="1"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.RestoreDefaultTypeActionDelegate">
|
||||
|
@ -833,8 +788,8 @@
|
|||
label="%CastToTypeAction.label"
|
||||
icon="icons/full/clcl16/casttotype_co.gif"
|
||||
helpContextId="cast_to_type_action_context"
|
||||
tooltip="%CastToTypeAction.tooltip"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.CastToTypeActionDelegate"
|
||||
tooltip="%CastToTypeAction.tooltip"
|
||||
menubarPath="additions"
|
||||
enablesFor="1"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.CastToTypeActionDelegate">
|
||||
|
@ -849,8 +804,8 @@
|
|||
label="%CastToArrayAction.label"
|
||||
icon="icons/full/clcl16/showasarray_co.gif"
|
||||
helpContextId="cast_to_array_action_context"
|
||||
tooltip="%CastToArrayAction.tooltip"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.CastToArrayActionDelegate"
|
||||
tooltip="%CastToArrayAction.tooltip"
|
||||
menubarPath="additions"
|
||||
enablesFor="1"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.CastToArrayActionDelegate">
|
||||
|
@ -869,8 +824,8 @@
|
|||
label="%ManageFunctionBreakpointAction.label"
|
||||
icon="icons/full/obj16/funbrkp_obj.gif"
|
||||
helpContextId="manage_function_breakpoint_action_context"
|
||||
tooltip="%ManageFunctionBreakpointAction.tooltip"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.ManageFunctionBreakpointActionDelegate"
|
||||
tooltip="%ManageFunctionBreakpointAction.tooltip"
|
||||
menubarPath="additions"
|
||||
enablesFor="1"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.ManageFunctionBreakpointActionDelegate">
|
||||
|
@ -889,8 +844,8 @@
|
|||
label="%DisableVariablesAction.label"
|
||||
icon="icons/full/clcl16/disabled_co.gif"
|
||||
helpContextId="disable_variables_action_context"
|
||||
tooltip="%DisableVariablesAction.tooltip"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.DisableVariablesActionDelegate"
|
||||
tooltip="%DisableVariablesAction.tooltip"
|
||||
menubarPath="variableGroup"
|
||||
enablesFor="2+"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.DisableVariablesActionDelegate">
|
||||
|
@ -902,8 +857,8 @@
|
|||
label="%EnableVariablesAction.label"
|
||||
icon="icons/full/clcl16/enabled_co.gif"
|
||||
helpContextId="enable_variables_action_context"
|
||||
tooltip="%EnableVariablesAction.tooltip"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.EnableVariablesActionDelegate"
|
||||
tooltip="%EnableVariablesAction.tooltip"
|
||||
menubarPath="variableGroup"
|
||||
enablesFor="2+"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.EnableVariablesActionDelegate">
|
||||
|
@ -926,8 +881,8 @@
|
|||
disabledIcon="icons/full/dlcl16/restart.gif"
|
||||
enablesFor="1"
|
||||
icon="icons/full/elcl16/restart.gif"
|
||||
helpContextId="restart_action_context"
|
||||
label="%RestartAction.label"
|
||||
helpContextId="restart_action_context"
|
||||
tooltip="%RestartAction.tooltip">
|
||||
<enablement>
|
||||
<pluginState
|
||||
|
@ -936,24 +891,6 @@
|
|||
</pluginState>
|
||||
</enablement>
|
||||
</action>
|
||||
<action
|
||||
style="toggle"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
|
||||
toolbarPath="renderGroup"
|
||||
hoverIcon="icons/full/clcl16/show_paths.gif"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
|
||||
disabledIcon="icons/full/dlcl16/show_paths.gif"
|
||||
icon="icons/full/elcl16/show_parents.gif"
|
||||
helpContextId="show_full_paths_action_context"
|
||||
label="%ShowFullPathsAction.label"
|
||||
tooltip="%ShowFullPathsAction.tooltip">
|
||||
<enablement>
|
||||
<pluginState
|
||||
value="activated"
|
||||
id="org.eclipse.cdt.debug.ui">
|
||||
</pluginState>
|
||||
</enablement>
|
||||
</action>
|
||||
<action
|
||||
style="toggle"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.SwitchToDisassemblyActionDelegate"
|
||||
|
@ -963,8 +900,8 @@
|
|||
disabledIcon="icons/full/dlcl16/disassembly.gif"
|
||||
enablesFor="1"
|
||||
icon="icons/full/elcl16/disassembly.gif"
|
||||
helpContextId="switch_to_disassembly_action_context"
|
||||
label="%SwitchToDisassemblyAction.label"
|
||||
helpContextId="switch_to_disassembly_action_context"
|
||||
tooltip="%SwitchToDisassemblyAction.tooltip">
|
||||
<enablement>
|
||||
<pluginState
|
||||
|
@ -982,8 +919,8 @@
|
|||
disabledIcon="icons/full/dlcl16/debugger_console.gif"
|
||||
enablesFor="1"
|
||||
icon="icons/full/elcl16/debugger_console.gif"
|
||||
helpContextId="show_debugger_console_action_context"
|
||||
label="%ShowDebuggerConsoleAction.label"
|
||||
helpContextId="show_debugger_console_action_context"
|
||||
tooltip="%ShowDebuggerConsoleAction.tooltip">
|
||||
<enablement>
|
||||
<pluginState
|
||||
|
@ -994,18 +931,40 @@
|
|||
</action>
|
||||
</viewContribution>
|
||||
<viewContribution
|
||||
targetID="org.eclipse.debug.ui.BreakpointView"
|
||||
id="org.eclipse.cdt.debug.ui.breakpointview.toolbar">
|
||||
targetID="org.eclipse.debug.ui.DebugView"
|
||||
id="org.eclipse.cdt.debug.ui.debugView.menu">
|
||||
<action
|
||||
style="toggle"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
|
||||
toolbarPath="renderGroup"
|
||||
hoverIcon="icons/full/clcl16/show_paths.gif"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
|
||||
disabledIcon="icons/full/dlcl16/show_paths.gif"
|
||||
icon="icons/full/elcl16/show_parents.gif"
|
||||
helpContextId="show_full_paths_action_context"
|
||||
menubarPath="cDebugActions"
|
||||
label="%ShowFullPathsAction.label"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
|
||||
style="toggle"
|
||||
icon="icons/full/clcl16/show_paths.gif"
|
||||
helpContextId="show_full_paths_context"
|
||||
tooltip="%ShowFullPathsAction.tooltip">
|
||||
<enablement>
|
||||
<pluginState
|
||||
value="activated"
|
||||
id="org.eclipse.cdt.debug.ui">
|
||||
</pluginState>
|
||||
</enablement>
|
||||
</action>
|
||||
</viewContribution>
|
||||
<viewContribution
|
||||
targetID="org.eclipse.debug.ui.BreakpointView"
|
||||
id="org.eclipse.cdt.debug.ui.breakpointView.toolbar">
|
||||
</viewContribution>
|
||||
<viewContribution
|
||||
targetID="org.eclipse.debug.ui.BreakpointView"
|
||||
id="org.eclipse.cdt.debug.ui.breakpointView.menu">
|
||||
<action
|
||||
menubarPath="cDebugActions"
|
||||
label="%ShowFullPathsAction.label"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
|
||||
style="toggle"
|
||||
icon="icons/full/clcl16/show_paths.gif"
|
||||
helpContextId="show_full_paths_context"
|
||||
tooltip="%ShowFullPathsAction.tooltip">
|
||||
<enablement>
|
||||
<pluginState
|
||||
|
@ -1026,8 +985,8 @@
|
|||
disabledIcon="icons/full/dlcl16/watch_globals.gif"
|
||||
enablesFor="1"
|
||||
icon="icons/full/elcl16/watch_globals.gif"
|
||||
helpContextId="add_globals_action_context"
|
||||
label="%AddGlobalsAction.label"
|
||||
helpContextId="add_globals_action_context"
|
||||
tooltip="%AddGlobalsAction.tooltip">
|
||||
<enablement>
|
||||
<pluginState
|
||||
|
@ -1039,22 +998,20 @@
|
|||
</viewContribution>
|
||||
<viewContribution
|
||||
targetID="org.eclipse.cdt.debug.ui.SharedLibrariesView"
|
||||
id="org.eclipse.debug.ui.sharedLibrariesView.toolbar">
|
||||
id="org.eclipse.debug.ui.sharedLibrariesView.menu">
|
||||
<action
|
||||
style="toggle"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
|
||||
toolbarPath="renderGroup"
|
||||
hoverIcon="icons/full/clcl16/show_paths.gif"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
|
||||
disabledIcon="icons/full/dlcl16/show_paths.gif"
|
||||
icon="icons/full/elcl16/show_parents.gif"
|
||||
helpContextId="show_full_paths_action_context"
|
||||
label="%ShowFullPathsAction.label"
|
||||
tooltip="%ShowFullPathsAction.tooltip">
|
||||
icon="icons/full/clcl16/show_paths.gif"
|
||||
style="toggle"
|
||||
helpContextId="show_full_paths_context"
|
||||
tooltip="%ShowFullPathsAction.tooltip"
|
||||
class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
|
||||
menubarPath="cDebugActions"
|
||||
id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction">
|
||||
<enablement>
|
||||
<pluginState
|
||||
value="activated"
|
||||
id="org.eclipse.cdt.debug.ui">
|
||||
id="org.eclipse.cdt.debug.ui"
|
||||
value="activated">
|
||||
</pluginState>
|
||||
</enablement>
|
||||
</action>
|
||||
|
@ -1139,20 +1096,20 @@
|
|||
<extension
|
||||
point="org.eclipse.debug.core.statusHandlers">
|
||||
<statusHandler
|
||||
plugin="org.eclipse.cdt.debug.core"
|
||||
code="10000"
|
||||
plugin="org.eclipse.cdt.debug.core"
|
||||
class="org.eclipse.cdt.debug.internal.ui.QuestionStatusHandler"
|
||||
id="org.eclipse.cdt.debug.internal.ui.QuestionStatusHandler">
|
||||
</statusHandler>
|
||||
<statusHandler
|
||||
plugin="org.eclipse.cdt.debug.core"
|
||||
code="10001"
|
||||
plugin="org.eclipse.cdt.debug.core"
|
||||
class="org.eclipse.cdt.debug.internal.ui.InfoStatusHandler"
|
||||
id="org.eclipse.cdt.debug.internal.ui.InfoStatusHandler">
|
||||
</statusHandler>
|
||||
<statusHandler
|
||||
plugin="org.eclipse.cdt.debug.core"
|
||||
code="10002"
|
||||
plugin="org.eclipse.cdt.debug.core"
|
||||
class="org.eclipse.cdt.debug.internal.ui.ErrorStatusHandler"
|
||||
id="org.eclipse.cdt.debug.internal.ui.ErrorStatusHandler">
|
||||
</statusHandler>
|
||||
|
@ -1215,16 +1172,16 @@
|
|||
point="org.eclipse.ui.editors">
|
||||
<editor
|
||||
name="%DisassemblyEditor.name"
|
||||
icon="icons/full/obj16/disassembly_obj.gif"
|
||||
extensions="dasm"
|
||||
icon="icons/full/obj16/disassembly_obj.gif"
|
||||
class="org.eclipse.cdt.debug.internal.ui.editors.DisassemblyEditor"
|
||||
id="org.eclipse.cdt.debug.ui.DisassemblyEditor">
|
||||
</editor>
|
||||
<editor
|
||||
name="%CDebugEditor.name"
|
||||
icon="icons/full/obj16/filenotfound_obj.gif"
|
||||
contributorClass="org.eclipse.cdt.internal.ui.editor.CEditorActionContributor"
|
||||
class="org.eclipse.cdt.debug.internal.ui.editors.CDebugEditor"
|
||||
contributorClass="org.eclipse.cdt.internal.ui.editor.CEditorActionContributor"
|
||||
id="org.eclipse.cdt.debug.ui.editor.CDebugEditor">
|
||||
</editor>
|
||||
</extension>
|
||||
|
@ -1246,8 +1203,8 @@
|
|||
<context
|
||||
name="Debugging C/C++"
|
||||
description="Debugging C/C++ Programs"
|
||||
parentId="org.eclipse.debug.ui.debugging"
|
||||
id="org.eclipse.cdt.debug.ui.debugging">
|
||||
id="org.eclipse.cdt.debug.ui.debugging"
|
||||
parentId="org.eclipse.debug.ui.debugging">
|
||||
</context>
|
||||
</extension>
|
||||
<extension
|
||||
|
@ -1261,23 +1218,23 @@
|
|||
point="org.eclipse.debug.ui.contextViewBindings">
|
||||
<contextViewBinding
|
||||
viewId="org.eclipse.cdt.debug.ui.MemoryView"
|
||||
contextId="org.eclipse.cdt.debug.ui.debugging"
|
||||
autoClose="false">
|
||||
autoClose="false"
|
||||
contextId="org.eclipse.cdt.debug.ui.debugging">
|
||||
</contextViewBinding>
|
||||
<contextViewBinding
|
||||
viewId="org.eclipse.cdt.debug.ui.SharedLibrariesView"
|
||||
contextId="org.eclipse.cdt.debug.ui.debugging"
|
||||
autoClose="false">
|
||||
autoClose="false"
|
||||
contextId="org.eclipse.cdt.debug.ui.debugging">
|
||||
</contextViewBinding>
|
||||
<contextViewBinding
|
||||
viewId="org.eclipse.cdt.debug.ui.SignalsView"
|
||||
contextId="org.eclipse.cdt.debug.ui.debugging"
|
||||
autoClose="false">
|
||||
autoClose="false"
|
||||
contextId="org.eclipse.cdt.debug.ui.debugging">
|
||||
</contextViewBinding>
|
||||
<contextViewBinding
|
||||
viewId="org.eclipse.debug.ui.RegistersView"
|
||||
contextId="org.eclipse.cdt.debug.ui.debugging"
|
||||
autoClose="false">
|
||||
autoClose="false"
|
||||
contextId="org.eclipse.cdt.debug.ui.debugging">
|
||||
</contextViewBinding>
|
||||
</extension>
|
||||
|
||||
|
|
|
@ -0,0 +1,205 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.internal.ui;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.eclipse.cdt.debug.core.model.ICSharedLibrary;
|
||||
import org.eclipse.cdt.debug.core.model.ICSignal;
|
||||
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
import org.eclipse.debug.core.DebugException;
|
||||
import org.eclipse.debug.core.model.IRegisterGroup;
|
||||
import org.eclipse.debug.core.model.IValue;
|
||||
import org.eclipse.debug.internal.ui.DebugUIPlugin;
|
||||
import org.eclipse.debug.ui.IDebugModelPresentation;
|
||||
import org.eclipse.debug.ui.IValueDetailListener;
|
||||
import org.eclipse.jface.resource.ImageDescriptor;
|
||||
import org.eclipse.jface.viewers.LabelProvider;
|
||||
import org.eclipse.swt.graphics.Image;
|
||||
import org.eclipse.ui.IEditorInput;
|
||||
|
||||
/**
|
||||
* Enter type comment.
|
||||
*
|
||||
* @since: Feb 4, 2004
|
||||
*/
|
||||
public class CDebugModelPresentation extends LabelProvider implements IDebugModelPresentation {
|
||||
|
||||
public final static String DISPLAY_FULL_PATHS = "DISPLAY_FULL_PATHS"; //$NON-NLS-1$
|
||||
|
||||
protected HashMap fAttributes = new HashMap( 3 );
|
||||
|
||||
protected CDebugImageDescriptorRegistry fDebugImageRegistry = CDebugUIPlugin.getImageDescriptorRegistry();
|
||||
|
||||
private OverlayImageCache fImageCache = new OverlayImageCache();
|
||||
|
||||
private static CDebugModelPresentation gfInstance = null;
|
||||
|
||||
public static CDebugModelPresentation getDefault() {
|
||||
if ( gfInstance == null )
|
||||
gfInstance = new CDebugModelPresentation();
|
||||
return gfInstance;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.IDebugModelPresentation#setAttribute(java.lang.String, java.lang.Object)
|
||||
*/
|
||||
public void setAttribute( String attribute, Object value ) {
|
||||
if ( value == null )
|
||||
return;
|
||||
getAttributes().put( attribute, value );
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.IDebugModelPresentation#computeDetail(org.eclipse.debug.core.model.IValue, org.eclipse.debug.ui.IValueDetailListener)
|
||||
*/
|
||||
public void computeDetail( IValue value, IValueDetailListener listener ) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.ISourcePresentation#getEditorInput(java.lang.Object)
|
||||
*/
|
||||
public IEditorInput getEditorInput( Object element ) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.debug.ui.ISourcePresentation#getEditorId(org.eclipse.ui.IEditorInput, java.lang.Object)
|
||||
*/
|
||||
public String getEditorId( IEditorInput input, Object element ) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
public Image getImage( Object element ) {
|
||||
Image baseImage = getBaseImage( element );
|
||||
if ( baseImage != null ) {
|
||||
ImageDescriptor[] overlays = new ImageDescriptor[] { null, null, null, null };
|
||||
|
||||
return getImageCache().getImageFor( new OverlayImageDescriptor( baseImage, overlays ) );
|
||||
}
|
||||
return getDefaultImage( element );
|
||||
}
|
||||
|
||||
private Image getBaseImage( Object element ) {
|
||||
if ( element instanceof ICSharedLibrary )
|
||||
return getSharedLibraryImage( (ICSharedLibrary)element );
|
||||
if ( element instanceof IRegisterGroup )
|
||||
return getRegisterGroupImage( (IRegisterGroup)element );
|
||||
if ( element instanceof ICSignal )
|
||||
return getSignalImage( (ICSignal)element );
|
||||
return super.getImage( element );
|
||||
}
|
||||
|
||||
protected Image getSharedLibraryImage( ICSharedLibrary element ) {
|
||||
if ( element.areSymbolsLoaded() ) {
|
||||
return getImageCache().getImageFor(
|
||||
new OverlayImageDescriptor( getDebugImageRegistry().get( CDebugImages.DESC_OBJS_LOADED_SHARED_LIBRARY ),
|
||||
new ImageDescriptor[] { null, CDebugImages.DESC_OVRS_SYMBOLS, null, null } ) );
|
||||
}
|
||||
return CDebugUIPlugin.getImageDescriptorRegistry().get( CDebugImages.DESC_OBJS_SHARED_LIBRARY );
|
||||
}
|
||||
|
||||
protected Image getSignalImage( ICSignal signal ) {
|
||||
return CDebugUIPlugin.getImageDescriptorRegistry().get( CDebugImages.DESC_OBJS_SIGNAL );
|
||||
}
|
||||
|
||||
protected Image getRegisterGroupImage( IRegisterGroup element ) {
|
||||
return fDebugImageRegistry.get( CDebugImages.DESC_OBJS_REGISTER_GROUP );
|
||||
}
|
||||
|
||||
public String getText( Object element ) {
|
||||
StringBuffer baseText = new StringBuffer( getBaseText( element ) );
|
||||
return baseText.toString();
|
||||
}
|
||||
|
||||
private String getBaseText( Object element ) {
|
||||
boolean showQualified = isShowQualifiedNames();
|
||||
StringBuffer label = new StringBuffer();
|
||||
|
||||
if ( element instanceof ICSharedLibrary ) {
|
||||
label.append( getSharedLibraryText( (ICSharedLibrary)element, showQualified ) );
|
||||
return label.toString();
|
||||
}
|
||||
if ( element instanceof IRegisterGroup ) {
|
||||
label.append( getRegisterGroupText( (IRegisterGroup)element ) );
|
||||
return label.toString();
|
||||
}
|
||||
|
||||
if ( label.length() > 0 ) {
|
||||
return label.toString();
|
||||
}
|
||||
|
||||
return getDefaultText( element );
|
||||
}
|
||||
|
||||
protected String getSharedLibraryText( ICSharedLibrary library, boolean qualified ) {
|
||||
String label = new String();
|
||||
String name = library.getFileName();
|
||||
if ( !isEmpty( name ) ) {
|
||||
IPath path = new Path( library.getFileName() );
|
||||
if ( !path.isEmpty() )
|
||||
label += ( qualified ? path.toOSString() : path.lastSegment() );
|
||||
}
|
||||
else {
|
||||
label += "unknown";
|
||||
}
|
||||
return label;
|
||||
}
|
||||
|
||||
protected String getRegisterGroupText( IRegisterGroup group ) {
|
||||
String name = "<not available>";
|
||||
try {
|
||||
name = group.getName();
|
||||
}
|
||||
catch( DebugException e ) {
|
||||
CDebugUIPlugin.log( e.getStatus() );
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
protected boolean isShowQualifiedNames() {
|
||||
Boolean showQualified = (Boolean)getAttributes().get( DISPLAY_FULL_PATHS );
|
||||
showQualified = showQualified == null ? Boolean.FALSE : showQualified;
|
||||
return showQualified.booleanValue();
|
||||
}
|
||||
|
||||
private HashMap getAttributes() {
|
||||
return this.fAttributes;
|
||||
}
|
||||
|
||||
private OverlayImageCache getImageCache() {
|
||||
return this.fImageCache;
|
||||
}
|
||||
|
||||
private CDebugImageDescriptorRegistry getDebugImageRegistry() {
|
||||
return this.fDebugImageRegistry;
|
||||
}
|
||||
|
||||
private boolean isEmpty( String string ) {
|
||||
return ( string == null || string.trim().length() == 0 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a default text label for the debug element
|
||||
*/
|
||||
protected String getDefaultText(Object element) {
|
||||
return DebugUIPlugin.getDefaultLabelProvider().getText( element );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a default image for the debug element
|
||||
*/
|
||||
protected Image getDefaultImage(Object element) {
|
||||
return DebugUIPlugin.getDefaultLabelProvider().getImage( element );
|
||||
}
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.internal.ui;
|
||||
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Enter type comment.
|
||||
*
|
||||
* @since: Feb 23, 2004
|
||||
*/
|
||||
public class CDebugUIMessages {
|
||||
|
||||
private static final String BUNDLE_NAME = "org.eclipse.cdt.debug.internal.ui.CDebugUIMessages"; //$NON-NLS-1$
|
||||
|
||||
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
|
||||
|
||||
private CDebugUIMessages() {
|
||||
}
|
||||
|
||||
public static String getString( String key ) {
|
||||
try {
|
||||
return RESOURCE_BUNDLE.getString( key );
|
||||
}
|
||||
catch( MissingResourceException e ) {
|
||||
return '!' + key + '!';
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
CDebugUIPlugin.Error_1=Error
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.internal.ui.actions;
|
||||
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Enter type comment.
|
||||
*
|
||||
* @since: Feb 23, 2004
|
||||
*/
|
||||
public class ActionMessages {
|
||||
|
||||
private static final String BUNDLE_NAME = "org.eclipse.cdt.debug.internal.ui.actions.ActionMessages"; //$NON-NLS-1$
|
||||
|
||||
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
|
||||
|
||||
private ActionMessages() {
|
||||
}
|
||||
|
||||
public static String getString( String key ) {
|
||||
try {
|
||||
return RESOURCE_BUNDLE.getString( key );
|
||||
}
|
||||
catch( MissingResourceException e ) {
|
||||
return '!' + key + '!';
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
LoadSymbolsActionDelegate.Unable_to_load_symbols_of_shared_library_1=Unable to load symbols of shared library.
|
||||
LoadSymbolsActionDelegate.Operation_failed_1=Operation failed.
|
||||
LoadSymbolsForAllAction.Load_Symbols_For_All_1=Load Symbols For All
|
||||
LoadSymbolsForAllAction.Load_symbols_for_all_shared_libraries_1=Load symbols for all shared libraries.
|
||||
LoadSymbolsForAllAction.Load_Symbols_For_All_2=Load Symbols For All
|
||||
LoadSymbolsForAllAction.Unable_to_load_symbols_1=Unable to load symbols.
|
|
@ -3,61 +3,63 @@
|
|||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.internal.ui.actions;
|
||||
|
||||
import org.eclipse.cdt.debug.internal.ui.CDTDebugModelPresentation;
|
||||
import org.eclipse.cdt.debug.core.CDIDebugModel;
|
||||
import org.eclipse.cdt.debug.internal.ui.CDebugModelPresentation;
|
||||
import org.eclipse.cdt.debug.internal.ui.preferences.ICDebugPreferenceConstants;
|
||||
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
||||
import org.eclipse.debug.ui.IDebugModelPresentation;
|
||||
import org.eclipse.debug.ui.IDebugView;
|
||||
import org.eclipse.jface.action.IAction;
|
||||
import org.eclipse.jface.viewers.ILabelProvider;
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
import org.eclipse.jface.viewers.StructuredViewer;
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.swt.custom.BusyIndicator;
|
||||
|
||||
/**
|
||||
*
|
||||
* Enter type comment.
|
||||
*
|
||||
* @since Oct 4, 2002
|
||||
* An action delegate that toggles the state of its viewer to show/hide full paths.
|
||||
*
|
||||
* @since: Feb 23, 2004
|
||||
*/
|
||||
public class ShowFullPathsAction extends ToggleDelegateAction
|
||||
{
|
||||
public class ShowFullPathsAction extends ViewFilterAction {
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.internal.ui.actions.ToggleDelegateAction#initActionId()
|
||||
* @see org.eclipse.cdt.debug.internal.ui.actions.ViewFilterAction#getPreferenceKey()
|
||||
*/
|
||||
protected void initActionId()
|
||||
{
|
||||
fId = CDebugUIPlugin.getUniqueIdentifier() + getView().getSite().getId() + ".ShowFullPathsAction"; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
protected void setAction( IAction action )
|
||||
{
|
||||
super.setAction( action );
|
||||
action.setChecked( CDebugUIPlugin.getDefault().getPreferenceStore().getBoolean( ICDebugPreferenceConstants.PREF_SHOW_FULL_PATHS ) );
|
||||
protected String getPreferenceKey() {
|
||||
return ICDebugPreferenceConstants.PREF_SHOW_FULL_PATHS;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.internal.ui.actions.ToggleDelegateAction#valueChanged(boolean)
|
||||
* @see org.eclipse.jface.viewers.ViewerFilter#select(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
|
||||
*/
|
||||
protected void valueChanged( boolean on )
|
||||
{
|
||||
if ( getViewer().getControl().isDisposed() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
ILabelProvider labelProvider = (ILabelProvider)getViewer().getLabelProvider();
|
||||
if ( labelProvider instanceof IDebugModelPresentation )
|
||||
{
|
||||
IDebugModelPresentation debugLabelProvider = (IDebugModelPresentation)labelProvider;
|
||||
debugLabelProvider.setAttribute( CDTDebugModelPresentation.DISPLAY_FULL_PATHS, ( on ? Boolean.TRUE : Boolean.FALSE ) );
|
||||
BusyIndicator.showWhile( getViewer().getControl().getDisplay(),
|
||||
new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
getViewer().refresh();
|
||||
public boolean select( Viewer viewer, Object parentElement, Object element ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
|
||||
*/
|
||||
public void run( IAction action ) {
|
||||
final StructuredViewer viewer = getStructuredViewer();
|
||||
IDebugView view = (IDebugView)getView().getAdapter( IDebugView.class );
|
||||
if (view != null) {
|
||||
IDebugModelPresentation pres = view.getPresentation( CDIDebugModel.getPluginIdentifier() );
|
||||
if ( pres != null ) {
|
||||
pres.setAttribute( CDebugModelPresentation.DISPLAY_FULL_PATHS, ( getValue() ? Boolean.TRUE : Boolean.FALSE ) );
|
||||
BusyIndicator.showWhile( viewer.getControl().getDisplay(),
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
viewer.refresh();
|
||||
IPreferenceStore store = getPreferenceStore();
|
||||
String key = getView().getSite().getId() + "." + getPreferenceKey(); //$NON-NLS-1$
|
||||
store.setValue( key, getValue() );
|
||||
CDebugUIPlugin.getDefault().savePluginPreferences();
|
||||
}
|
||||
} );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,152 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2003 IBM Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Common Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/cpl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* IBM Corporation - initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.debug.internal.ui.actions;
|
||||
|
||||
|
||||
import org.eclipse.debug.ui.IDebugView;
|
||||
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
||||
import org.eclipse.jface.action.IAction;
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
import org.eclipse.jface.viewers.ISelection;
|
||||
import org.eclipse.jface.viewers.StructuredViewer;
|
||||
import org.eclipse.jface.viewers.Viewer;
|
||||
import org.eclipse.jface.viewers.ViewerFilter;
|
||||
import org.eclipse.swt.widgets.Event;
|
||||
import org.eclipse.ui.IActionDelegate2;
|
||||
import org.eclipse.ui.IViewActionDelegate;
|
||||
import org.eclipse.ui.IViewPart;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public abstract class ViewFilterAction extends ViewerFilter implements IViewActionDelegate, IActionDelegate2 {
|
||||
|
||||
private IViewPart fView;
|
||||
private IAction fAction;
|
||||
|
||||
public ViewFilterAction() {
|
||||
super();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
|
||||
*/
|
||||
public void init(IViewPart view) {
|
||||
fView = view;
|
||||
fAction.setChecked(getPreferenceValue(view));
|
||||
run(fAction);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
|
||||
*/
|
||||
public void init(IAction action) {
|
||||
fAction = action;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate2#dispose()
|
||||
*/
|
||||
public void dispose() {
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate2#runWithEvent(org.eclipse.jface.action.IAction, org.eclipse.swt.widgets.Event)
|
||||
*/
|
||||
public void runWithEvent(IAction action, Event event) {
|
||||
run(action);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
|
||||
*/
|
||||
public void run(IAction action) {
|
||||
StructuredViewer viewer = getStructuredViewer();
|
||||
ViewerFilter[] filters = viewer.getFilters();
|
||||
ViewerFilter filter = null;
|
||||
for (int i = 0; i < filters.length; i++) {
|
||||
if (filters[i] == this) {
|
||||
filter = filters[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (filter == null) {
|
||||
viewer.addFilter(this);
|
||||
}
|
||||
viewer.refresh();
|
||||
IPreferenceStore store = getPreferenceStore();
|
||||
String key = getView().getSite().getId() + "." + getPreferenceKey(); //$NON-NLS-1$
|
||||
store.setValue(key, action.isChecked());
|
||||
CDebugUIPlugin.getDefault().savePluginPreferences();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
|
||||
*/
|
||||
public void selectionChanged(IAction action, ISelection selection) {
|
||||
}
|
||||
|
||||
protected IPreferenceStore getPreferenceStore() {
|
||||
return CDebugUIPlugin.getDefault().getPreferenceStore();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value of this filters preference (on/off) for the given
|
||||
* view.
|
||||
*
|
||||
* @param part
|
||||
* @return boolean
|
||||
*/
|
||||
protected boolean getPreferenceValue(IViewPart part) {
|
||||
String baseKey = getPreferenceKey();
|
||||
String viewKey = part.getSite().getId();
|
||||
String compositeKey = viewKey + "." + baseKey; //$NON-NLS-1$
|
||||
IPreferenceStore store = getPreferenceStore();
|
||||
boolean value = false;
|
||||
if (store.contains(compositeKey)) {
|
||||
value = store.getBoolean(compositeKey);
|
||||
} else {
|
||||
value = store.getBoolean(baseKey);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the key for this action's preference
|
||||
*
|
||||
* @return String
|
||||
*/
|
||||
protected abstract String getPreferenceKey();
|
||||
|
||||
protected IViewPart getView() {
|
||||
return fView;
|
||||
}
|
||||
|
||||
protected StructuredViewer getStructuredViewer() {
|
||||
IDebugView view = (IDebugView)getView().getAdapter(IDebugView.class);
|
||||
if (view != null) {
|
||||
Viewer viewer = view.getViewer();
|
||||
if (viewer instanceof StructuredViewer) {
|
||||
return (StructuredViewer)viewer;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether this action is seleted/checked.
|
||||
*
|
||||
* @return whether this action is seleted/checked
|
||||
*/
|
||||
protected boolean getValue() {
|
||||
return fAction.isChecked();
|
||||
}
|
||||
}
|
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002. All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
package org.eclipse.cdt.debug.internal.ui.preferences;
|
||||
|
||||
|
@ -13,38 +12,28 @@ import org.eclipse.swt.widgets.Display;
|
|||
|
||||
/**
|
||||
*
|
||||
* Constants defining the keys to be used for accessing preferences
|
||||
* inside the debug ui plugin's preference bundle.
|
||||
*
|
||||
* In descriptions (of the keys) below describe the preference
|
||||
* stored at the given key. The type indicates type of the stored preferences
|
||||
*
|
||||
* Constants defining the keys to be used for accessing preferences inside the debug ui plugin's preference bundle.
|
||||
*
|
||||
* In descriptions (of the keys) below describe the preference stored at the given key. The type indicates type of the stored preferences
|
||||
*
|
||||
* The preference store is loaded by the plugin (CDebugUIPlugin).
|
||||
*
|
||||
* @see CDebugUIPlugin.initializeDefaultPreferences(IPreferenceStore) - for initialization of the store
|
||||
*
|
||||
* @since Jul 23, 2002
|
||||
*/
|
||||
public interface ICDebugPreferenceConstants
|
||||
{
|
||||
/**
|
||||
* Boolean preference controlling whether the debugger shows
|
||||
* full paths. When <code>true</code> the debugger
|
||||
* will show full paths in newly opened views.
|
||||
*/
|
||||
public static final String PREF_SHOW_FULL_PATHS = ICDebugUIConstants.PLUGIN_ID + "cDebug.show_full_paths"; //$NON-NLS-1$
|
||||
public interface ICDebugPreferenceConstants {
|
||||
|
||||
/**
|
||||
* The default values for the memory view parameters.
|
||||
* The default values for the memory view parameters.
|
||||
*/
|
||||
public static final String DEFAULT_MEMORY_PADDING_CHAR = "."; //$NON-NLS-1$
|
||||
public static final FontData DEFAULT_MEMORY_FONT = Display.getDefault().getSystemFont().getFontData()[0];
|
||||
|
||||
public static final RGB DEFAULT_MEMORY_FOREGROUND_RGB = Display.getCurrent().getSystemColor( SWT.COLOR_LIST_FOREGROUND ).getRGB();
|
||||
public static final RGB DEFAULT_MEMORY_BACKGROUND_RGB = Display.getCurrent().getSystemColor( SWT.COLOR_LIST_BACKGROUND ).getRGB();
|
||||
public static final RGB DEFAULT_MEMORY_ADDRESS_RGB = Display.getCurrent().getSystemColor( SWT.COLOR_DARK_GRAY ).getRGB();
|
||||
public static final RGB DEFAULT_MEMORY_CHANGED_RGB = Display.getCurrent().getSystemColor( SWT.COLOR_RED ).getRGB();
|
||||
public static final RGB DEFAULT_MEMORY_DIRTY_RGB = Display.getCurrent().getSystemColor( SWT.COLOR_BLUE ).getRGB();
|
||||
|
||||
public static final String PREF_MEMORY_NUMBER_OF_BYTES = "Memory.NumberOfBytes"; //$NON-NLS-1$
|
||||
public static final String PREF_MEMORY_SIZE = "Memory.Size"; //$NON-NLS-1$
|
||||
public static final String PREF_MEMORY_FORMAT = "Memory.Format"; //$NON-NLS-1$
|
||||
|
@ -82,27 +71,29 @@ public interface ICDebugPreferenceConstants
|
|||
public static final String MEMORY_FONT = "Memory.font"; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* Boolean preference controlling whether primitive types
|
||||
* types display hexidecimal values.
|
||||
* Boolean preference controlling whether the debugger shows full paths. When <code>true</code> the debugger will show full paths in newly opened views.
|
||||
*/
|
||||
public static final String PREF_SHOW_HEX_VALUES = ICDebugUIConstants.PLUGIN_ID + "cDebug.showHexValues"; //$NON-NLS-1$
|
||||
public static final String PREF_SHOW_FULL_PATHS = ICDebugUIConstants.PLUGIN_ID + ".cDebug.show_full_paths"; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* Boolean preference controlling whether primitive types
|
||||
* types display char values.
|
||||
* Boolean preference controlling whether primitive types types display hexidecimal values.
|
||||
*/
|
||||
public static final String PREF_SHOW_CHAR_VALUES = ICDebugUIConstants.PLUGIN_ID + "cDebug.showCharValues"; //$NON-NLS-1$
|
||||
public static final String PREF_SHOW_HEX_VALUES = ICDebugUIConstants.PLUGIN_ID + ".cDebug.showHexValues"; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* Boolean preference controlling whether the memory view shows ASCII characters.
|
||||
* When <code>true</code> the memory view will show ASCII characters by default.
|
||||
* Boolean preference controlling whether primitive types types display char values.
|
||||
*/
|
||||
public static final String PREF_MEMORY_SHOW_ASCII = ICDebugUIConstants.PLUGIN_ID + "Memory.show_ascii"; //$NON-NLS-1$
|
||||
public static final String PREF_SHOW_CHAR_VALUES = ICDebugUIConstants.PLUGIN_ID + ".cDebug.showCharValues"; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* Boolean preference controlling whether the memory view will be refreshed
|
||||
* every time when the execution of program stops.
|
||||
* When <code>true</code> the 'Auto-Refresh' option will be checked.
|
||||
* Boolean preference controlling whether the memory view shows ASCII characters. When <code>true</code> the memory view will show ASCII characters by
|
||||
* default.
|
||||
*/
|
||||
public static final String PREF_MEMORY_AUTO_REFRESH = ICDebugUIConstants.PLUGIN_ID + "Memory.auto_refresh"; //$NON-NLS-1$
|
||||
}
|
||||
public static final String PREF_MEMORY_SHOW_ASCII = ICDebugUIConstants.PLUGIN_ID + ".Memory.show_ascii"; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* Boolean preference controlling whether the memory view will be refreshed every time when the execution of program stops. When <code>true</code> the
|
||||
* 'Auto-Refresh' option will be checked.
|
||||
*/
|
||||
public static final String PREF_MEMORY_AUTO_REFRESH = ICDebugUIConstants.PLUGIN_ID + ".Memory.auto_refresh"; //$NON-NLS-1$
|
||||
}
|
Loading…
Add table
Reference in a new issue