Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2003-10-21 14:20:30 +0000
committerDani Megert2003-10-21 14:20:30 +0000
commite061449f0fc101d4d1501d5056d87bcb496fef7e (patch)
treefc5854df67f1aea8f97334cca8d112588fe82377
parent67caf687ade384aaeda7e23b8765c5216238d3ef (diff)
downloadeclipse.platform.text-e061449f0fc101d4d1501d5056d87bcb496fef7e.tar.gz
eclipse.platform.text-e061449f0fc101d4d1501d5056d87bcb496fef7e.tar.xz
eclipse.platform.text-e061449f0fc101d4d1501d5056d87bcb496fef7e.zip
Fixed incremental find field problemv20031021
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java3
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IncrementalFindTarget.java13
2 files changed, 14 insertions, 2 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java
index 0d049f6c6..f329dfbef 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java
@@ -4341,6 +4341,9 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit
} else if (fStatusFields != null)
fStatusFields.remove(category);
+
+ if (fIncrementalFindTarget != null && ITextEditorActionConstants.STATUS_CATEGORY_FIND_FIELD.equals(category))
+ fIncrementalFindTarget.setStatusField(field);
}
/**
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IncrementalFindTarget.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IncrementalFindTarget.java
index d613e9c59..717ab8952 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IncrementalFindTarget.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/IncrementalFindTarget.java
@@ -210,8 +210,6 @@ class IncrementalFindTarget implements IFindReplaceTarget, IFindReplaceTargetExt
fTextViewer= viewer;
fStatusLine= manager;
fTarget= viewer.getFindReplaceTarget();
- fStatusField= (IStatusField)fStatusLine.find(ITextEditorActionConstants.STATUS_CATEGORY_FIND_FIELD);
- fIsStatusFieldExtension= fStatusField instanceof IStatusFieldExtension;
}
/*
@@ -759,4 +757,15 @@ class IncrementalFindTarget implements IFindReplaceTarget, IFindReplaceTargetExt
if (!fSearching && !ignore)
leave();
}
+
+ /**
+ * Sets the find status field for this incremental find target.
+ *
+ * @param field
+ * @since 3.0
+ */
+ void setStatusField(IStatusField statusField) {
+ fStatusField= statusField;
+ fIsStatusFieldExtension= fStatusField instanceof IStatusFieldExtension;
+ }
}

Back to the top