Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java30
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractRemoveActionDelegate.java12
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractRemoveAllActionDelegate.java21
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ConsoleTerminateActionDelegate.java6
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/CopyToClipboardActionDelegate.java43
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/CopyVariablesToClipboardActionDelegate.java17
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/DisconnectActionDelegate.java44
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RelaunchActionDelegate.java38
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RelaunchLastAction.java26
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ResumeActionDelegate.java46
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/SelectAllAction.java13
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepActionDelegate.java6
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepIntoActionDelegate.java36
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepOverActionDelegate.java37
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepReturnActionDelegate.java42
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/SuspendActionDelegate.java47
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateActionDelegate.java44
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateAllAction.java11
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateAndRemoveActionDelegate.java43
19 files changed, 61 insertions, 501 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java
index b983c3214..d9e2c6a26 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java
@@ -101,7 +101,7 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
* event. This is necessary because the XML currently only
* supports setting the enabled icon.
* <p>
- * ControlActionDelegates come in 2 flavors: IViewActionDelegate,
+ * AbstractDebugActionDelegates come in 2 flavors: IViewActionDelegate,
* IWorkbenchWindowActionDelegate delegates.
* </p>
* <ul>
@@ -179,18 +179,6 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
protected abstract boolean isEnabledFor(Object element);
/**
- * Returns this action's help context id. Default is to return null.
- */
- protected String getHelpContextId() {
- return null;
- }
-
- /**
- * Set the enabled, disabled & hover icons for this action delegate
- */
- protected abstract void setActionImages(IAction action);
-
- /**
* Returns the String to use as an error dialog title for
* a failed action. Default is to return null.
*/
@@ -211,18 +199,7 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
protected String getStatusMessage(){
return ""; //$NON-NLS-1$
}
- /**
- * Returns the text for this action. Default is to return null.
- */
- protected String getText(){
- return null;
- }
- /**
- * Returns the tool tip text for this action. Default is to return null.
- */
- protected String getToolTipText(){
- return null;
- }
+
/**
* @see IViewActionDelegate#init(IViewPart)
*/
@@ -243,7 +220,7 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
/**
* Initialize this delegate, updating this delegate's
* presentation.
- * As well all of the flavors of ControlActionDelegates need to
+ * As well, all of the flavors of AbstractDebugActionDelegates need to
* have the initial enabled state set with a call to update(IAction, ISelection).
*
* @param action the presentation for this action
@@ -252,7 +229,6 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
protected boolean initialize(IAction action, ISelection selection) {
if (!isInitialized()) {
setAction(action);
- setActionImages(action);
update(action, selection);
setInitialized(true);
return true;
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractRemoveActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractRemoveActionDelegate.java
index d2a5545ae..d203e5ac7 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractRemoveActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractRemoveActionDelegate.java
@@ -5,25 +5,13 @@ package org.eclipse.debug.internal.ui.actions;
* All Rights Reserved.
*/
-import org.eclipse.debug.internal.ui.DebugPluginImages;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
import org.eclipse.debug.ui.AbstractDebugView;
-import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.debug.ui.IDebugView;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IViewPart;
public abstract class AbstractRemoveActionDelegate extends AbstractListenerActionDelegate {
-
- /**
- * @see AbstractDebugActionDelegate#setActionImages(IAction)
- */
- protected void setActionImages(IAction action) {
- action.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_REMOVE));
- action.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_REMOVE));
- action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_REMOVE));
- }
/**
* @see IViewActionDelegate#init(IViewPart)
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractRemoveAllActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractRemoveAllActionDelegate.java
index bb7398f3c..8761960ab 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractRemoveAllActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractRemoveAllActionDelegate.java
@@ -5,10 +5,6 @@ package org.eclipse.debug.internal.ui.actions;
* All Rights Reserved.
*/
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.internal.ui.DebugPluginImages;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
-import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IViewPart;
@@ -38,28 +34,12 @@ public abstract class AbstractRemoveAllActionDelegate extends AbstractListenerAc
protected boolean isEnabledFor(Object element) {
return true;
}
-
- /**
- * @see AbstractDebugActionDelegate#getHelpContextId()
- */
- protected String getHelpContextId() {
- return null;
- }
protected void update(IAction action, ISelection s) {
update();
}
protected abstract void update();
-
- /**
- * @see ControlActionDelegate#setActionImages(IAction)
- */
- protected void setActionImages(IAction action) {
- action.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_REMOVE_TERMINATED));
- action.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_REMOVE_TERMINATED));
- action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_REMOVE_TERMINATED));
- }
/**
* Remove all actions do care nothing about the current selection
@@ -69,7 +49,6 @@ public abstract class AbstractRemoveAllActionDelegate extends AbstractListenerAc
if (!isInitialized()) {
action.setEnabled(false);
setAction(action);
- setActionImages(action);
setInitialized(true);
}
update();
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ConsoleTerminateActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ConsoleTerminateActionDelegate.java
index 1065fd433..9331dede0 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ConsoleTerminateActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ConsoleTerminateActionDelegate.java
@@ -37,12 +37,18 @@ public class ConsoleTerminateActionDelegate extends TerminateActionDelegate {
return StructuredSelection.EMPTY;
}
+ /**
+ * @see AbstractDebugActionDelegate#init(IViewPart)
+ */
public void init(IViewPart view) {
super.init(view);
//listen to selections in the launch view
getWindow().getSelectionService().addSelectionListener(IDebugUIConstants.ID_DEBUG_VIEW, this);
}
+ /**
+ * @see AbstractDebugActionDelegate#dispose()
+ */
public void dispose() {
super.dispose();
getWindow().getSelectionService().removeSelectionListener(IDebugUIConstants.ID_DEBUG_VIEW, this);
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/CopyToClipboardActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/CopyToClipboardActionDelegate.java
index d9d032c61..49e484455 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/CopyToClipboardActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/CopyToClipboardActionDelegate.java
@@ -12,11 +12,7 @@ import java.util.List;
import org.eclipse.debug.core.model.IDebugElement;
import org.eclipse.debug.core.model.IDebugTarget;
import org.eclipse.debug.core.model.IThread;
-import org.eclipse.debug.internal.ui.DebugPluginImages;
-import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
import org.eclipse.debug.ui.AbstractDebugView;
-import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.debug.ui.IDebugView;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ContentViewer;
@@ -53,21 +49,21 @@ public class CopyToClipboardActionDelegate extends AbstractDebugActionDelegate {
return false;
}
/**
- * @see ControlActionDelegate#isEnabledFor(Object)
+ * @see AbstractDebugActionDelegate#isEnabledFor(Object)
*/
protected boolean isEnabledFor(Object element) {
return getViewer() != null && element instanceof IDebugElement;
}
/**
- * @see ControlActionDelegate#doAction(Object)
+ * @see AbstractDebugActionDelegate#doAction(Object)
*/
protected void doAction(Object element, StringBuffer buffer) {
append(element, buffer, (ILabelProvider)getViewer().getLabelProvider(), 0);
}
/**
- * @see ControlActionDelegate#doAction(Object)
+ * @see AbstractDebugActionDelegate#doAction(Object)
*/
protected void doAction(Object element) {
StringBuffer buffer= new StringBuffer();
@@ -100,13 +96,6 @@ public class CopyToClipboardActionDelegate extends AbstractDebugActionDelegate {
}
}
}
-
- /**
- * @see ControlActionDelegate#getHelpContextId()
- */
- protected String getHelpContextId() {
- return IDebugHelpContextIds.COPY_TO_CLIPBOARD_ACTION;
- }
protected Object getParent(Object e) {
return ((ITreeContentProvider) getViewer().getContentProvider()).getParent(e);
@@ -182,40 +171,18 @@ public class CopyToClipboardActionDelegate extends AbstractDebugActionDelegate {
}
return walkHierarchy(parent, elements);
}
-
- /**
- * @see ControlActionDelegate#setActionImages(IAction)
- */
- protected void setActionImages(IAction action) {
- action.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_COPY));
- action.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_COPY));
- action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_COPY));
- }
protected boolean shouldAppendChildren(Object e) {
return e instanceof IDebugTarget || e instanceof IThread;
}
/**
- * @see ControlActionDelegate#getStatusMessage()
+ * @see AbstractDebugActionDelegate#getStatusMessage()
*/
protected String getStatusMessage() {
return ActionMessages.getString("CopyToClipboardActionDelegate.Copy_failed"); //$NON-NLS-1$
}
-
- /**
- * @see ControlActionDelegate#getToolTipText()
- */
- protected String getToolTipText() {
- return ActionMessages.getString("CopyToClipboardActionDelegate.Copy_to_Clipboard_2"); //$NON-NLS-1$
- }
- /**
- * @see ControlActionDelegate#getText()
- */
- protected String getText() {
- return ActionMessages.getString("CopyToClipboardActionDelegate.&Copy_Stack_3"); //$NON-NLS-1$
- }
-
+
protected ContentViewer getViewer() {
return fViewer;
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/CopyVariablesToClipboardActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/CopyVariablesToClipboardActionDelegate.java
index 031c84095..d862bb374 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/CopyVariablesToClipboardActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/CopyVariablesToClipboardActionDelegate.java
@@ -6,9 +6,6 @@ package org.eclipse.debug.internal.ui.actions;
*/
import org.eclipse.debug.core.model.IDebugElement;
-import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.TreeViewer;
/**
@@ -18,13 +15,6 @@ import org.eclipse.jface.viewers.TreeViewer;
public class CopyVariablesToClipboardActionDelegate extends CopyToClipboardActionDelegate {
/**
- * @see ControlActionDelegate#getHelpContextId()
- */
- protected String getHelpContextId() {
- return IDebugHelpContextIds.COPY_VARIABLES_TO_CLIPBOARD_ACTION;
- }
-
- /**
* Only append children that are visible in the tree viewer
*/
protected boolean shouldAppendChildren(Object e) {
@@ -37,11 +27,4 @@ public class CopyVariablesToClipboardActionDelegate extends CopyToClipboardActio
protected boolean isEnabledFor(Object element) {
return element instanceof IDebugElement;
}
-
- /**
- * @see ControlActionDelegate#getText()
- */
- protected String getText() {
- return ActionMessages.getString("CopyVariablesToClipboardActionDelegate.Copy_&Variables_2"); //$NON-NLS-1$
- }
} \ No newline at end of file
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/DisconnectActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/DisconnectActionDelegate.java
index 2bff55b6b..2e458c189 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/DisconnectActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/DisconnectActionDelegate.java
@@ -8,16 +8,11 @@ package org.eclipse.debug.internal.ui.actions;
import org.eclipse.debug.core.DebugEvent;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IDisconnect;
-import org.eclipse.debug.internal.ui.DebugPluginImages;
-import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
-import org.eclipse.debug.ui.IDebugUIConstants;
-import org.eclipse.jface.action.IAction;
public class DisconnectActionDelegate extends AbstractListenerActionDelegate {
/**
- * @see ControlActionDelegate#doAction(Object)
+ * @see AbstractDebugActionDelegate#doAction(Object)
*/
protected void doAction(Object element) throws DebugException {
if (element instanceof IDisconnect)
@@ -25,60 +20,31 @@ public class DisconnectActionDelegate extends AbstractListenerActionDelegate {
}
/**
- * @see ControlActionDelegate#isEnabledFor(Object)
+ * @see AbstractDebugActionDelegate#isEnabledFor(Object)
*/
protected boolean isEnabledFor(Object element) {
return element instanceof IDisconnect && ((IDisconnect) element).canDisconnect();
}
-
- /**
- * @see ControlActionDelegate#getHelpContextId()
- */
- protected String getHelpContextId() {
- return IDebugHelpContextIds.DISCONNECT_ACTION;
- }
-
- /**
- * @see ControlActionDelegate#setActionImages(IAction)
- */
- protected void setActionImages(IAction action) {
- action.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_DISCONNECT));
- action.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_DISCONNECT));
- action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_DISCONNECT));
- }
/**
- * @see ControlActionDelegate#getStatusMessage()
+ * @see AbstractDebugActionDelegate#getStatusMessage()
*/
protected String getStatusMessage() {
return ActionMessages.getString("DisconnectActionDelegate.Disconnect_failed_1"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogMessage()
+ * @see AbstractDebugActionDelegate#getErrorDialogMessage()
*/
protected String getErrorDialogMessage() {
return ActionMessages.getString("DisconnectActionDelegate.Exceptions_occurred_attempting_to_disconnect._2"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogTitle()
+ * @see AbstractDebugActionDelegate#getErrorDialogTitle()
*/
protected String getErrorDialogTitle() {
return ActionMessages.getString("DisconnectActionDelegate.Disconnect_3"); //$NON-NLS-1$
}
- /**
- * @see ControlActionDelegate#getToolTipText()
- */
- protected String getToolTipText() {
- return ActionMessages.getString("DisconnectActionDelegate.Disconnect_3"); //$NON-NLS-1$
- }
-
- /**
- * @see ControlActionDelegate#getText()
- */
- protected String getText() {
- return ActionMessages.getString("DisconnectActionDelegate.&Disconnect_4"); //$NON-NLS-1$
- }
/**
* @see ListenerActionDelegate#doHandleDebugEvent(DebugEvent)
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RelaunchActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RelaunchActionDelegate.java
index f30a9ad6d..e11843d25 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RelaunchActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RelaunchActionDelegate.java
@@ -11,19 +11,14 @@ import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILauncher;
import org.eclipse.debug.core.model.IDebugElement;
import org.eclipse.debug.core.model.IProcess;
-import org.eclipse.debug.internal.ui.DebugPluginImages;
import org.eclipse.debug.internal.ui.DebugUIPlugin;
-import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
import org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationHistoryElement;
-import org.eclipse.debug.ui.IDebugUIConstants;
-import org.eclipse.jface.action.IAction;
import org.eclipse.jface.dialogs.MessageDialog;
public class RelaunchActionDelegate extends AbstractDebugActionDelegate {
/**
- * @see ControlActionDelegate#doAction(Object)
+ * @see AbstractDebugActionDelegate#doAction(Object)
*/
protected void doAction(Object object) {
if (object instanceof IDebugElement) {
@@ -122,7 +117,7 @@ public class RelaunchActionDelegate extends AbstractDebugActionDelegate {
}
/**
- * @see ControlActionDelegate#isEnabledFor(Object)
+ * @see AbstractDebugActionDelegate#isEnabledFor(Object)
*/
public boolean isEnabledFor(Object element) {
ILaunch launch= null;
@@ -152,38 +147,11 @@ public class RelaunchActionDelegate extends AbstractDebugActionDelegate {
return false;
}
}
-
- protected String getHelpContextId() {
- return IDebugHelpContextIds.RELAUNCH_ACTION;
- }
-
- /**
- * @see ControlActionDelegate#setActionImages(IAction)
- */
- protected void setActionImages(IAction action) {
- action.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_RELAUNCH));
- action.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_RELAUNCH));
- action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_RELAUNCH));
- }
/**
- * @see ControlActionDelegate#getStatusMessage()
+ * @see AbstractDebugActionDelegate#getStatusMessage()
*/
protected String getStatusMessage() {
return ActionMessages.getString("RelaunchActionDelegate.Launch_failed_2"); //$NON-NLS-1$
}
-
- /**
- * @see ControlActionDelegate#getToolTipText()
- */
- protected String getToolTipText() {
- return ActionMessages.getString("RelaunchActionDelegate.Relaunch_3"); //$NON-NLS-1$
- }
-
- /**
- * @see ControlActionDelegate#getText()
- */
- protected String getText() {
- return ActionMessages.getString("RelaunchActionDelegate.Re&launch_4"); //$NON-NLS-1$
- }
} \ No newline at end of file
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RelaunchLastAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RelaunchLastAction.java
index 50b43c89b..46360b578 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RelaunchLastAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/RelaunchLastAction.java
@@ -5,11 +5,8 @@ package org.eclipse.debug.internal.ui.actions;
* All Rights Reserved.
*/
-import org.eclipse.debug.internal.ui.DebugPluginImages;
import org.eclipse.debug.internal.ui.DebugUIPlugin;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
import org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationHistoryElement;
-import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.swt.custom.BusyIndicator;
@@ -23,13 +20,6 @@ import org.eclipse.ui.IWorkbenchWindowActionDelegate;
public class RelaunchLastAction implements IWorkbenchWindowActionDelegate {
/**
- * When this action is created as a delegate, this flag indicates
- * whether the workbench presentation has had its associated
- * images set.
- */
- private boolean fInitializedImages = false;
-
- /**
* @see IWorkbenchWindowActionDelegate
*/
public void dispose(){
@@ -42,7 +32,7 @@ public class RelaunchLastAction implements IWorkbenchWindowActionDelegate {
}
/**
- * @see IActionDelegate
+ * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
public void run(IAction action){
final LaunchConfigurationHistoryElement recent= DebugUIPlugin.getDefault().getLastLaunch();
@@ -61,21 +51,9 @@ public class RelaunchLastAction implements IWorkbenchWindowActionDelegate {
}
/**
- * @see IActionDelegate
+ * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
public void selectionChanged(IAction action, ISelection selection){
- setActionImages(action);
- }
-
- protected void setActionImages(IAction action) {
- if (!fInitializedImages ) {
- action.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_RELAUNCH));
- action.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_RELAUNCH));
- action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_RELAUNCH));
- // only set the flag to true when setting images
- // for the associated workbench presentation
- fInitializedImages = action != this;
- }
}
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ResumeActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ResumeActionDelegate.java
index 40bdd1871..6f762ebec 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ResumeActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/ResumeActionDelegate.java
@@ -8,17 +8,12 @@ package org.eclipse.debug.internal.ui.actions;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IDebugElement;
import org.eclipse.debug.core.model.ISuspendResume;
-import org.eclipse.debug.internal.ui.DebugPluginImages;
-import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
-import org.eclipse.debug.ui.IDebugUIConstants;
-import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.IStructuredSelection;
public class ResumeActionDelegate extends AbstractListenerActionDelegate {
/**
- * @see ControlActionDelegate#doAction(Object)
+ * @see AbstractDebugActionDelegate#doAction(Object)
*/
protected void doAction(Object object) throws DebugException {
IDebugElement element= (IDebugElement)object;
@@ -31,14 +26,14 @@ public class ResumeActionDelegate extends AbstractListenerActionDelegate {
}
/**
- * @see ControlActionDelegate#isEnabledFor(Object)
+ * @see AbstractDebugActionDelegate#isEnabledFor(Object)
*/
protected boolean isEnabledFor(Object element) {
return element instanceof ISuspendResume && ((ISuspendResume) element).canResume();
}
/**
- * @see ControlActionDelegate#getEnableStateForSelection(IStructuredSelection)
+ * @see AbstractDebugActionDelegate#getEnableStateForSelection(IStructuredSelection)
*/
protected boolean getEnableStateForSelection(IStructuredSelection selection) {
if (selection.size() == 1) {
@@ -47,52 +42,25 @@ public class ResumeActionDelegate extends AbstractListenerActionDelegate {
return false;
}
}
-
- protected String getHelpContextId() {
- return IDebugHelpContextIds.RESUME_ACTION;
- }
/**
- * @see ControlActionDelegate#setActionImages(IAction)
- */
- protected void setActionImages(IAction action) {
- action.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_RESUME));
- action.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_RESUME));
- action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_RESUME));
- }
- /**
- * @see ControlActionDelegate#getStatusMessage()
+ * @see AbstractDebugActionDelegate#getStatusMessage()
*/
protected String getStatusMessage() {
return ActionMessages.getString("ResumeActionDelegate.Resume_failed._1"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogMessage()
+ * @see AbstractDebugActionDelegate#getErrorDialogMessage()
*/
protected String getErrorDialogMessage() {
return ActionMessages.getString("ResumeActionDelegate.Exceptions_occurred_attempting_to_resume._2"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogTitle()
+ * @see AbstractDebugActionDelegate#getErrorDialogTitle()
*/
protected String getErrorDialogTitle() {
- return getToolTipText();
- }
-
- /**
- * @see ControlActionDelegate#getToolTipText()
- */
- protected String getToolTipText() {
return ActionMessages.getString("ResumeActionDelegate.Resume_3"); //$NON-NLS-1$
}
-
- /**
- * @see ControlActionDelegate#getText()
- */
- protected String getText() {
- return ActionMessages.getString("ResumeActionDelegate.&Resume_4"); //$NON-NLS-1$
- }
-
- } \ No newline at end of file
+} \ No newline at end of file
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/SelectAllAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/SelectAllAction.java
index 08d5282be..68e132050 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/SelectAllAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/SelectAllAction.java
@@ -23,19 +23,6 @@ public abstract class SelectAllAction extends AbstractListenerActionDelegate {
}
/**
- * @see AbstractDebugActionDelegate#getHelpContextId()
- */
- protected String getHelpContextId() {
- return null;
- }
-
- /**
- * @see AbstractDebugActionDelegate#setActionImages(IAction)
- */
- protected void setActionImages(IAction action) {
- }
-
- /**
* @see IViewActionDelegate#init(IViewPart)
*/
public void init(IViewPart view) {
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepActionDelegate.java
index e7b509d12..fa93e0b06 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepActionDelegate.java
@@ -12,7 +12,7 @@ import org.eclipse.debug.core.model.IStep;
public abstract class StepActionDelegate extends AbstractListenerActionDelegate {
/**
- * @see ControlActionDelegate#doAction(Object)
+ * @see AbstractDebugActionDelegate#doAction(Object)
*/
public void doAction(Object object) throws DebugException {
IDebugElement element= (IDebugElement)object;
@@ -24,7 +24,7 @@ public abstract class StepActionDelegate extends AbstractListenerActionDelegate
}
/**
- * @see ControlActionDelegate#isEnabledFor(Object)
+ * @see AbstractDebugActionDelegate#isEnabledFor(Object)
*/
protected boolean isEnabledFor(Object element) {
if (element instanceof IStep) {
@@ -34,7 +34,7 @@ public abstract class StepActionDelegate extends AbstractListenerActionDelegate
}
/**
- * @see ControlActionDelegate#enableForMultiSelection()
+ * @see AbstractDebugActionDelegate#enableForMultiSelection()
*/
protected boolean enableForMultiSelection() {
return false;
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepIntoActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepIntoActionDelegate.java
index 6d9fc706d..e1457d0ee 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepIntoActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepIntoActionDelegate.java
@@ -7,11 +7,6 @@ package org.eclipse.debug.internal.ui.actions;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IStep;
-import org.eclipse.debug.internal.ui.DebugPluginImages;
-import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
-import org.eclipse.debug.ui.IDebugUIConstants;
-import org.eclipse.jface.action.IAction;
public class StepIntoActionDelegate extends StepActionDelegate {
@@ -28,50 +23,25 @@ public class StepIntoActionDelegate extends StepActionDelegate {
protected void stepAction(IStep element) throws DebugException {
element.stepInto();
}
-
- protected String getHelpContextId() {
- return IDebugHelpContextIds.STEP_INTO_ACTION;
- }
/**
- * @see ControlActionDelegate#setActionImages(IAction)
- */
- protected void setActionImages(IAction action) {
- action.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_STEPINTO));
- action.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_STEPINTO));
- action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_STEPINTO));
- }
- /**
- * @see ControlActionDelegate#getStatusMessage()
+ * @see AbstractDebugActionDelegate#getStatusMessage()
*/
protected String getStatusMessage() {
return ActionMessages.getString("StepIntoActionDelegate.Step_into_failed_1"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogMessage()
+ * @see AbstractDebugActionDelegate#getErrorDialogMessage()
*/
protected String getErrorDialogMessage() {
return ActionMessages.getString("StepIntoActionDelegate.Exceptions_occurred_attempting_to_step_into_the_frame_2"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogTitle()
+ * @see AbstractDebugActionDelegate#getErrorDialogTitle()
*/
protected String getErrorDialogTitle() {
- return getToolTipText();
- }
- /**
- * @see ControlActionDelegate#getToolTipText()
- */
- protected String getToolTipText() {
return ActionMessages.getString("StepIntoActionDelegate.Step_Into_3"); //$NON-NLS-1$
}
-
- /**
- * @see ControlActionDelegate#getText()
- */
- protected String getText() {
- return ActionMessages.getString("StepIntoActionDelegate.Step_&Into_4"); //$NON-NLS-1$
- }
} \ No newline at end of file
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepOverActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepOverActionDelegate.java
index 87bff04ff..e30f175f2 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepOverActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepOverActionDelegate.java
@@ -7,11 +7,6 @@ package org.eclipse.debug.internal.ui.actions;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IStep;
-import org.eclipse.debug.internal.ui.DebugPluginImages;
-import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
-import org.eclipse.debug.ui.IDebugUIConstants;
-import org.eclipse.jface.action.IAction;
public class StepOverActionDelegate extends StepActionDelegate {
@@ -28,51 +23,25 @@ public class StepOverActionDelegate extends StepActionDelegate {
protected void stepAction(IStep element) throws DebugException {
element.stepOver();
}
-
- protected String getHelpContextId() {
- return IDebugHelpContextIds.STEP_OVER_ACTION;
- }
/**
- * @see ControlActionDelegate#setActionImages(IAction)
- */
- protected void setActionImages(IAction action) {
- action.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_STEPOVER));
- action.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_STEPOVER));
- action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_STEPOVER));
- }
- /**
- * @see ControlActionDelegate#getStatusMessage()
+ * @see AbstractDebugActionDelegate#getStatusMessage()
*/
protected String getStatusMessage() {
return ActionMessages.getString("StepOverActionDelegate.Step_over_failed_1"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogMessage()
+ * @see AbstractDebugActionDelegate#getErrorDialogMessage()
*/
protected String getErrorDialogMessage() {
return ActionMessages.getString("StepOverActionDelegate.Exceptions_occurred_attempting_to_step_over_the_frame_2"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogTitle()
+ * @see AbstractDebugActionDelegate#getErrorDialogTitle()
*/
protected String getErrorDialogTitle() {
- return getToolTipText();
- }
-
- /**
- * @see ControlActionDelegate#getToolTipText()
- */
- protected String getToolTipText() {
return ActionMessages.getString("StepOverActionDelegate.Step_over_3"); //$NON-NLS-1$
}
-
- /**
- * @see ControlActionDelegate#getText()
- */
- protected String getText() {
- return ActionMessages.getString("StepOverActionDelegate.Step_O&ver_4"); //$NON-NLS-1$
- }
} \ No newline at end of file
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepReturnActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepReturnActionDelegate.java
index cf9537949..d27f1f6fe 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepReturnActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StepReturnActionDelegate.java
@@ -7,11 +7,6 @@ package org.eclipse.debug.internal.ui.actions;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IStep;
-import org.eclipse.debug.internal.ui.DebugPluginImages;
-import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
-import org.eclipse.debug.ui.IDebugUIConstants;
-import org.eclipse.jface.action.IAction;
public class StepReturnActionDelegate extends StepActionDelegate {
@@ -28,54 +23,25 @@ public class StepReturnActionDelegate extends StepActionDelegate {
protected void stepAction(IStep element) throws DebugException {
element.stepReturn();
}
-
- /**
- * @see ControlActionDelegate#getHelpContextId()
- */
- protected String getHelpContextId() {
- return IDebugHelpContextIds.STEP_RETURN_ACTION;
- }
/**
- * @see ControlActionDelegate#setActionImages(IAction)
- */
- protected void setActionImages(IAction action) {
- action.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_STEPRETURN));
- action.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_STEPRETURN));
- action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_STEPRETURN));
- }
- /**
- * @see ControlActionDelegate#getStatusMessage()
+ * @see AbstractDebugActionDelegate#getStatusMessage()
*/
protected String getStatusMessage() {
return ActionMessages.getString("StepReturnActionDelegate.Run_to_return_failed._1"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogMessage()
+ * @see AbstractDebugActionDelegate#getErrorDialogMessage()
*/
protected String getErrorDialogMessage() {
return ActionMessages.getString("StepReturnActionDelegate.Exceptions_occurred_attempting_to_run_to_return_of_the_frame._2"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogTitle()
+ * @see AbstractDebugActionDelegate#getErrorDialogTitle()
*/
protected String getErrorDialogTitle() {
- return getToolTipText();
- }
-
- /**
- * @see ControlActionDelegate#getToolTipText()
- */
- protected String getToolTipText() {
return ActionMessages.getString("StepReturnActionDelegate.Run_to_Return_3"); //$NON-NLS-1$
- }
-
- /**
- * @see ControlActionDelegate#getText()
- */
- protected String getText() {
- return ActionMessages.getString("StepReturnActionDelegate.R&un_to_return_4"); //$NON-NLS-1$
- }
+ }
} \ No newline at end of file
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/SuspendActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/SuspendActionDelegate.java
index 8588d4d97..92b81cec4 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/SuspendActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/SuspendActionDelegate.java
@@ -7,17 +7,13 @@ package org.eclipse.debug.internal.ui.actions;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.ISuspendResume;
-import org.eclipse.debug.internal.ui.DebugPluginImages;
import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
-import org.eclipse.debug.ui.IDebugUIConstants;
-import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.IStructuredSelection;
public class SuspendActionDelegate extends AbstractListenerActionDelegate {
/**
- * @see ControlActionDelegate#doAction(Object)
+ * @see AbstractDebugActionDelegate#doAction(Object)
*/
protected void doAction(Object element) throws DebugException {
if (element instanceof ISuspendResume) {
@@ -26,14 +22,14 @@ public class SuspendActionDelegate extends AbstractListenerActionDelegate {
}
/**
- * @see ControlActionDelegate#isEnabledFor(Object)
+ * @see AbstractDebugActionDelegate#isEnabledFor(Object)
*/
protected boolean isEnabledFor(Object element) {
return element instanceof ISuspendResume && ((ISuspendResume)element).canSuspend();
}
/**
- * @see ControlActionDelegate#getEnableStateForSelection(IStructuredSelection)
+ * @see AbstractDebugActionDelegate#getEnableStateForSelection(IStructuredSelection)
*/
protected boolean getEnableStateForSelection(IStructuredSelection selection) {
if (selection.size() == 1) {
@@ -44,52 +40,23 @@ public class SuspendActionDelegate extends AbstractListenerActionDelegate {
}
/**
- * @see ControlActionDelegate#getHelpContextId()
- */
- protected String getHelpContextId() {
- return IDebugHelpContextIds.SUSPEND_ACTION;
- }
-
- /**
- * @see ControlActionDelegate#setActionImages(IAction)
- */
- protected void setActionImages(IAction action) {
- action.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_SUSPEND));
- action.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_SUSPEND));
- action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_SUSPEND));
- }
- /**
- * @see ControlActionDelegate#getStatusMessage()
+ * @see AbstractDebugActionDelegate#getStatusMessage()
*/
protected String getStatusMessage() {
return ActionMessages.getString("SuspendActionDelegate.Suspend_failed_1"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogMessage()
+ * @see AbstractDebugActionDelegate#getErrorDialogMessage()
*/
protected String getErrorDialogMessage() {
return ActionMessages.getString("SuspendActionDelegate.Exceptions_occurred_attempting_to_suspend._2"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogTitle()
+ * @see AbstractDebugActionDelegate#getErrorDialogTitle()
*/
protected String getErrorDialogTitle() {
- return getToolTipText();
- }
- /**
- * @see ControlActionDelegate#getToolTipText()
- */
- protected String getToolTipText() {
return ActionMessages.getString("SuspendActionDelegate.Suspend_3"); //$NON-NLS-1$
}
-
- /**
- * @see ControlActionDelegate#getText()
- */
- protected String getText() {
- return ActionMessages.getString("SuspendActionDelegate.&Suspend_4"); //$NON-NLS-1$
- }
-
- } \ No newline at end of file
+} \ No newline at end of file
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateActionDelegate.java
index 9a6a52b10..b2579f0f7 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateActionDelegate.java
@@ -8,16 +8,11 @@ package org.eclipse.debug.internal.ui.actions;
import org.eclipse.debug.core.DebugEvent;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.ITerminate;
-import org.eclipse.debug.internal.ui.DebugPluginImages;
-import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
-import org.eclipse.debug.ui.IDebugUIConstants;
-import org.eclipse.jface.action.IAction;
public class TerminateActionDelegate extends AbstractListenerActionDelegate {
/**
- * @see ControlActionDelegate#doAction(Object)
+ * @see AbstractDebugActionDelegate#doAction(Object)
*/
protected void doAction(Object element) throws DebugException {
if (element instanceof ITerminate) {
@@ -26,36 +21,21 @@ public class TerminateActionDelegate extends AbstractListenerActionDelegate {
}
/**
- * @see ControlActionDelegate#isEnabledFor(Object)
+ * @see AbstractDebugActionDelegate#isEnabledFor(Object)
*/
protected boolean isEnabledFor(Object element) {
return element instanceof ITerminate && ((ITerminate)element).canTerminate();
}
/**
- * @see ControlActionDelegate#getHelpContextId()
- */
- protected String getHelpContextId() {
- return IDebugHelpContextIds.TERMINATE_ACTION;
- }
-
- /**
- * @see ControlActionDelegate#setActionImages(IAction)
- */
- protected void setActionImages(IAction action) {
- action.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_TERMINATE));
- action.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_TERMINATE));
- action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_TERMINATE));
- }
- /**
- * @see ControlActionDelegate#getStatusMessage()
+ * @see AbstractDebugActionDelegate#getStatusMessage()
*/
protected String getStatusMessage() {
return ActionMessages.getString("TerminateActionDelegate.Terminate_failed._1"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogMessage()
+ * @see AbstractDebugActionDelegate#getErrorDialogMessage()
*/
protected String getErrorDialogMessage() {
return ActionMessages.getString("TerminateActionDelegate.Exceptions_occurred_attempting_to_terminate._2"); //$NON-NLS-1$
@@ -63,25 +43,11 @@ public class TerminateActionDelegate extends AbstractListenerActionDelegate {
}
/**
- * @see ControlActionDelegate#getErrorDialogTitle()
+ * @see AbstractDebugActionDelegate#getErrorDialogTitle()
*/
protected String getErrorDialogTitle() {
- return getToolTipText();
- }
-
- /**
- * @see ControlActionDelegate#getToolTipText()
- */
- protected String getToolTipText() {
return ActionMessages.getString("TerminateActionDelegate.Terminate_3"); //$NON-NLS-1$
}
-
- /**
- * @see ControlActionDelegate#getText()
- */
- protected String getText() {
- return ActionMessages.getString("TerminateActionDelegate.&Terminate_4"); //$NON-NLS-1$
- }
/**
* @see ListenerActionDelegate#doHandleDebugEvent(DebugEvent)
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateAllAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateAllAction.java
index 37d67542d..e9285cbf6 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateAllAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateAllAction.java
@@ -11,10 +11,7 @@ import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.debug.internal.ui.DebugPluginImages;
import org.eclipse.debug.internal.ui.DebugUIPlugin;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
-import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
@@ -79,14 +76,6 @@ public class TerminateAllAction extends AbstractListenerActionDelegate {
return true;
}
- /**
- * @see AbstractDebugActionDelegate#setActionImages(IAction)
- */
- protected void setActionImages(IAction action) {
- action.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_TERMINATE_ALL));
- action.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_TERMINATE_ALL));
- action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_TERMINATE_ALL));
- }
protected void doHandleDebugEvent(DebugEvent event) {
switch (event.getKind()) {
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateAndRemoveActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateAndRemoveActionDelegate.java
index 73cad2688..677aff175 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateAndRemoveActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/TerminateAndRemoveActionDelegate.java
@@ -12,16 +12,11 @@ import org.eclipse.debug.core.ILaunchManager;
import org.eclipse.debug.core.model.IDebugElement;
import org.eclipse.debug.core.model.IProcess;
import org.eclipse.debug.core.model.ITerminate;
-import org.eclipse.debug.internal.ui.DebugPluginImages;
-import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
-import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
-import org.eclipse.debug.ui.IDebugUIConstants;
-import org.eclipse.jface.action.IAction;
public class TerminateAndRemoveActionDelegate extends AbstractDebugActionDelegate {
/**
- * @see ControlActionDelegate#doAction(Object)
+ * @see AbstractDebugActionDelegate#doAction(Object)
*/
protected void doAction(Object element) throws DebugException {
try {
@@ -44,7 +39,7 @@ public class TerminateAndRemoveActionDelegate extends AbstractDebugActionDelegat
}
/**
- * @see ControlActionDelegate#isEnabledFor(Object)
+ * @see AbstractDebugActionDelegate#isEnabledFor(Object)
*/
protected boolean isEnabledFor(Object element) {
if (element instanceof ITerminate) {
@@ -55,53 +50,25 @@ public class TerminateAndRemoveActionDelegate extends AbstractDebugActionDelegat
}
return false;
}
-
- /**
- * @see ControlActionDelegate#getHelpContextId()
- */
- protected String getHelpContextId() {
- return IDebugHelpContextIds.TERMINATE_AND_REMOVE_ACTION;
- }
/**
- * @see ControlActionDelegate#setActionImages(IAction)
- */
- protected void setActionImages(IAction action) {
- action.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_TERMINATE_AND_REMOVE));
- action.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_TERMINATE_AND_REMOVE));
- action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_TERMINATE_AND_REMOVE));
- }
- /**
- * @see ControlActionDelegate#getStatusMessage()
+ * @see AbstractDebugActionDelegate#getStatusMessage()
*/
protected String getStatusMessage() {
return ActionMessages.getString("TerminateAndRemoveActionDelegate.Terminate_and_remove_failed_1"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogMessage()
+ * @see AbstractDebugActionDelegate#getErrorDialogMessage()
*/
protected String getErrorDialogMessage() {
return ActionMessages.getString("TerminateAndRemoveActionDelegate.Exceptions_occurred_attempting_to_terminate_and_remove_2"); //$NON-NLS-1$
}
/**
- * @see ControlActionDelegate#getErrorDialogTitle()
+ * @see AbstractDebugActionDelegate#getErrorDialogTitle()
*/
protected String getErrorDialogTitle() {
- return getToolTipText();
- }
- /**
- * @see ControlActionDelegate#getToolTipText()
- */
- protected String getToolTipText() {
return ActionMessages.getString("TerminateAndRemoveActionDelegate.Terminate_and_Remove;_3"); //$NON-NLS-1$
}
-
- /**
- * @see ControlActionDelegate#getText()
- */
- protected String getText() {
- return ActionMessages.getString("TerminateAndRemoveActionDelegate.Ter&minate_and_Remove_4"); //$NON-NLS-1$
- }
} \ No newline at end of file

Back to the top