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

Fixes for toggle actions.

This commit is contained in:
Mikhail Khodjaiants 2003-04-14 14:47:28 +00:00
parent ad0b7bce68
commit 2ba1428cf1
5 changed files with 20 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2003-04-14 Mikhail Khodjaiants
Fixes for toggle actions.
* plugin.xml
* MemoryFormatAction.java
* MemoryNumberOfColumnAction.java
* MemorySizeAction.java
2003-04-11 Mikhail Khodjaiants 2003-04-11 Mikhail Khodjaiants
Method and function breakpoints. Method and function breakpoints.
* plugin.properties * plugin.properties

View file

@ -291,6 +291,7 @@
</action> </action>
<action <action
label="%ShowFullPathsAction.label" label="%ShowFullPathsAction.label"
style="toggle"
icon="icons/full/clcl16/show_paths.gif" icon="icons/full/clcl16/show_paths.gif"
helpContextId="show_full_paths_action_context" helpContextId="show_full_paths_action_context"
class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction" class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
@ -305,6 +306,7 @@
</action> </action>
<action <action
label="%SwitchToDisassemblyAction.label" label="%SwitchToDisassemblyAction.label"
style="toggle"
icon="icons/full/clcl16/disassembly.gif" icon="icons/full/clcl16/disassembly.gif"
helpContextId="switch_to_disassembly_action_context" helpContextId="switch_to_disassembly_action_context"
class="org.eclipse.cdt.debug.internal.ui.actions.SwitchToDisassemblyActionDelegate" class="org.eclipse.cdt.debug.internal.ui.actions.SwitchToDisassemblyActionDelegate"
@ -320,6 +322,7 @@
</action> </action>
<action <action
label="%ShowDebuggerConsoleAction.label" label="%ShowDebuggerConsoleAction.label"
style="toggle"
icon="icons/full/clcl16/debugger_console.gif" icon="icons/full/clcl16/debugger_console.gif"
helpContextId="show_debugger_console_action_context" helpContextId="show_debugger_console_action_context"
class="org.eclipse.cdt.debug.internal.ui.actions.DebuggerConsoleActionDelegate" class="org.eclipse.cdt.debug.internal.ui.actions.DebuggerConsoleActionDelegate"
@ -458,6 +461,7 @@
id="org.eclipse.cdt.debug.ui.breakpointview.popupMenu"> id="org.eclipse.cdt.debug.ui.breakpointview.popupMenu">
<action <action
label="%ShowFullPathsAction.label" label="%ShowFullPathsAction.label"
style="toggle"
icon="icons/full/clcl16/show_paths.gif" icon="icons/full/clcl16/show_paths.gif"
helpContextId="show_full_paths_action_context" helpContextId="show_full_paths_action_context"
class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction" class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
@ -733,6 +737,7 @@
id="org.eclipse.cdt.debug.ui.SharedLibrariesViewPopupActions"> id="org.eclipse.cdt.debug.ui.SharedLibrariesViewPopupActions">
<action <action
label="%ShowFullPathsAction.label" label="%ShowFullPathsAction.label"
style="toggle"
icon="icons/full/clcl16/show_paths.gif" icon="icons/full/clcl16/show_paths.gif"
helpContextId="show_full_paths_action_context" helpContextId="show_full_paths_action_context"
class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction" class="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
@ -898,6 +903,7 @@
</enablement> </enablement>
</action> </action>
<action <action
style="toggle"
id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction" id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
toolbarPath="renderGroup" toolbarPath="renderGroup"
hoverIcon="icons/full/clcl16/show_paths.gif" hoverIcon="icons/full/clcl16/show_paths.gif"
@ -915,6 +921,7 @@
</enablement> </enablement>
</action> </action>
<action <action
style="toggle"
toolbarPath="renderGroup" toolbarPath="renderGroup"
id="org.eclipse.cdt.debug.internal.ui.actions.SwitchToDisassemblyActionDelegate" id="org.eclipse.cdt.debug.internal.ui.actions.SwitchToDisassemblyActionDelegate"
hoverIcon="icons/full/clcl16/disassembly.gif" hoverIcon="icons/full/clcl16/disassembly.gif"
@ -933,6 +940,7 @@
</enablement> </enablement>
</action> </action>
<action <action
style="toggle"
toolbarPath="renderGroup" toolbarPath="renderGroup"
id="org.eclipse.cdt.debug.internal.ui.actions.DebuggerConsoleActionDelegate" id="org.eclipse.cdt.debug.internal.ui.actions.DebuggerConsoleActionDelegate"
hoverIcon="icons/full/clcl16/debugger_console.gif" hoverIcon="icons/full/clcl16/debugger_console.gif"
@ -955,6 +963,7 @@
targetID="org.eclipse.debug.ui.BreakpointView" targetID="org.eclipse.debug.ui.BreakpointView"
id="org.eclipse.cdt.debug.ui.breakpointview.toolbar"> id="org.eclipse.cdt.debug.ui.breakpointview.toolbar">
<action <action
style="toggle"
id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction" id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
toolbarPath="renderGroup" toolbarPath="renderGroup"
hoverIcon="icons/full/clcl16/show_paths.gif" hoverIcon="icons/full/clcl16/show_paths.gif"
@ -998,6 +1007,7 @@
targetID="org.eclipse.cdt.debug.ui.SharedLibrariesView" targetID="org.eclipse.cdt.debug.ui.SharedLibrariesView"
id="org.eclipse.debug.ui.sharedLibrariesView.toolbar"> id="org.eclipse.debug.ui.sharedLibrariesView.toolbar">
<action <action
style="toggle"
id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction" id="org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction"
toolbarPath="renderGroup" toolbarPath="renderGroup"
hoverIcon="icons/full/clcl16/show_paths.gif" hoverIcon="icons/full/clcl16/show_paths.gif"

View file

@ -31,11 +31,10 @@ public class MemoryFormatAction extends Action implements IUpdate
MemoryViewer viewer, MemoryViewer viewer,
int format ) int format )
{ {
super( getLabel( format ) ); super( getLabel( format ), Action.AS_CHECK_BOX );
fGroup = group; fGroup = group;
fMemoryViewer = viewer; fMemoryViewer = viewer;
fFormat = format; fFormat = format;
setChecked( false );
} }
/** /**

View file

@ -29,11 +29,10 @@ public class MemoryNumberOfColumnAction extends Action implements IUpdate
MemoryViewer viewer, MemoryViewer viewer,
int numberOfColumns ) int numberOfColumns )
{ {
super( getLabel( numberOfColumns ) ); super( getLabel( numberOfColumns ), Action.AS_CHECK_BOX );
fGroup = group; fGroup = group;
fMemoryViewer = viewer; fMemoryViewer = viewer;
fNumberOfColumns = numberOfColumns; fNumberOfColumns = numberOfColumns;
setChecked( false );
} }
private static String getLabel( int numberOfColumns ) private static String getLabel( int numberOfColumns )

View file

@ -30,11 +30,10 @@ public class MemorySizeAction extends Action implements IUpdate
MemoryViewer viewer, MemoryViewer viewer,
int id ) int id )
{ {
super( getLabel( id ) ); super( getLabel( id ), Action.AS_CHECK_BOX );
fGroup = group; fGroup = group;
fMemoryViewer = viewer; fMemoryViewer = viewer;
fId = id; fId = id;
setChecked( false );
} }
/* (non-Javadoc) /* (non-Javadoc)