diff options
author | Michael Rennie | 2011-07-07 04:49:14 +0000 |
---|---|---|
committer | Michael Rennie | 2011-07-07 04:49:14 +0000 |
commit | 233d153fa8e4d9e3372107e3af495b26594c99b1 (patch) | |
tree | eb9976cd89c115b35f15f350ce877c72bd3f6c81 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java | |
parent | bbc6a13779b7a6542fa76a1b4d22effb2b017547 (diff) | |
download | eclipse.platform.debug-233d153fa8e4d9e3372107e3af495b26594c99b1.tar.gz eclipse.platform.debug-233d153fa8e4d9e3372107e3af495b26594c99b1.tar.xz eclipse.platform.debug-233d153fa8e4d9e3372107e3af495b26594c99b1.zip |
[nobug] fix Javadoc warnings and add API problem filters for known API usage problems
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java | 16 |
1 files changed, 12 insertions, 4 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 a9ff6c2ce..1e4de1297 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 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2011 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -33,8 +33,8 @@ import org.eclipse.ui.IWorkbenchWindow; * This class is an abstract implementation of common features for a debug <code>IViewActionDelegate</code> * * This class is intended to be extended by clients - * @see {@link IViewActionDelegate} - * @see {@link IActionDelegate2} + * @see IViewActionDelegate + * @see IActionDelegate2 */ public abstract class AbstractDebugActionDelegate implements IViewActionDelegate, IActionDelegate2 { @@ -87,6 +87,7 @@ public abstract class AbstractDebugActionDelegate implements IViewActionDelegate /** * Runs this action in the UI thread. + * @param selection the current selection */ private void runInForeground(final IStructuredSelection selection) { final MultiStatus status= @@ -172,6 +173,8 @@ public abstract class AbstractDebugActionDelegate implements IViewActionDelegate /** * Performs the specific action on this element. + * @param element the element context to perform the action on + * @throws DebugException if an exception occurs */ protected abstract void doAction(Object element) throws DebugException; @@ -180,6 +183,7 @@ public abstract class AbstractDebugActionDelegate implements IViewActionDelegate * a failed action. This message appears as the "Message:" in * the error dialog for this action. * Default is to return null. + * @return the message to be displayed in the an error dialog */ protected String getErrorDialogMessage(){ return null; @@ -189,6 +193,7 @@ public abstract class AbstractDebugActionDelegate implements IViewActionDelegate * a failed action. This message appears as the "Reason:" * in the error dialog for this action. * Default is to return the empty String. + * @return the message to be displayed as a status */ protected String getStatusMessage(){ return IInternalDebugCoreConstants.EMPTY_STRING; @@ -218,6 +223,7 @@ public abstract class AbstractDebugActionDelegate implements IViewActionDelegate * have the initial enabled state set with a call to update(IAction, ISelection). * * @param action the presentation for this action + * @param selection the current selection - workbench or text * @return whether the action was initialized */ protected boolean initialize(IAction action, ISelection selection) { @@ -242,7 +248,7 @@ public abstract class AbstractDebugActionDelegate implements IViewActionDelegate /** * Sets the most recent selection * - * @parm selection structured selection + * @param selection structured selection */ private void setSelection(IStructuredSelection selection) { fSelection = selection; @@ -282,6 +288,8 @@ public abstract class AbstractDebugActionDelegate implements IViewActionDelegate /** * Return whether the action should be enabled or not based on the given selection. + * @param selection the selection + * @return if the action should be enabled or not */ protected boolean getEnableStateForSelection(IStructuredSelection selection) { if (selection.size() == 0) { |