Package bndtools.wizards.repo

Examples of bndtools.wizards.repo.RepoBundleSelectionWizard


    private void doAddBundle() {
        try {
            Project project = getProject();

            RepoBundleSelectionWizard wizard = new RepoBundleSelectionWizard(project, new ArrayList<VersionedClause>(), DependencyPhase.Run);
            wizard.setSelectionPageTitle("Add Bundle Requirement");
            WizardDialog dialog = new WizardDialog(getSection().getShell(), wizard);

            if (Window.OK == dialog.open()) {
                List<VersionedClause> result = wizard.getSelectedBundles();
                List<Requirement> adding = new ArrayList<Requirement>(result.size());
                for (VersionedClause bundle : result) {
                    Filter filter = new SimpleFilter(IdentityNamespace.IDENTITY_NAMESPACE, bundle.getName());

                    String versionRange = bundle.getVersionRange();
View Full Code Here


    }

    private void doAdd() {
        Project project = getProject();
        try {
            RepoBundleSelectionWizard wizard = createBundleSelectionWizard(project, getBundles());
            if (wizard != null) {
                WizardDialog dialog = new WizardDialog(getSection().getShell(), wizard);
                if (dialog.open() == Window.OK) {
                    setBundles(wizard.getSelectedBundles());
                    markDirty();
                }
            }
        } catch (Exception e) {
            ErrorDialog.openError(getSection().getShell(), "Error", null, new Status(IStatus.ERROR, Plugin.PLUGIN_ID, 0, "Error opening bundle resolver wizard.", e));
View Full Code Here

    protected abstract List<VersionedClause> loadFromModel(BndEditModel model);

    protected final RepoBundleSelectionWizard createBundleSelectionWizard(Project project, List<VersionedClause> bundles) throws Exception {
        // Need to get the project from the input model...
        RepoBundleSelectionWizard wizard = new RepoBundleSelectionWizard(project, bundles, phase);
        setSelectionWizardTitleAndMessage(wizard);

        return wizard;
    }
View Full Code Here

TOP

Related Classes of bndtools.wizards.repo.RepoBundleSelectionWizard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.