Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-12-12 22:11:50 +0000
committerslewis2007-12-12 22:11:50 +0000
commit6ac046056bd543d408e10b2eb1e48101e7942808 (patch)
treed0a3756129ff24219a7cdcdaa6d84558a148c134 /providers
parent0b99753c662fefd01f7547432ae11723755de1bf (diff)
downloadorg.eclipse.ecf-6ac046056bd543d408e10b2eb1e48101e7942808.tar.gz
org.eclipse.ecf-6ac046056bd543d408e10b2eb1e48101e7942808.tar.xz
org.eclipse.ecf-6ac046056bd543d408e10b2eb1e48101e7942808.zip
Additions to file transfer API...specifically addition of two extension points retrieveFileTransferProtocolFactory, and sendFileTransferProtocolFactory for file retrieve, and send, respectively. Also added documentation to online docs.
Diffstat (limited to 'providers')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.xmpp.ui/META-INF/MANIFEST.MF2
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.xmpp.ui/src/org/eclipse/ecf/internal/provider/xmpp/ui/XMPPCompoundContributionItem.java6
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.xmpp.ui/src/org/eclipse/ecf/internal/provider/xmpp/ui/wizards/XMPPConnectWizard.java6
3 files changed, 7 insertions, 7 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.xmpp.ui/META-INF/MANIFEST.MF b/providers/bundles/org.eclipse.ecf.provider.xmpp.ui/META-INF/MANIFEST.MF
index 5b55b6974..8936c5712 100644
--- a/providers/bundles/org.eclipse.ecf.provider.xmpp.ui/META-INF/MANIFEST.MF
+++ b/providers/bundles/org.eclipse.ecf.provider.xmpp.ui/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.ecf.provider.xmpp.ui;singleton:=true
-Bundle-Version: 1.2.0.qualifier
+Bundle-Version: 1.3.0.qualifier
Bundle-Activator: org.eclipse.ecf.internal.provider.xmpp.ui.Activator
Bundle-Vendor: %providerName
Bundle-Localization: plugin
diff --git a/providers/bundles/org.eclipse.ecf.provider.xmpp.ui/src/org/eclipse/ecf/internal/provider/xmpp/ui/XMPPCompoundContributionItem.java b/providers/bundles/org.eclipse.ecf.provider.xmpp.ui/src/org/eclipse/ecf/internal/provider/xmpp/ui/XMPPCompoundContributionItem.java
index 30d33faa6..4c5c7d91b 100644
--- a/providers/bundles/org.eclipse.ecf.provider.xmpp.ui/src/org/eclipse/ecf/internal/provider/xmpp/ui/XMPPCompoundContributionItem.java
+++ b/providers/bundles/org.eclipse.ecf.provider.xmpp.ui/src/org/eclipse/ecf/internal/provider/xmpp/ui/XMPPCompoundContributionItem.java
@@ -15,7 +15,7 @@ import java.io.File;
import org.eclipse.ecf.core.IContainer;
import org.eclipse.ecf.core.identity.ID;
import org.eclipse.ecf.filetransfer.IFileTransferListener;
-import org.eclipse.ecf.filetransfer.IOutgoingFileTransferContainerAdapter;
+import org.eclipse.ecf.filetransfer.ISendFileTransferContainerAdapter;
import org.eclipse.ecf.filetransfer.events.IFileTransferEvent;
import org.eclipse.ecf.filetransfer.events.IOutgoingFileTransferResponseEvent;
import org.eclipse.ecf.filetransfer.identity.FileIDFactory;
@@ -51,7 +51,7 @@ public class XMPPCompoundContributionItem extends AbstractRosterEntryContributio
final IContainer container = getContainerForRosterEntry(entry);
if (container instanceof XMPPContainer) {
final IContributionItem[] contributions = new IContributionItem[1];
- final IOutgoingFileTransferContainerAdapter ioftca = (IOutgoingFileTransferContainerAdapter) container.getAdapter(IOutgoingFileTransferContainerAdapter.class);
+ final ISendFileTransferContainerAdapter ioftca = (ISendFileTransferContainerAdapter) container.getAdapter(ISendFileTransferContainerAdapter.class);
if (!(ioftca != null && isAvailable(entry)))
return EMPTY_ARRAY;
final IAction fileSendAction = new Action() {
@@ -68,7 +68,7 @@ public class XMPPCompoundContributionItem extends AbstractRosterEntryContributio
}
}
- private void sendFileToTarget(IOutgoingFileTransferContainerAdapter fileTransfer, final ID targetID) {
+ private void sendFileToTarget(ISendFileTransferContainerAdapter fileTransfer, final ID targetID) {
final Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
final FileDialog fd = new FileDialog(shell, SWT.OPEN);
// XXX this should be some default path set by preferences
diff --git a/providers/bundles/org.eclipse.ecf.provider.xmpp.ui/src/org/eclipse/ecf/internal/provider/xmpp/ui/wizards/XMPPConnectWizard.java b/providers/bundles/org.eclipse.ecf.provider.xmpp.ui/src/org/eclipse/ecf/internal/provider/xmpp/ui/wizards/XMPPConnectWizard.java
index 999aeb220..dade5a361 100644
--- a/providers/bundles/org.eclipse.ecf.provider.xmpp.ui/src/org/eclipse/ecf/internal/provider/xmpp/ui/wizards/XMPPConnectWizard.java
+++ b/providers/bundles/org.eclipse.ecf.provider.xmpp.ui/src/org/eclipse/ecf/internal/provider/xmpp/ui/wizards/XMPPConnectWizard.java
@@ -26,7 +26,7 @@ import org.eclipse.ecf.core.security.IConnectContext;
import org.eclipse.ecf.filetransfer.IFileTransferInfo;
import org.eclipse.ecf.filetransfer.IFileTransferListener;
import org.eclipse.ecf.filetransfer.IIncomingFileTransferRequestListener;
-import org.eclipse.ecf.filetransfer.IOutgoingFileTransferContainerAdapter;
+import org.eclipse.ecf.filetransfer.ISendFileTransferContainerAdapter;
import org.eclipse.ecf.filetransfer.events.IFileTransferEvent;
import org.eclipse.ecf.filetransfer.events.IFileTransferRequestEvent;
import org.eclipse.ecf.filetransfer.events.IIncomingFileTransferReceiveDoneEvent;
@@ -286,8 +286,8 @@ public class XMPPConnectWizard extends Wizard implements IConnectWizard {
}
});
- IOutgoingFileTransferContainerAdapter ioftca = (IOutgoingFileTransferContainerAdapter) container
- .getAdapter(IOutgoingFileTransferContainerAdapter.class);
+ ISendFileTransferContainerAdapter ioftca = (ISendFileTransferContainerAdapter) container
+ .getAdapter(ISendFileTransferContainerAdapter.class);
ioftca.addListener(requestListener);
// Connect
new AsynchContainerConnectAction(container, targetID, connectContext, null, new Runnable() {

Back to the top