Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Croquette2017-06-01 13:54:53 +0000
committerOlivier Croquette2017-06-01 14:00:20 +0000
commitcfe815d4ed6c31564fc51f82a74a04b79964bc53 (patch)
tree9212e821e8afad342a7facd6640dca5994626d92
parenta23ed77637c9f88b1049d208e819c6a1a300f33f (diff)
downloadorg.eclipse.e4.tools-cfe815d4ed6c31564fc51f82a74a04b79964bc53.tar.gz
org.eclipse.e4.tools-cfe815d4ed6c31564fc51f82a74a04b79964bc53.tar.xz
org.eclipse.e4.tools-cfe815d4ed6c31564fc51f82a74a04b79964bc53.zip
Bug 517643 - Use consistent UI settings for search input in spies
The preference spy is still inconsistent because it uses a FilteredTree. Change-Id: Ifd8e8228b5147a737e937cbca601b207b7234fa4 Signed-off-by: Olivier Croquette <ocroquette@free.fr>
-rw-r--r--bundles/org.eclipse.e4.tools.bundle.spy/src/org/eclipse/e4/tools/bundles/spy/BundleSpyPart.java2
-rw-r--r--bundles/org.eclipse.e4.tools.context.spy/src/org/eclipse/e4/tools/context/spy/ContextSpyPart.java2
-rw-r--r--bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.e4.tools.bundle.spy/src/org/eclipse/e4/tools/bundles/spy/BundleSpyPart.java b/bundles/org.eclipse.e4.tools.bundle.spy/src/org/eclipse/e4/tools/bundles/spy/BundleSpyPart.java
index 82d7c5f9..0801b19f 100644
--- a/bundles/org.eclipse.e4.tools.bundle.spy/src/org/eclipse/e4/tools/bundles/spy/BundleSpyPart.java
+++ b/bundles/org.eclipse.e4.tools.bundle.spy/src/org/eclipse/e4/tools/bundles/spy/BundleSpyPart.java
@@ -109,7 +109,7 @@ public class BundleSpyPart {
}
});
- filterText = new Text(comp, SWT.SEARCH | SWT.ICON_SEARCH);
+ filterText = new Text(comp, SWT.SEARCH | SWT.ICON_SEARCH | SWT.ICON_CANCEL);
GridDataFactory.fillDefaults().hint(200, SWT.DEFAULT).applyTo(filterText);
filterText.setMessage("Search data");
filterText.setToolTipText(
diff --git a/bundles/org.eclipse.e4.tools.context.spy/src/org/eclipse/e4/tools/context/spy/ContextSpyPart.java b/bundles/org.eclipse.e4.tools.context.spy/src/org/eclipse/e4/tools/context/spy/ContextSpyPart.java
index 67462631..f4bfbda3 100644
--- a/bundles/org.eclipse.e4.tools.context.spy/src/org/eclipse/e4/tools/context/spy/ContextSpyPart.java
+++ b/bundles/org.eclipse.e4.tools.context.spy/src/org/eclipse/e4/tools/context/spy/ContextSpyPart.java
@@ -128,7 +128,7 @@ public class ContextSpyPart {
});
- filterText = new Text(comp, SWT.SEARCH | SWT.ICON_SEARCH);
+ filterText = new Text(comp, SWT.SEARCH | SWT.ICON_SEARCH | SWT.ICON_CANCEL);
GridDataFactory.fillDefaults().hint(200, SWT.DEFAULT).applyTo(filterText);
filterText.setMessage("Search data");
filterText.setToolTipText("Highlight the contexts where the contained objects contains this string pattern.\n"
diff --git a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java
index 4ee955cb..e78fcba4 100644
--- a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java
+++ b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java
@@ -418,7 +418,7 @@ public class CssSpyPart {
Composite top = new Composite(outer, SWT.NONE);
GridLayoutFactory.swtDefaults().numColumns(3).applyTo(top);
- cssSearchBox = new Text(top, SWT.BORDER | SWT.SEARCH | SWT.ICON_SEARCH | SWT.ICON_CANCEL);
+ cssSearchBox = new Text(top, SWT.SEARCH | SWT.ICON_SEARCH | SWT.ICON_CANCEL);
cssSearchBox.setMessage("CSS Selector");
cssSearchBox.setToolTipText("Highlight matching widgets");
GridDataFactory.fillDefaults().grab(true, false).applyTo(cssSearchBox);

Back to the top