Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornitind2008-04-10 05:55:07 +0000
committernitind2008-04-10 05:55:07 +0000
commit461ea7fb354287f99cd90db5ca6ddd4f0e8f75d2 (patch)
treefa20cd83a4128e5def415231bc504dd36592d45b /bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java
parent88354ad8ab209c38a5df239824ad630ceb8cd462 (diff)
downloadwebtools.sourceediting-461ea7fb354287f99cd90db5ca6ddd4f0e8f75d2.tar.gz
webtools.sourceediting-461ea7fb354287f99cd90db5ca6ddd4f0e8f75d2.tar.xz
webtools.sourceediting-461ea7fb354287f99cd90db5ca6ddd4f0e8f75d2.zip
[210481] Impossible to read error/warning description in status bar
Diffstat (limited to 'bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java')
-rw-r--r--bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java
index ca6fc96e97..db45945c16 100644
--- a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java
+++ b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/StructuredTextEditor.java
@@ -66,6 +66,7 @@ import org.eclipse.jface.text.TextSelection;
import org.eclipse.jface.text.contentassist.ContentAssistant;
import org.eclipse.jface.text.contentassist.IContentAssistant;
import org.eclipse.jface.text.information.InformationPresenter;
+import org.eclipse.jface.text.source.Annotation;
import org.eclipse.jface.text.source.DefaultCharacterPairMatcher;
import org.eclipse.jface.text.source.ICharacterPairMatcher;
import org.eclipse.jface.text.source.ISourceViewer;
@@ -1097,6 +1098,8 @@ public class StructuredTextEditor extends TextEditor {
private ILabelProvider fStatusLineLabelProvider;
+ private boolean fSelectionChangedFromGoto = false;
+
/**
* Creates a new Structured Text Editor.
*/
@@ -3349,8 +3352,21 @@ public class StructuredTextEditor extends TextEditor {
}
}
}
+
+ public Annotation gotoAnnotation(boolean forward) {
+ Annotation result = super.gotoAnnotation(forward);
+ if(result != null)
+ fSelectionChangedFromGoto = true;
+ return result;
+ }
void updateStatusLine(ISelection selection) {
+ // Bug 210481 - Don't update the status line if the selection
+ // was caused by go to navigation
+ if(fSelectionChangedFromGoto) {
+ fSelectionChangedFromGoto = false;
+ return;
+ }
IStatusLineManager statusLineManager = getEditorSite().getActionBars().getStatusLineManager();
if (fStatusLineLabelProvider != null && statusLineManager != null) {
String text = null;

Back to the top