diff options
author | Alexander Kurtakov | 2018-04-18 12:33:32 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2018-04-18 12:33:32 +0000 |
commit | b771accd19e5806552c113be35e86e4f8bd9429b (patch) | |
tree | e8fe88ca4f7a7404457c36462380ae710ee64377 /bundles/org.eclipse.jsch.ui/src/org/eclipse | |
parent | 8130327f4416d4b951c1daaa60eceb0b793307b5 (diff) | |
download | eclipse.platform.team-b771accd19e5806552c113be35e86e4f8bd9429b.tar.gz eclipse.platform.team-b771accd19e5806552c113be35e86e4f8bd9429b.tar.xz eclipse.platform.team-b771accd19e5806552c113be35e86e4f8bd9429b.zip |
Bug 533755 - Direct use of IStructuredSelectionI20180420-2000I20180419-2000I20180418-2000
Instead of getSelection and cast.
Touched files have been converted to lambdas and useless @see comments
removed.
Change-Id: I249927f61cab0dfd2a1645b6aee3b0a1cc9760f1
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.jsch.ui/src/org/eclipse')
-rw-r--r-- | bundles/org.eclipse.jsch.ui/src/org/eclipse/jsch/internal/ui/preference/PreferencePage.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.jsch.ui/src/org/eclipse/jsch/internal/ui/preference/PreferencePage.java b/bundles/org.eclipse.jsch.ui/src/org/eclipse/jsch/internal/ui/preference/PreferencePage.java index 2c8359675..ae32af140 100644 --- a/bundles/org.eclipse.jsch.ui/src/org/eclipse/jsch/internal/ui/preference/PreferencePage.java +++ b/bundles/org.eclipse.jsch.ui/src/org/eclipse/jsch/internal/ui/preference/PreferencePage.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2014 IBM Corporation and others. + * Copyright (c) 2000, 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 @@ -1385,7 +1385,7 @@ public class PreferencePage extends org.eclipse.jface.preference.PreferencePage } void removeHostKey(){ - IStructuredSelection selection=(IStructuredSelection)viewer.getSelection(); + IStructuredSelection selection=viewer.getStructuredSelection(); HostKeyRepository hkr=getJSch().getHostKeyRepository(); for(Iterator iterator=selection.iterator(); iterator.hasNext();){ HostKey hostkey=(HostKey)iterator.next(); |