Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjszursze2001-08-10 16:27:29 +0000
committerjszursze2001-08-10 16:27:29 +0000
commit3b8e191804fef1546ec733a439c248296f067b9e (patch)
treee2a36a467e4fd4f3eae0d77ba8bac27c638eb648
parentce3bc7cff50ea34cd47afa879bad52dd05572a3f (diff)
downloadeclipse.platform.debug-3b8e191804fef1546ec733a439c248296f067b9e.tar.gz
eclipse.platform.debug-3b8e191804fef1546ec733a439c248296f067b9e.tar.xz
eclipse.platform.debug-3b8e191804fef1546ec733a439c248296f067b9e.zip
1GEPF7U: ITPDUI:ALL - Refactor: Actions & Icons
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ControlActionDelegate.java16
1 files changed, 1 insertions, 15 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ControlActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ControlActionDelegate.java
index 5b691e1e9..fbd3bbdd5 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ControlActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ControlActionDelegate.java
@@ -14,8 +14,6 @@ public abstract class ControlActionDelegate implements IWorkbenchWindowActionDel
protected String fMode= ILaunchManager.DEBUG_MODE;
- protected boolean fSetActionImages = false;
-
/**
* It's crucial that delegate actions have a zero-arg constructor so that
* they can be reflected into existence when referenced in an action set
@@ -31,7 +29,7 @@ public abstract class ControlActionDelegate implements IWorkbenchWindowActionDel
* action specific initialization.
*/
public void initializeForOwner(ControlAction controlAction) {
- setActionImagesConditionally(controlAction);
+ setActionImages(controlAction);
LaunchesViewer provider= (LaunchesViewer)controlAction.getSelectionProvider();
IContentProvider contentProvider= provider.getContentProvider();
fMode= ILaunchManager.DEBUG_MODE;
@@ -100,7 +98,6 @@ public abstract class ControlActionDelegate implements IWorkbenchWindowActionDel
* @see IActionDelegate
*/
public void selectionChanged(IAction action, ISelection s) {
- setActionImagesConditionally(action);
LaunchesView view= getLaunchesView(fMode);
if (view == null) {
action.setEnabled(false);
@@ -148,17 +145,6 @@ public abstract class ControlActionDelegate implements IWorkbenchWindowActionDel
}
/**
- * Set the enabled, disabled and hover icons on the action if
- * they haven't already been set.
- */
- protected void setActionImagesConditionally(IAction action) {
- if (!fSetActionImages) {
- setActionImages(action);
- fSetActionImages = true;
- }
- }
-
- /**
* Does the specific action of this action to the process.
*/
protected abstract void doAction(Object element) throws DebugException;

Back to the top