Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2006-01-04 17:56:12 +0000
committerDarin Wright2006-01-04 17:56:12 +0000
commitf142fc8a0273d39772d201be1db58a78563526c7 (patch)
tree0be621e42420421e9f4cba62fff41f409252e22b
parent016b27acd68672aa2a9781e24efa6dd169b9e30e (diff)
downloadeclipse.platform.debug-f142fc8a0273d39772d201be1db58a78563526c7.tar.gz
eclipse.platform.debug-f142fc8a0273d39772d201be1db58a78563526c7.tar.xz
eclipse.platform.debug-f142fc8a0273d39772d201be1db58a78563526c7.zip
Bug 122646 - Use IStructuredSelection instead of StructuredSelection
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java
index 40871c222..7f4e21133 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java
@@ -28,7 +28,6 @@ import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.ViewerSorter;
import org.eclipse.swt.SWT;
@@ -145,7 +144,7 @@ public class AddSourceContainerDialog extends TitleAreaDialog {
protected void okPressed() {
//single selection dialog, so take first item in array
//there will always be a selected item since we set it with viewer.setSelection
- ISourceContainerType type = (ISourceContainerType) ((StructuredSelection) fViewer.getSelection()).getFirstElement();
+ ISourceContainerType type = (ISourceContainerType) ((IStructuredSelection) fViewer.getSelection()).getFirstElement();
ISourceContainerBrowser browser = DebugUITools.getSourceContainerBrowser(type.getId());
if (browser != null) {
ISourceContainer[] results = browser.addSourceContainers(getShell(), fDirector);

Back to the top