Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2011-04-10 16:00:29 -0400
committerPascal Rapicault2011-04-10 16:00:29 -0400
commit7d1dbe4c14524f1ee062589fb209bbcbc4c10b7c (patch)
tree03def82c7eda8a4f72896f61b20c1e71ca2e2aca
parente05032a79c2ee44df55f9f9f82e41017be0651c8 (diff)
downloadrt.equinox.p2-7d1dbe4c14524f1ee062589fb209bbcbc4c10b7c.tar.gz
rt.equinox.p2-7d1dbe4c14524f1ee062589fb209bbcbc4c10b7c.tar.xz
rt.equinox.p2-7d1dbe4c14524f1ee062589fb209bbcbc4c10b7c.zip
cleanups
-rwxr-xr-xbundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/ImportExportImpl.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/ImportExportImpl.java b/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/ImportExportImpl.java
index e421e6f8b..8b72bc642 100755
--- a/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/ImportExportImpl.java
+++ b/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/ImportExportImpl.java
@@ -24,6 +24,7 @@ import org.eclipse.equinox.p2.metadata.IInstallableUnit;
import org.eclipse.equinox.p2.metadata.VersionRange;
import org.eclipse.equinox.p2.query.IQueryResult;
import org.eclipse.equinox.p2.query.QueryUtil;
+import org.eclipse.equinox.p2.repository.IRepositoryManager;
import org.eclipse.equinox.p2.repository.metadata.IMetadataRepository;
import org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager;
import org.eclipse.osgi.util.NLS;
@@ -36,12 +37,12 @@ public class ImportExportImpl implements P2ImportExport {
private IProvisioningAgent agent = null;
- public void bind(IProvisioningAgent agent) {
- this.agent = agent;
+ public void bind(IProvisioningAgent agt) {
+ this.agent = agt;
}
- public void unbind(IProvisioningAgent agent) {
- if (this.agent == agent) {
+ public void unbind(IProvisioningAgent agt) {
+ if (this.agent == agt) {
this.agent = null;
}
}
@@ -49,7 +50,7 @@ public class ImportExportImpl implements P2ImportExport {
public List<IUDetail> importP2F(InputStream input) throws IOException {
P2FParser parser = new P2FParser(Platform.getBundle(Constants.Bundle_ID).getBundleContext(), Constants.Bundle_ID);
parser.parse(input);
- return parser.getFeatures();
+ return parser.getIUs();
}
public IStatus exportP2F(OutputStream output, IInstallableUnit[] ius, IProgressMonitor monitor) {
@@ -57,7 +58,7 @@ public class ImportExportImpl implements P2ImportExport {
monitor = new NullProgressMonitor();
SubMonitor subMonitor = SubMonitor.convert(monitor, Messages.Replicator_ExportJobName, 1000);
IMetadataRepositoryManager repoManager = (IMetadataRepositoryManager) agent.getService(IMetadataRepositoryManager.SERVICE_NAME);
- URI[] uris = repoManager.getKnownRepositories(IMetadataRepositoryManager.REPOSITORIES_ALL);
+ URI[] uris = repoManager.getKnownRepositories(IRepositoryManager.REPOSITORIES_ALL);
Arrays.sort(uris, new Comparator<URI>() {
public int compare(URI o1, URI o2) {
String scheme1 = o1.getScheme();

Back to the top