| /******************************************************************************* |
| * Copyright (c) 2007 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 |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.equinox.p2.ui.model; |
| |
| import org.eclipse.equinox.p2.metadata.IInstallableUnit; |
| |
| /** |
| * Element wrapper class for IU's that are available for installation. |
| * Used instead of the plain IU when additional information such as sizing |
| * info is necessary. |
| * |
| * @since 3.4 |
| */ |
| public class AvailableUpdateElement extends AvailableIUElement { |
| |
| IInstallableUnit iuToBeUpdated; |
| |
| public AvailableUpdateElement(IInstallableUnit iu, long size, IInstallableUnit iuToBeUpdated) { |
| super(iu, size); |
| this.iuToBeUpdated = iuToBeUpdated; |
| } |
| |
| public IInstallableUnit getIUToBeUpdated() { |
| return iuToBeUpdated; |
| } |
| } |