Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornitind2010-04-15 02:14:02 +0000
committernitind2010-04-15 02:14:02 +0000
commitc4601a6a3af22c286c443bee0e63d8aac60efddc (patch)
treec02dac324e583562b804b4666b0d1c0089c7e429 /bundles/org.eclipse.wst.html.ui
parent828352d317eaa3d71b70fde616183d0c9d8847cf (diff)
downloadwebtools.sourceediting-c4601a6a3af22c286c443bee0e63d8aac60efddc.tar.gz
webtools.sourceediting-c4601a6a3af22c286c443bee0e63d8aac60efddc.tar.xz
webtools.sourceediting-c4601a6a3af22c286c443bee0e63d8aac60efddc.zip
[308504] StructuredTextViewer arbitrarily clears another editor's status line
Diffstat (limited to 'bundles/org.eclipse.wst.html.ui')
-rw-r--r--bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/handlers/HTMLFindOccurrencesHandler.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/handlers/HTMLFindOccurrencesHandler.java b/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/handlers/HTMLFindOccurrencesHandler.java
index ef0e9f0651..68cc317bfc 100644
--- a/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/handlers/HTMLFindOccurrencesHandler.java
+++ b/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/handlers/HTMLFindOccurrencesHandler.java
@@ -29,6 +29,7 @@ import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.handlers.HandlerUtil;
import org.eclipse.ui.texteditor.ITextEditor;
import org.eclipse.wst.html.ui.internal.search.HTMLFindOccurrencesProcessor;
+import org.eclipse.wst.sse.ui.StructuredTextEditor;
import org.eclipse.wst.sse.ui.internal.ExtendedConfigurationBuilder;
import org.eclipse.wst.sse.ui.internal.SSEUIMessages;
import org.eclipse.wst.sse.ui.internal.search.FindOccurrencesProcessor;
@@ -70,8 +71,13 @@ public class HTMLFindOccurrencesHandler extends AbstractHandler implements IHand
}
else {
String errorMessage = SSEUIMessages.FindOccurrencesActionProvider_0; //$NON-NLS-1$
- PlatformStatusLineUtil.displayErrorMessage(errorMessage);
- PlatformStatusLineUtil.addOneTimeClearListener();
+ if (textEditor instanceof StructuredTextEditor) {
+ PlatformStatusLineUtil.displayTemporaryErrorMessage(((StructuredTextEditor) textEditor).getTextViewer(), errorMessage);
+ }
+ else {
+ PlatformStatusLineUtil.displayErrorMessage(errorMessage);
+ PlatformStatusLineUtil.addOneTimeClearListener();
+ }
}
return null;
}

Back to the top