diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/UpdateWizard.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/UpdateWizard.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/UpdateWizard.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/UpdateWizard.java index c983f8320..ee3c10e24 100644 --- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/UpdateWizard.java +++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/UpdateWizard.java @@ -8,6 +8,7 @@ * Contributors: * IBM Corporation - initial API and implementation * Genuitec, LLC - added license support + * Sonatype, Inc. - ongoing development *******************************************************************************/ package org.eclipse.equinox.internal.p2.ui.dialogs; @@ -31,14 +32,14 @@ public class UpdateWizard extends WizardWithLicenses { boolean skipSelectionsPage = false; IUElementListRoot firstPageRoot; - public static IInstallableUnit[] getIUsToReplace(Object[] elements) { + public static Collection<IInstallableUnit> getIUsToReplace(Object[] elements) { Set<IInstallableUnit> iusToReplace = new HashSet<IInstallableUnit>(); for (int i = 0; i < elements.length; i++) { if (elements[i] instanceof AvailableUpdateElement) { iusToReplace.add(((AvailableUpdateElement) elements[i]).getIUToBeUpdated()); } } - return iusToReplace.toArray(new IInstallableUnit[iusToReplace.size()]); + return iusToReplace; } public static IInstallableUnit[] getReplacementIUs(Object[] elements) { |