diff options
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceContainerAction.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceContainerAction.java | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceContainerAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceContainerAction.java index 29d610443..b6c5f552e 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceContainerAction.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceContainerAction.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -25,7 +25,7 @@ import org.eclipse.ui.actions.SelectionListenerAction; /** * The abstract class for all source lookup actions. - * + * * @since 3.0 */ public abstract class SourceContainerAction extends SelectionListenerAction { @@ -35,18 +35,18 @@ public abstract class SourceContainerAction extends SelectionListenerAction { private Button fButton; //the shell used to realize this action's dialog (if any) private Shell fShell; - + /** * The constructor for the action * @param label the label for the action's button */ public SourceContainerAction(String label) { - super(label); + super(label); } - + /** * Sets the viewer on which this action operates. - * + * * @param viewer the viewer on which this action operates */ public void setViewer(SourceContainerViewer viewer) { @@ -59,20 +59,20 @@ public abstract class SourceContainerAction extends SelectionListenerAction { update(); } } - + /** * Returns the viewer on which this action operates. - * + * * @return the viewer on which this action operates */ protected SourceContainerViewer getViewer() { return fViewer; } - + /** * Returns the selected items in the list, in the order they are * displayed. - * + * * @return targets for an action */ protected List<ISourceContainer> getOrderedSelection() { @@ -87,7 +87,7 @@ public abstract class SourceContainerAction extends SelectionListenerAction { } return targets; } - + /** * Returns a list (copy) of the entries in the viewer */ @@ -99,7 +99,7 @@ public abstract class SourceContainerAction extends SelectionListenerAction { } return list; } - + /** * Updates the entries to the entries in the given list */ @@ -108,7 +108,7 @@ public abstract class SourceContainerAction extends SelectionListenerAction { // update all selection listeners getViewer().setSelection(getViewer().getSelection()); } - + /** * Returns whether the item at the given index in the list * (visually) is selected. @@ -127,7 +127,7 @@ public abstract class SourceContainerAction extends SelectionListenerAction { } return false; } - + /** * Sets the button that invokes this action */ @@ -140,7 +140,7 @@ public abstract class SourceContainerAction extends SelectionListenerAction { } }); } - + /** * @see IAction#setEnabled(boolean) */ @@ -151,14 +151,14 @@ public abstract class SourceContainerAction extends SelectionListenerAction { fButton.setEnabled(enabled); } } - + /** * Updates the enabled state. */ protected void update() { selectionChanged((IStructuredSelection) getViewer().getSelection()); } - + /** * Returns the shell used to realize this action's dialog (if any). */ @@ -168,12 +168,12 @@ public abstract class SourceContainerAction extends SelectionListenerAction { } return fShell; } - + /** * Sets the shell used to realize this action's dialog (if any). */ public void setShell(Shell shell) { fShell = shell; } - + } |