blob: 7a672c5ff8a9fa2b0e82faf184843645fa1c17a6 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2008 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.internal.provisional.p2.ui.model;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.equinox.internal.provisional.p2.metadata.IInstallableUnit;
/**
* Interface for elements that represent IU's.
*
* @since 3.4
*/
public interface IUElement {
/**
* Indicates that the size is currently unknown
*/
public static final long SIZE_UNKNOWN = -1L;
/**
* Indicates that the size is unavailable (it was
* unknown but could not be computed.)
*/
public static final long SIZE_UNAVAILABLE = -2L;
public IInstallableUnit getIU();
public boolean shouldShowSize();
public boolean shouldShowVersion();
public long getSize();
public void computeSize(IProgressMonitor monitor);
}