Package org.springsource.ide.eclipse.commons.frameworks.core.internal.plugins

Examples of org.springsource.ide.eclipse.commons.frameworks.core.internal.plugins.Plugin


    ArrayList<Plugin> result = new ArrayList<Plugin>();
    for (Bundle bundle : filteredSearchResults) {
      org.osgi.framework.Bundle installedBundle = installedBundleBySymbolicName.get(bundle.getSymbolicName());
     
      // create add-on for each bundle
      Plugin plugin = new Plugin(bundle.getSymbolicName());
     
      // add all available versions
      List<BundleVersion> versions = BundleVersion.orderByVersion(bundle.getVersions());
      for (BundleVersion version : versions) {
        RooAddOnVersion addOnVersion = new RooAddOnVersion(bundle,
            version);
        addOnVersion.setTitle(version.getPresentationName());
        addOnVersion.setVersion(version.getVersion());
        addOnVersion.setDescription(version.getDescription());
        addOnVersion.setRuntimeVersion(version.getRooVersion());
        // name needs to match between bundle and version
        addOnVersion.setName(plugin.getName());
       
        if (installedBundle != null && installedBundle.getVersion().toString().equals(version.getVersion())) {
          addOnVersion.setInstalled(true);
        }
       
        plugin.addVersion(addOnVersion);
        plugin.setLatestReleasedVersion(addOnVersion);
      }
     
      result.add(plugin);
    }
    return result;
View Full Code Here

TOP

Related Classes of org.springsource.ide.eclipse.commons.frameworks.core.internal.plugins.Plugin

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.