Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2002-09-26 07:56:31 +0000
committerDani Megert2002-09-26 07:56:31 +0000
commit242e00a5ae755ed9bdd271afaf656eedea2e8ecd (patch)
tree8568425f0a1ab6ae2e97dc5a49abdebcae1964b3
parent8e8faaac169b7708ba8fc83d41bd0850173d8784 (diff)
downloadeclipse.platform.text-242e00a5ae755ed9bdd271afaf656eedea2e8ecd.tar.gz
eclipse.platform.text-242e00a5ae755ed9bdd271afaf656eedea2e8ecd.tar.xz
eclipse.platform.text-242e00a5ae755ed9bdd271afaf656eedea2e8ecd.zip
Cleaned up code
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchActionGroup.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchActionGroup.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchActionGroup.java
index dbdcbed5f..8da2e5140 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchActionGroup.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchActionGroup.java
@@ -64,9 +64,11 @@ class TextSearchActionGroup extends ActionGroup {
fOpenPropertiesDialog= new PropertyDialogAction(site.getShell(), fSelectionProvider);
ISelection selection= fSelectionProvider.getSelection();
- // XXXX: is this test needed?
+
if (selection instanceof IStructuredSelection)
fOpenPropertiesDialog.selectionChanged((IStructuredSelection)selection);
+ else
+ fOpenPropertiesDialog.selectionChanged(selection);
}
public void fillContextMenu(IMenuManager menu) {

Back to the top