diff options
author | slewis | 2008-05-14 05:55:03 +0000 |
---|---|---|
committer | slewis | 2008-05-14 05:55:03 +0000 |
commit | 17df8bf37511e8a73f07e4a242b3db258b380e37 (patch) | |
tree | d2b59e6017c44e059c98bb75860079eff89e6f52 | |
parent | 5311429ca6856e6b8c9e97dcb357d13b5f3c16da (diff) | |
download | org.eclipse.ecf-17df8bf37511e8a73f07e4a242b3db258b380e37.tar.gz org.eclipse.ecf-17df8bf37511e8a73f07e4a242b3db258b380e37.tar.xz org.eclipse.ecf-17df8bf37511e8a73f07e4a242b3db258b380e37.zip |
Fix for 231969v20080514-1334
2 files changed, 7 insertions, 9 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.bittorrent/plugin.xml b/providers/bundles/org.eclipse.ecf.provider.bittorrent/plugin.xml index ee8dd84ca..6852f7d32 100644 --- a/providers/bundles/org.eclipse.ecf.provider.bittorrent/plugin.xml +++ b/providers/bundles/org.eclipse.ecf.provider.bittorrent/plugin.xml @@ -12,7 +12,7 @@ point="org.eclipse.ecf.identity.namespace"> <namespace class="org.eclipse.ecf.internal.provider.bittorrent.TorrentNamespace" - name="ecf.bittorrent"/> + name="ecf.namespace.bittorrent"/> </extension> <extension point="org.eclipse.ecf.provider.filetransfer.retrieveFileTransferProtocolFactory"> diff --git a/providers/bundles/org.eclipse.ecf.provider.bittorrent/src/org/eclipse/ecf/internal/provider/bittorrent/BitTorrentProviderPlugin.java b/providers/bundles/org.eclipse.ecf.provider.bittorrent/src/org/eclipse/ecf/internal/provider/bittorrent/BitTorrentProviderPlugin.java index 6314007f3..dd734e867 100644 --- a/providers/bundles/org.eclipse.ecf.provider.bittorrent/src/org/eclipse/ecf/internal/provider/bittorrent/BitTorrentProviderPlugin.java +++ b/providers/bundles/org.eclipse.ecf.provider.bittorrent/src/org/eclipse/ecf/internal/provider/bittorrent/BitTorrentProviderPlugin.java @@ -28,7 +28,7 @@ public final class BitTorrentProviderPlugin implements BundleActivator { static final String CONTAINER_ID = "ecf.filetransfer.bittorrent"; //$NON-NLS-1$ - static final String NAMESPACE_ID = "ecf.bittorrent"; //$NON-NLS-1$ + static final String NAMESPACE_ID = "ecf.namespace.bittorrent"; //$NON-NLS-1$ private BundleContext context = null; @@ -36,21 +36,19 @@ public final class BitTorrentProviderPlugin implements BundleActivator { Filter filter = null; try { filter = context.createFilter(Location.INSTANCE_FILTER); - } catch (InvalidSyntaxException e) { + } catch (final InvalidSyntaxException e) { // ignore this. It should never happen as we have tested the above // format. } - ServiceTracker instanceLocationTracker = new ServiceTracker(context, - filter, null); + final ServiceTracker instanceLocationTracker = new ServiceTracker(context, filter, null); instanceLocationTracker.open(); - Location l = (Location) instanceLocationTracker.getService(); + final Location l = (Location) instanceLocationTracker.getService(); instanceLocationTracker.close(); if (l == null) return null; - Path path = new Path(l.getURL().getPath()); - return path.append(F_META_AREA).append(F_PLUGIN_DATA) - .append(context.getBundle().getSymbolicName()).toFile(); + final Path path = new Path(l.getURL().getPath()); + return path.append(F_META_AREA).append(F_PLUGIN_DATA).append(context.getBundle().getSymbolicName()).toFile(); } public void start(BundleContext context) throws Exception { |