1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Patch for Hoda Amer

UI: 
         Fix for bug#43524 : Removing a define from a  .c file causes issues in the outline
This commit is contained in:
John Camelon 2003-09-30 14:16:26 +00:00
parent 9cef992b8e
commit 80271560e8
2 changed files with 4 additions and 10 deletions

View file

@ -1,3 +1,6 @@
2003-09-30 Hoda Amer
- Fix for bug#43524 : Removing a define from a .c file causes issues in the outline
2003-09-29 Hoda Amer
- Fixed Help IDs for C_Editor preference tabs.

View file

@ -25,7 +25,6 @@ public class CReconcilingStrategy implements IReconcilingStrategy {
private CContentOutlinePage fOutliner;
private int fLastRegionOffset;
private ITextEditor fEditor;
private IWorkingCopyManager fManager;
private IDocumentProvider fDocumentProvider;
@ -34,7 +33,6 @@ public class CReconcilingStrategy implements IReconcilingStrategy {
public CReconcilingStrategy(CEditor editor) {
fOutliner= editor.getOutlinePage();
fLastRegionOffset = Integer.MAX_VALUE;
fEditor= editor;
fManager= CUIPlugin.getDefault().getWorkingCopyManager();
fDocumentProvider= CUIPlugin.getDefault().getDocumentProvider();
@ -58,15 +56,8 @@ public class CReconcilingStrategy implements IReconcilingStrategy {
* @see IReconcilingStrategy#reconcile(region)
*/
public void reconcile(IRegion region) {
// We use a trick to avoid running the reconciler multiple times
// on a file when it gets changed. This is because this gets called
// multiple times with different regions of the file, we do a
// complete parse on the first region.
if(region.getOffset() <= fLastRegionOffset) {
reconcile();
}
fLastRegionOffset = region.getOffset();
}
/**