diff options
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ExportProjectSetLocationPage.java')
-rw-r--r-- | bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ExportProjectSetLocationPage.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ExportProjectSetLocationPage.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ExportProjectSetLocationPage.java index 1165f337f..260b79743 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ExportProjectSetLocationPage.java +++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ExportProjectSetLocationPage.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2017 IBM Corporation and others. + * Copyright (c) 2006, 2018 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -314,7 +314,7 @@ public class ExportProjectSetLocationPage extends TeamWizardPage { } private void getSelectedContainer() { - Object obj = ((IStructuredSelection) wsTreeViewer.getSelection()).getFirstElement(); + Object obj = wsTreeViewer.getStructuredSelection().getFirstElement(); if (obj instanceof IContainer) wsContainer = (IContainer) obj; @@ -339,7 +339,7 @@ public class ExportProjectSetLocationPage extends TeamWizardPage { void setupListeners() { wsTreeViewer.addSelectionChangedListener(event -> { - IStructuredSelection s = (IStructuredSelection) event.getSelection(); + IStructuredSelection s = event.getStructuredSelection(); Object obj = s.getFirstElement(); if (obj != null) { |