Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hotzan2012-02-22 10:23:34 +0000
committerVolker Hotzan2012-02-22 10:23:34 +0000
commit68edf5eb8fc6f766e43da3d54e3d9155a8c78fa7 (patch)
treecb836794ce0d08f40a00a316d492cd1f64365e34
parentb529f7ad928f71e0f398afc416c7f3b2e83ba24c (diff)
downloadorg.eclipse.jubula.core-68edf5eb8fc6f766e43da3d54e3d9155a8c78fa7.tar.gz
org.eclipse.jubula.core-68edf5eb8fc6f766e43da3d54e3d9155a8c78fa7.tar.xz
org.eclipse.jubula.core-68edf5eb8fc6f766e43da3d54e3d9155a8c78fa7.zip
Adds a method that clears The SearchResultView of the Analyze-Plugin after opening a new Project
-rw-r--r--org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/utils/Utils.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/utils/Utils.java b/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/utils/Utils.java
index 0ce2f68ff..4b6d678cd 100644
--- a/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/utils/Utils.java
+++ b/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/utils/Utils.java
@@ -46,6 +46,8 @@ import org.eclipse.jubula.client.ui.views.ITreeViewerContainer;
import org.eclipse.jubula.tools.constants.StringConstants;
import org.eclipse.jubula.tools.messagehandling.MessageIDs;
import org.eclipse.osgi.util.NLS;
+import org.eclipse.search.ui.ISearchQuery;
+import org.eclipse.search.ui.NewSearchUI;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IEditorReference;
import org.eclipse.ui.IViewPart;
@@ -261,11 +263,21 @@ public class Utils {
setTreeViewerInputNull(Constants.TC_BROWSER_ID);
setTreeViewerInputNull(Constants.TS_BROWSER_ID);
setTreeViewerInputNull(Constants.COMPNAMEBROWSER_ID);
+ clearAnalyzeResultPage();
}
});
ded.fireProjectLoadedListener(new NullProgressMonitor());
}
-
+ /**
+ * Clears the ResultPage of the Analyze-Plugin
+ */
+ private static void clearAnalyzeResultPage() {
+
+ ISearchQuery[] querry = NewSearchUI.getQueries();
+ for (int i = 0; i < querry.length; i++) {
+ NewSearchUI.removeQuery(querry[i]);
+ }
+ }
/**
* @param viewID
* the id of the view to set it's tree viewer input to null.

Back to the top