Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErich Gamma2004-04-08 10:10:43 +0000
committerErich Gamma2004-04-08 10:10:43 +0000
commitfa6149f6959010ab7d49002a340ab8051f0cdf86 (patch)
treef9cf4f8771f7d8071c0cb452ca01e226f64f30c3
parent6b06496fa1fbe98256863fa70c96ab429c1f22d0 (diff)
downloadeclipse.platform.text-fa6149f6959010ab7d49002a340ab8051f0cdf86.tar.gz
eclipse.platform.text-fa6149f6959010ab7d49002a340ab8051f0cdf86.tar.xz
eclipse.platform.text-fa6149f6959010ab7d49002a340ab8051f0cdf86.zip
added tooltip to show result action
-rw-r--r--org.eclipse.search/new search/org/eclipse/search2/internal/ui/InternalSearchUI.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/org.eclipse.search/new search/org/eclipse/search2/internal/ui/InternalSearchUI.java b/org.eclipse.search/new search/org/eclipse/search2/internal/ui/InternalSearchUI.java
index beaa12257..fb4584c22 100644
--- a/org.eclipse.search/new search/org/eclipse/search2/internal/ui/InternalSearchUI.java
+++ b/org.eclipse.search/new search/org/eclipse/search2/internal/ui/InternalSearchUI.java
@@ -47,6 +47,16 @@ public class InternalSearchUI {
public static final Object FAMILY_SEARCH = new Object();
+ // TODO revisit once new Jobs view is finalized
+ private final class ShowJobResultAction extends Action {
+ public ShowJobResultAction() {
+ setToolTipText("Show the Search Results");
+ }
+ public void run() {
+ activateSearchView();
+ }
+ }
+
private class SearchJobRecord {
public ISearchQuery fQuery;
public Job fJob;
@@ -157,11 +167,7 @@ public class InternalSearchUI {
private void configureJob(Job job) {
job.setProperty(new QualifiedName("org.eclipse.ui.workbench.progress", "keep"), Boolean.TRUE);
- job.setProperty(new QualifiedName("org.eclipse.ui.workbench.progress", "goto"), new Action() {
- public void run() {
- activateSearchView();
- }
- });
+ job.setProperty(new QualifiedName("org.eclipse.ui.workbench.progress", "goto"), new ShowJobResultAction());
try {
URL install= SearchPlugin.getDefault().getDescriptor().getInstallURL();
URL icon;

Back to the top