/*******************************************************************************
 * Copyright (c) 2005, 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
 *     SpringSource    - Adapted for use with AJDT
 *******************************************************************************/
package org.eclipse.ajdt.internal.ui.build;

import org.eclipse.ajdt.internal.core.exports.FeatureExportOperation;
import org.eclipse.ajdt.internal.core.exports.ProductExportOperation;
import org.eclipse.pde.internal.core.exports.FeatureExportInfo;
import org.eclipse.pde.internal.core.iproduct.IProduct;
import org.eclipse.pde.internal.core.iproduct.IProductModel;
import org.eclipse.pde.internal.ui.PDEUIMessages;

public class ProductExportJob extends FeatureExportJob {

	private IProduct fProduct;
	private String fRoot;

	public ProductExportJob(FeatureExportInfo info, IProductModel model, String productRoot) {
		super(info, PDEUIMessages.ProductExportJob_name);
		fProduct = model.getProduct();
		fRoot = productRoot;
	}

	protected FeatureExportOperation createOperation() {
		return new ProductExportOperation(fInfo, fProduct, fRoot);
	}

}
