Examples of BundleDescriptor


Examples of uk.co.brunella.osgi.bdt.bundle.BundleDescriptor

    actionRemoveBundle = new Action() {
      public void run() {
        ISelection selection = viewer.getSelection();
        TreeObject selectedItem = (TreeObject) ((IStructuredSelection) selection).getFirstElement();
        BundleDescriptor descriptor = (BundleDescriptor) selectedItem.getValue();
        if (MessageDialog.openConfirm(getShell(), "Removing bundle", "Are you sure to remove bundle\n"
            + descriptor.getBundleSymbolicName() + " (" + descriptor.getBundleVersion() + ")")) {
          ProgressMonitorDialog progressDialog = new ProgressMonitorDialog(getShell());
          try {
            progressDialog.run(true, false, new BundleUndeployJob(getRepositoryLocation(selectedItem.getParent()),
                descriptor.getBundleSymbolicName(), descriptor.getBundleVersion()));
            viewer.refresh();
          } catch (InvocationTargetException e) {
            MessageDialog.openError(getShell(), "Add bundle", "Could not remove bundle\n"
                + e.getTargetException().getMessage());
            e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.