1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2012-04-28 16:51:23 -07:00
parent 8b7660f83b
commit 6a0f08849f
3 changed files with 13 additions and 57 deletions

View file

@ -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);
}

View file

@ -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$

View file

@ -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;