|
Lines 17-27
Link Here
|
| 17 |
import java.util.SortedSet; |
17 |
import java.util.SortedSet; |
| 18 |
import java.util.TreeSet; |
18 |
import java.util.TreeSet; |
| 19 |
|
19 |
|
| 20 |
import org.eclipse.equinox.internal.provisional.p2.metadata.query.Collector; |
|
|
| 21 |
import org.eclipse.equinox.internal.provisional.p2.metadata.query.InstallableUnitQuery; |
20 |
import org.eclipse.equinox.internal.provisional.p2.metadata.query.InstallableUnitQuery; |
| 22 |
import org.eclipse.equinox.p2.engine.IProfile; |
21 |
import org.eclipse.equinox.p2.engine.IProfile; |
| 23 |
import org.eclipse.equinox.p2.engine.IProfileRegistry; |
22 |
import org.eclipse.equinox.p2.engine.IProfileRegistry; |
| 24 |
import org.eclipse.equinox.p2.metadata.IInstallableUnit; |
23 |
import org.eclipse.equinox.p2.metadata.IInstallableUnit; |
|
|
24 |
import org.eclipse.equinox.p2.metadata.query.IQueryResult; |
| 25 |
import org.eclipse.osgi.service.resolver.BundleDescription; |
25 |
import org.eclipse.osgi.service.resolver.BundleDescription; |
| 26 |
import org.eclipse.osgi.service.resolver.PlatformAdmin; |
26 |
import org.eclipse.osgi.service.resolver.PlatformAdmin; |
| 27 |
import org.eclipse.osgi.service.resolver.State; |
27 |
import org.eclipse.osgi.service.resolver.State; |
|
Lines 68-76
Link Here
|
| 68 |
// Since this code is only called in the Help -> About -> Configuration Details case we |
68 |
// Since this code is only called in the Help -> About -> Configuration Details case we |
| 69 |
// won't worry too much about performance here and we will sort the query results |
69 |
// won't worry too much about performance here and we will sort the query results |
| 70 |
// afterwards, but before printing them out. |
70 |
// afterwards, but before printing them out. |
| 71 |
Collector collector = profile.available(InstallableUnitQuery.ANY, null); |
71 |
IQueryResult queryResult = profile.available(InstallableUnitQuery.ANY, null); |
| 72 |
SortedSet sorted = new TreeSet(); |
72 |
SortedSet sorted = new TreeSet(); |
| 73 |
for (Iterator iter = collector.iterator(); iter.hasNext();) { |
73 |
for (Iterator iter = queryResult.iterator(); iter.hasNext();) { |
| 74 |
IInstallableUnit unit = (IInstallableUnit) iter.next(); |
74 |
IInstallableUnit unit = (IInstallableUnit) iter.next(); |
| 75 |
sorted.add(NLS.bind(IDEWorkbenchMessages.ConfigurationLogUpdateSection_IU, unit.getId(), unit.getVersion())); |
75 |
sorted.add(NLS.bind(IDEWorkbenchMessages.ConfigurationLogUpdateSection_IU, unit.getId(), unit.getVersion())); |
| 76 |
} |
76 |
} |