Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-04-28 19:51:23 -0400
committerSergey Prigogin2012-04-28 19:51:23 -0400
commit6a0f08849f649aebc819efac33a889591972ca67 (patch)
tree12df988c73326857d8444749b1dd62a81bd31712 /codan/org.eclipse.cdt.codan.ui.cxx
parent8b7660f83b255bbbd4f99409c77010244802da96 (diff)
downloadorg.eclipse.cdt-6a0f08849f649aebc819efac33a889591972ca67.tar.gz
org.eclipse.cdt-6a0f08849f649aebc819efac33a889591972ca67.tar.xz
org.eclipse.cdt-6a0f08849f649aebc819efac33a889591972ca67.zip
Cosmetics.
Diffstat (limited to 'codan/org.eclipse.cdt.codan.ui.cxx')
-rw-r--r--codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/AbstractCodanCQuickFixProcessor.java36
-rw-r--r--codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/Activator.java20
-rw-r--r--codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/CodanCReconciler.java14
3 files changed, 13 insertions, 57 deletions
diff --git a/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/AbstractCodanCQuickFixProcessor.java b/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/AbstractCodanCQuickFixProcessor.java
index 456184ac31..2880e5e131 100644
--- a/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/AbstractCodanCQuickFixProcessor.java
+++ b/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/AbstractCodanCQuickFixProcessor.java
@@ -6,7 +6,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * Alena Laskavaia - initial API and implementation
+ * Alena Laskavaia - initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.codan.internal.ui.cxx;
@@ -25,9 +25,8 @@ import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
/**
- * Abstract class IQuickFixProcessor - not used right now because it does not
- * work
- * properly for non hardcoded errors
+ * Abstract class IQuickFixProcessor - not used right now because it does not work
+ * properly for non hardcoded errors.
* <p>
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as part
* of a work in progress. There is no guarantee that this API will work or that
@@ -35,26 +34,14 @@ import org.eclipse.jface.text.IDocument;
* </p>
*/
public abstract class AbstractCodanCQuickFixProcessor implements IQuickFixProcessor {
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.cdt.ui.text.IQuickFixProcessor#hasCorrections(org.eclipse
- * .cdt.ui.text.ITranslationUnit, int)
- */
+ @Override
public boolean hasCorrections(ITranslationUnit unit, int problemId) {
return problemId == 42;
}
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.cdt.ui.text.IQuickFixProcessor#getCorrections(org.eclipse
- * .cdt.ui.text.IInvocationContext,
- * org.eclipse.cdt.ui.text.IProblemLocation[])
- */
- public ICCompletionProposal[] getCorrections(IInvocationContext context, IProblemLocation[] locations) throws CoreException {
+ @Override
+ public ICCompletionProposal[] getCorrections(IInvocationContext context,
+ IProblemLocation[] locations) throws CoreException {
if (locations == null || locations.length == 0)
return null;
IProblemLocation loc = locations[0];
@@ -88,11 +75,6 @@ public abstract class AbstractCodanCQuickFixProcessor implements IQuickFixProces
return position;
}
- /**
- * @param context
- * @param loc
- * @param marker
- * @return
- */
- public abstract ICCompletionProposal[] getCorrections(IInvocationContext context, String problemId, IMarker marker);
+ public abstract ICCompletionProposal[] getCorrections(IInvocationContext context,
+ String problemId, IMarker marker);
} \ No newline at end of file
diff --git a/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/Activator.java b/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/Activator.java
index abdd308995..c0c0030fe5 100644
--- a/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/Activator.java
+++ b/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/Activator.java
@@ -30,26 +30,12 @@ public class Activator extends AbstractUIPlugin {
public Activator() {
}
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext
- * )
- */
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext
- * )
- */
@Override
public void stop(BundleContext context) throws Exception {
plugin = null;
@@ -68,8 +54,7 @@ public class Activator extends AbstractUIPlugin {
/**
* Logs the specified status with this plug-in's log.
*
- * @param status
- * status to log
+ * @param status the status to log
*/
public static void log(IStatus status) {
getDefault().getLog().log(status);
@@ -78,8 +63,7 @@ public class Activator extends AbstractUIPlugin {
/**
* Logs an internal error with the specified throwable
*
- * @param e
- * the exception to be logged
+ * @param e the exception to be logged
*/
public static void log(Throwable e) {
log(new Status(IStatus.ERROR, PLUGIN_ID, 1, "Internal Error", e)); //$NON-NLS-1$
diff --git a/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/CodanCReconciler.java b/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/CodanCReconciler.java
index 18b491f19e..998aaac197 100644
--- a/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/CodanCReconciler.java
+++ b/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/CodanCReconciler.java
@@ -45,22 +45,12 @@ public class CodanCReconciler implements ICReconcilingListener {
// nothing?
}
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.cdt.internal.ui.text.ICReconcilingListener#aboutToBeReconciled()
- */
+ @Override
public void aboutToBeReconciled() {
// nothing
}
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.cdt.internal.ui.text.ICReconcilingListener#reconciled(
- * org.eclipse.cdt.core.dom.ast.IASTTranslationUnit, boolean,
- * org.eclipse.core.runtime.IProgressMonitor)
- */
+ @Override
public void reconciled(IASTTranslationUnit ast, boolean force, IProgressMonitor progressMonitor) {
if (ast == null)
return;

Back to the top