blob: b698707f6d7d3eb2e0137f88f52a42a4f2d6dd6b [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.query;
import org.eclipse.equinox.internal.provisional.p2.metadata.IInstallableUnit;
import org.eclipse.equinox.internal.provisional.p2.query.IQueryable;
import org.eclipse.equinox.internal.provisional.p2.ui.model.RollbackProfileElement;
import org.eclipse.equinox.internal.provisional.p2.ui.policy.IQueryProvider;
/**
* Collector that examines available IU's and wraps them in an
* element representing either a category an IU.
*
* @since 3.4
*/
public class RollbackIUCollector extends AvailableIUCollector {
public RollbackIUCollector(IQueryProvider queryProvider, IQueryable queryable, QueryContext queryContext) {
super(queryProvider, queryable, queryContext, false);
}
protected Object makeDefaultElement(IInstallableUnit iu) {
return new RollbackProfileElement(iu);
}
}