Package org.eclipse.osgi.service.resolver

Examples of org.eclipse.osgi.service.resolver.BundleDescription


    {
        int size = Platform.getPlatformAdmin().getState().getBundles().length;
        Bundle[] bundles = new Bundle[size];
        for( int i=0; i<size; i++)
        {
            BundleDescription bd = Platform.getPlatformAdmin().getState().getBundles()[i];
            bundles[i] = new Bundle(bd.getSymbolicName(),bd.getSymbolicName(), bd.getSupplier().getName(), bd.getVersion().toString(), null);
            BundleSpecification[] bs = bd.getRequiredBundles();
            List requiredBundles = new ArrayList();
            for( int j=0; j<bs.length; j++)
            {
                requiredBundles.add(getBundleDescription(bs[j]));
            }
View Full Code Here


    // For each IProject the PDE model and schedule the update job
    for (Map.Entry<IProject, Set<IResource>> project : projects.entrySet()) {
      IPluginModelBase model = PDECore.getDefault().getModelManager()
          .findModel(project.getKey());
      BundleDescription description = model.getBundleDescription();
      String symbolicName = description.getSymbolicName();

      // Schedule the job
      OsgiUpdateJob.schedule(symbolicName, Command.REFRESH);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.osgi.service.resolver.BundleDescription

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.