Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2002-09-25 16:03:26 +0000
committerDani Megert2002-09-25 16:03:26 +0000
commit62b448f5c95335f050096e199b9c8b2060aa297a (patch)
tree11775a47a24d14345626a8d5fc2a564be56020ae
parentf588bae6bf7ff02a6adaf23d425997c645476340 (diff)
downloadeclipse.platform.text-62b448f5c95335f050096e199b9c8b2060aa297a.tar.gz
eclipse.platform.text-62b448f5c95335f050096e199b9c8b2060aa297a.tar.xz
eclipse.platform.text-62b448f5c95335f050096e199b9c8b2060aa297a.zip
Adapted to new API
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/util/ListDialog.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/util/ListDialog.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/util/ListDialog.java
index d2ed52440..5004d2601 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/util/ListDialog.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/util/ListDialog.java
@@ -4,6 +4,8 @@
*/
package org.eclipse.search.internal.ui.util;
+import java.util.List;
+
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
@@ -80,8 +82,9 @@ public class ListDialog extends SelectionDialog {
});
fViewer.setLabelProvider(fLabelProvider);
fViewer.setInput(fInput);
- if (getInitialSelections() != null)
- fViewer.setSelection(new StructuredSelection(getInitialSelections()));
+ List initialSelection= getInitialElementSelections();
+ if (initialSelection != null)
+ fViewer.setSelection(new StructuredSelection(initialSelection));
GridData gd= new GridData(GridData.FILL_BOTH);
gd.heightHint= convertHeightInCharsToPixels(15);
gd.widthHint= convertWidthInCharsToPixels(WIDTH_IN_CHARACTERS);

Back to the top