aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorD. Spiridenok2014-03-06 10:03:45 (EST)
committerLars Vogel2014-03-07 15:24:53 (EST)
commitfe23a89f8b58122bc68892a897bb6204a42bbcc9 (patch)
tree32277c4e777736e9e4b5119a11212c835285313e
parent643851a60497273f54f40e1092c6eb1902810d99 (diff)
downloadeclipse.platform.ui-fe23a89f8b58122bc68892a897bb6204a42bbcc9.zip
eclipse.platform.ui-fe23a89f8b58122bc68892a897bb6204a42bbcc9.tar.gz
eclipse.platform.ui-fe23a89f8b58122bc68892a897bb6204a42bbcc9.tar.bz2
Bug 425962 - [New Contributors] Remove (non-Javadoc) @see statements ifY20140309-0500Y20140308-1100I20140309-0800refs/changes/97/22997/5
@Override is used Change-Id: I9eb5a2fc0e5e15108a089c555aa8a2734becadd6 Signed-off-by: D. Spiridenok <spiridenok@tut.by>
-rw-r--r--examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/BusyShowWhileDialog.java37
1 files changed, 18 insertions, 19 deletions
diff --git a/examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/BusyShowWhileDialog.java b/examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/BusyShowWhileDialog.java
index d6ef321..760a4e5 100644
--- a/examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/BusyShowWhileDialog.java
+++ b/examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/BusyShowWhileDialog.java
@@ -1,3 +1,14 @@
+/*******************************************************************************
+ * Copyright (c) 2014 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
+ *******************************************************************************/
+
package org.eclipse.ui.examples.jobs;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -23,28 +34,20 @@ public class BusyShowWhileDialog extends IconAndMessageDialog {
super(parentShell);
message = "Busy While Test"; //$NON-NLS-1$
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.dialogs.IconAndMessageDialog#getImage()
- */
+ @Override
protected Image getImage() {
return null;
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.dialogs.Dialog#createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)
- */
+ @Override
protected void createButtonsForButtonBar(Composite parent) {
super.createButtonsForButtonBar(parent);
Button detailsButton = createButton(parent, 4, "Start busy show while", false); //$NON-NLS-1$
detailsButton.addSelectionListener(new SelectionListener() {
- /* (non-Javadoc)
- * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
- */
+ @Override
public void widgetSelected(SelectionEvent e) {
try {
ProgressManager.getInstance().busyCursorWhile(new IRunnableWithProgress() {
- /* (non-Javadoc)
- * @see org.eclipse.jface.operation.IRunnableWithProgress#run(org.eclipse.core.runtime.IProgressMonitor)
- */
+ @Override
public void run(IProgressMonitor monitor) throws InvocationTargetException,
InterruptedException {
long time = System.currentTimeMillis();
@@ -53,9 +56,7 @@ public class BusyShowWhileDialog extends IconAndMessageDialog {
while (end > System.currentTimeMillis()) {
final Shell myShell = BusyShowWhileDialog.this.getShell();
myShell.getDisplay().asyncExec(new Runnable() {
- /* (non-Javadoc)
- * @see java.lang.Runnable#run()
- */
+ @Override
public void run() {
if(myShell.isDisposed())
return;
@@ -69,12 +70,10 @@ public class BusyShowWhileDialog extends IconAndMessageDialog {
} catch (InvocationTargetException error) {
error.printStackTrace();
} catch (InterruptedException error) {
- //ignore - in this context it means cancelation
+ //ignore - in this context it means cancellation
}
}
- /* (non-Javadoc)
- * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)
- */
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
//do nothing
}