All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bndtools.wizards.repo.RepoBundleSelectionWizard Maven / Gradle / Ivy

The newest version!
package bndtools.wizards.repo;

import java.util.List;

import org.eclipse.jface.wizard.Wizard;

import aQute.bnd.build.model.clauses.VersionedClause;
import bndtools.model.repo.DependencyPhase;

public class RepoBundleSelectionWizard extends Wizard {

	private final RepoBundleSelectionWizardPage selectionPage;

	/**
	 * Create a wizard for editing the specified list of bundles. The supplied
	 * collection will be modified by this wizard.
	 *
	 * @param bundles A mutable collection of bundles.
	 * @throws Exception
	 */
	public RepoBundleSelectionWizard(List bundles, DependencyPhase phase) throws Exception {
		selectionPage = new RepoBundleSelectionWizardPage(phase);
		selectionPage.setSelectedBundles(bundles);
		addPage(selectionPage);
	}

	@Override
	public boolean performFinish() {
		return true;
	}

	public void setSelectionPageTitle(String title) {
		selectionPage.setTitle(title);
	}

	public void setSelectionPageDescription(String description) {
		selectionPage.setDescription(description);
	}

	public List getSelectedBundles() {
		return selectionPage.getSelectedBundles();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy