Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2014-07-22 18:11:26 +0000
committerLars Vogel2014-07-23 16:48:04 +0000
commit77aba32b75602d1b9ae154720511cc234861de53 (patch)
tree0e21329c6f4faf6ab706e8f6b36435f1028497a1
parentf1ae749af6ed5b76729db5940a3b092ee53aa86d (diff)
downloadeclipse.platform.ui-77aba32b75602d1b9ae154720511cc234861de53.tar.gz
eclipse.platform.ui-77aba32b75602d1b9ae154720511cc234861de53.tar.xz
eclipse.platform.ui-77aba32b75602d1b9ae154720511cc234861de53.zip
Bug 425962 - [New Contributors] Remove (non-Javadoc) @see statements if
@Override is used Change-Id: Id0d89119a316e4d42194e2c20be5a982792cf3e1 Signed-off-by: Lars Vogel <Lars.Vogel@gmail.com>
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ErrorDialog.java51
1 files changed, 7 insertions, 44 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ErrorDialog.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ErrorDialog.java
index d017c98e424..943bb6caa0e 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ErrorDialog.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ErrorDialog.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others.
+ * Copyright (c) 2000, 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
@@ -152,11 +152,11 @@ public class ErrorDialog extends IconAndMessageDialog {
}
/*
- * (non-Javadoc) Method declared on Dialog. Handles the pressing of the Ok
- * or Details button in this dialog. If the Ok button was pressed then close
- * this dialog. If the Details button was pressed then toggle the displaying
- * of the error details area. Note that the Details button will only be
- * visible if the error being displayed specifies child details.
+ * Handles the pressing of the Ok or Details button in this dialog. If the
+ * Ok button was pressed then close this dialog. If the Details button was
+ * pressed then toggle the displaying of the error details area. Note that
+ * the Details button will only be visible if the error being displayed
+ * specifies child details.
*/
@Override
protected void buttonPressed(int id) {
@@ -168,20 +168,12 @@ public class ErrorDialog extends IconAndMessageDialog {
}
}
- /*
- * (non-Javadoc) Method declared in Window.
- */
@Override
protected void configureShell(Shell shell) {
super.configureShell(shell);
shell.setText(title);
}
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jface.dialogs.Dialog#createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)
- */
@Override
protected void createButtonsForButtonBar(Composite parent) {
// create OK and Details buttons
@@ -272,9 +264,6 @@ public class ErrorDialog extends IconAndMessageDialog {
return composite;
}
- /*
- * @see IconAndMessageDialog#createDialogAndButtonArea(Composite)
- */
@Override
protected void createDialogAndButtonArea(Composite parent) {
super.createDialogAndButtonArea(parent);
@@ -287,11 +276,6 @@ public class ErrorDialog extends IconAndMessageDialog {
}
}
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jface.dialogs.IconAndMessageDialog#getImage()
- */
@Override
protected Image getImage() {
if (status != null) {
@@ -335,17 +319,11 @@ public class ErrorDialog extends IconAndMessageDialog {
Menu copyMenu = new Menu(list);
MenuItem copyItem = new MenuItem(copyMenu, SWT.NONE);
copyItem.addSelectionListener(new SelectionListener() {
- /*
- * @see SelectionListener.widgetSelected (SelectionEvent)
- */
@Override
public void widgetSelected(SelectionEvent e) {
copyToClipboard();
}
- /*
- * @see SelectionListener.widgetDefaultSelected(SelectionEvent)
- */
@Override
public void widgetDefaultSelected(SelectionEvent e) {
copyToClipboard();
@@ -357,9 +335,6 @@ public class ErrorDialog extends IconAndMessageDialog {
return list;
}
- /*
- * (non-Javadoc) Method declared on Window.
- */
/**
* Extends <code>Window.open()</code>. Opens an error dialog to display
* the error. If you specified a mask to filter the displaying of these
@@ -715,11 +690,6 @@ public class ErrorDialog extends IconAndMessageDialog {
new Transfer[] { TextTransfer.getInstance() });
}
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jface.window.Window#close()
- */
@Override
public boolean close() {
if (clipboard != null) {
@@ -790,20 +760,13 @@ public class ErrorDialog extends IconAndMessageDialog {
}
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.dialogs.IconAndMessageDialog#getColumnCount()
- */
@Override
int getColumnCount() {
if (Policy.getErrorSupportProvider() == null)
return 2;
return 3;
}
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.jface.dialogs.Dialog#isResizable()
- */
+
@Override
protected boolean isResizable() {
return true;

Back to the top