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:
parent
9cef992b8e
commit
80271560e8
2 changed files with 4 additions and 10 deletions
|
@ -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
|
2003-09-29 Hoda Amer
|
||||||
- Fixed Help IDs for C_Editor preference tabs.
|
- Fixed Help IDs for C_Editor preference tabs.
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@ public class CReconcilingStrategy implements IReconcilingStrategy {
|
||||||
|
|
||||||
|
|
||||||
private CContentOutlinePage fOutliner;
|
private CContentOutlinePage fOutliner;
|
||||||
private int fLastRegionOffset;
|
|
||||||
private ITextEditor fEditor;
|
private ITextEditor fEditor;
|
||||||
private IWorkingCopyManager fManager;
|
private IWorkingCopyManager fManager;
|
||||||
private IDocumentProvider fDocumentProvider;
|
private IDocumentProvider fDocumentProvider;
|
||||||
|
@ -34,7 +33,6 @@ public class CReconcilingStrategy implements IReconcilingStrategy {
|
||||||
|
|
||||||
public CReconcilingStrategy(CEditor editor) {
|
public CReconcilingStrategy(CEditor editor) {
|
||||||
fOutliner= editor.getOutlinePage();
|
fOutliner= editor.getOutlinePage();
|
||||||
fLastRegionOffset = Integer.MAX_VALUE;
|
|
||||||
fEditor= editor;
|
fEditor= editor;
|
||||||
fManager= CUIPlugin.getDefault().getWorkingCopyManager();
|
fManager= CUIPlugin.getDefault().getWorkingCopyManager();
|
||||||
fDocumentProvider= CUIPlugin.getDefault().getDocumentProvider();
|
fDocumentProvider= CUIPlugin.getDefault().getDocumentProvider();
|
||||||
|
@ -58,14 +56,7 @@ public class CReconcilingStrategy implements IReconcilingStrategy {
|
||||||
* @see IReconcilingStrategy#reconcile(region)
|
* @see IReconcilingStrategy#reconcile(region)
|
||||||
*/
|
*/
|
||||||
public void reconcile(IRegion region) {
|
public void reconcile(IRegion region) {
|
||||||
// We use a trick to avoid running the reconciler multiple times
|
reconcile();
|
||||||
// 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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue