diff options
Diffstat (limited to 'org.eclipse.ui.console/src/org/eclipse/ui/console/actions/TextViewerAction.java')
-rw-r--r-- | org.eclipse.ui.console/src/org/eclipse/ui/console/actions/TextViewerAction.java | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/actions/TextViewerAction.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/actions/TextViewerAction.java index b3809ea13..fabd9bb48 100644 --- a/org.eclipse.ui.console/src/org/eclipse/ui/console/actions/TextViewerAction.java +++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/actions/TextViewerAction.java @@ -1,10 +1,10 @@ /******************************************************************************* - * Copyright (c) 2000, 2005 IBM Corporation and others. + * Copyright (c) 2000, 2013 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 * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -31,7 +31,7 @@ public class TextViewerAction extends Action implements IUpdate { /** * Constructs a new action in the given text viewer with * the specified operation code. - * + * * @param viewer * @param operationCode */ @@ -43,12 +43,13 @@ public class TextViewerAction extends Action implements IUpdate { /* (non-Javadoc) * @see org.eclipse.ui.texteditor.IUpdate#update() - * + * * Updates the enabled state of the action. * Fires a property change if the enabled state changes. - * + * * @see org.eclipse.jface.action.Action#firePropertyChange(String, Object, Object) */ + @Override public void update() { boolean wasEnabled= isEnabled(); @@ -59,19 +60,20 @@ public class TextViewerAction extends Action implements IUpdate { firePropertyChange(ENABLED, wasEnabled ? Boolean.TRUE : Boolean.FALSE, isEnabled ? Boolean.TRUE : Boolean.FALSE); } } - + /* (non-Javadoc) * @see org.eclipse.jface.action.IAction#run() */ + @Override public void run() { if (fOperationCode != -1 && fOperationTarget != null) { fOperationTarget.doOperation(fOperationCode); } } - + /** * Configures this action with a label, tool tip, and description. - * + * * @param text action label * @param toolTipText action tool tip * @param description action description |