Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2013-07-04 05:25:48 -0400
committerTobias Schwarz2013-07-04 05:25:48 -0400
commit410ba38cbca8edea5a734ff86bca80239fd980b2 (patch)
treecce186c619dcf2c042fbb4263a48fe354165b322 /target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src
parent02629e28cb4af2650160ee0d3699ed880ba372a7 (diff)
downloadorg.eclipse.tcf-410ba38cbca8edea5a734ff86bca80239fd980b2.tar.gz
org.eclipse.tcf-410ba38cbca8edea5a734ff86bca80239fd980b2.tar.xz
org.eclipse.tcf-410ba38cbca8edea5a734ff86bca80239fd980b2.zip
Target Explorer: move context selector out of launch plugins
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java
index 51ef796e7..a4880a209 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/filetransfer/FileTransferItem.java
@@ -28,10 +28,19 @@ public class FileTransferItem extends PropertiesContainer implements IFileTransf
setProperty(PROPERTY_DIRECTION, HOST_TO_TARGET);
}
+ public FileTransferItem(IPath fromHost, boolean enabled) {
+ this();
+ if (fromHost != null)
+ setProperty(PROPERTY_HOST, fromHost.toPortableString());
+ setProperty(PROPERTY_ENABLED, enabled);
+ }
+
public FileTransferItem(IPath fromHost, IPath toTarget) {
this();
- setProperty(PROPERTY_HOST, fromHost.toPortableString());
- setProperty(PROPERTY_TARGET, toTarget.toPortableString());
+ if (fromHost != null)
+ setProperty(PROPERTY_HOST, fromHost.toPortableString());
+ if (toTarget != null)
+ setProperty(PROPERTY_TARGET, toTarget.toPortableString());
}
/* (non-Javadoc)

Back to the top