mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-13 20:15:22 +02:00
Cosmetics.
This commit is contained in:
parent
6428f07759
commit
f81a1652f1
3 changed files with 52 additions and 72 deletions
|
@ -45,7 +45,6 @@ public class CodanRunner {
|
|||
/** Do not instantiate. All methods are static */
|
||||
private CodanRunner() {}
|
||||
|
||||
|
||||
/**
|
||||
* Runs all checkers that support "run as you type" mode.
|
||||
*
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.cdt.internal.core.model;
|
||||
|
||||
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -19,7 +17,6 @@ import org.eclipse.cdt.core.model.ICElement;
|
|||
import org.eclipse.cdt.core.model.IOpenable;
|
||||
import org.eclipse.cdt.internal.core.util.OverflowingLRUCache;
|
||||
|
||||
|
||||
/**
|
||||
* The cache of C elements to their respective info.
|
||||
*
|
||||
|
@ -122,6 +119,7 @@ protected void putInfo(ICElement element, Object info) {
|
|||
this.childrenCache.put(element, info);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes the info of the element from the cache.
|
||||
*/
|
||||
|
@ -143,5 +141,4 @@ protected void removeInfo(ICElement element) {
|
|||
this.childrenCache.remove(element);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -32,9 +32,7 @@ import org.eclipse.cdt.ui.IWorkingCopyManager;
|
|||
|
||||
import org.eclipse.cdt.internal.core.dom.parser.ASTTranslationUnit;
|
||||
|
||||
|
||||
public class CReconcilingStrategy implements IReconcilingStrategy, IReconcilingStrategyExtension {
|
||||
|
||||
private ITextEditor fEditor;
|
||||
private IWorkingCopyManager fManager;
|
||||
private IProgressMonitor fProgressMonitor;
|
||||
|
@ -46,32 +44,20 @@ public class CReconcilingStrategy implements IReconcilingStrategy, IReconcilingS
|
|||
fManager= CUIPlugin.getDefault().getWorkingCopyManager();
|
||||
}
|
||||
|
||||
/*
|
||||
* @see org.eclipse.jface.text.reconciler.IReconcilingStrategy#setDocument(org.eclipse.jface.text.IDocument)
|
||||
*/
|
||||
@Override
|
||||
public void setDocument(IDocument document) {
|
||||
}
|
||||
|
||||
/*
|
||||
* @see org.eclipse.jface.text.reconciler.IReconcilingStrategy#reconcile(org.eclipse.jface.text.reconciler.DirtyRegion, org.eclipse.jface.text.IRegion)
|
||||
*/
|
||||
@Override
|
||||
public void reconcile(DirtyRegion dirtyRegion, IRegion subRegion) {
|
||||
// only called for incremental reconciler
|
||||
}
|
||||
|
||||
/*
|
||||
* @see IReconcilingStrategyExtension#setProgressMonitor(IProgressMonitor)
|
||||
*/
|
||||
@Override
|
||||
public void setProgressMonitor(IProgressMonitor monitor) {
|
||||
fProgressMonitor= monitor;
|
||||
}
|
||||
|
||||
/*
|
||||
* @see org.eclipse.jface.text.reconciler.IReconcilingStrategy#reconcile(org.eclipse.jface.text.IRegion)
|
||||
*/
|
||||
@Override
|
||||
public void reconcile(IRegion region) {
|
||||
reconcile(false);
|
||||
|
@ -91,10 +77,11 @@ public class CReconcilingStrategy implements IReconcilingStrategy, IReconcilingS
|
|||
forced= workingCopy.isConsistent();
|
||||
ast= workingCopy.reconcile(computeAST, true, fProgressMonitor);
|
||||
}
|
||||
} catch (OperationCanceledException oce) {
|
||||
} catch (OperationCanceledException e) {
|
||||
// document was modified while parsing
|
||||
} catch (CModelException e) {
|
||||
IStatus status= new Status(IStatus.ERROR, CUIPlugin.PLUGIN_ID, IStatus.OK, "Error in CDT UI during reconcile", e); //$NON-NLS-1$
|
||||
IStatus status= new Status(IStatus.ERROR, CUIPlugin.PLUGIN_ID, IStatus.OK,
|
||||
"Error in CDT UI during reconcile", e); //$NON-NLS-1$
|
||||
CUIPlugin.log(status);
|
||||
} finally {
|
||||
if (computeAST) {
|
||||
|
@ -118,7 +105,8 @@ public class CReconcilingStrategy implements IReconcilingStrategy, IReconcilingS
|
|||
aboutToBeReconciled();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
IStatus status= new Status(IStatus.ERROR, CUIPlugin.PLUGIN_ID, IStatus.OK, "Error in CDT UI during reconcile", e); //$NON-NLS-1$
|
||||
IStatus status= new Status(IStatus.ERROR, CUIPlugin.PLUGIN_ID, IStatus.OK,
|
||||
"Error in CDT UI during reconcile", e); //$NON-NLS-1$
|
||||
CUIPlugin.log(status);
|
||||
} finally {
|
||||
if (index != null) {
|
||||
|
@ -129,9 +117,6 @@ public class CReconcilingStrategy implements IReconcilingStrategy, IReconcilingS
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* @see org.eclipse.jface.text.reconciler.IReconcilingStrategyExtension#initialReconcile()
|
||||
*/
|
||||
@Override
|
||||
public void initialReconcile() {
|
||||
reconcile(true);
|
||||
|
@ -143,5 +128,4 @@ public class CReconcilingStrategy implements IReconcilingStrategy, IReconcilingS
|
|||
((ICReconcilingListener)fEditor).aboutToBeReconciled();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue