Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2012-10-22 10:34:01 +0000
committerTobias Schwarz2012-10-22 10:34:38 +0000
commit3f6109bedbf34e43ec86e2c6202db8ec7fc697ae (patch)
treee4b2d694eb894171f46d03db105b6162d09f053a /target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/internal
parent12af7faaa3b155d79fded5aa33eab7c25f005946 (diff)
downloadorg.eclipse.tcf-3f6109bedbf34e43ec86e2c6202db8ec7fc697ae.tar.gz
org.eclipse.tcf-3f6109bedbf34e43ec86e2c6202db8ec7fc697ae.tar.xz
org.eclipse.tcf-3f6109bedbf34e43ec86e2c6202db8ec7fc697ae.zip
[Target Explorer] variable delegates and provider für persistence
delegates
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/internal')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/internal/FileTransferItemVariableDelegate.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/internal/FileTransferItemVariableDelegate.java b/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/internal/FileTransferItemVariableDelegate.java
new file mode 100644
index 000000000..12f142e79
--- /dev/null
+++ b/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/internal/FileTransferItemVariableDelegate.java
@@ -0,0 +1,36 @@
+/**
+ * FileTransferItemVariableDelegate.java
+ * Created on 15.10.2012
+ *
+ * Copyright (c) 2012 Wind River Systems, Inc.
+ *
+ * The right to copy, distribute, modify, or otherwise make use
+ * of this software may be licensed only pursuant to the terms
+ * of an applicable Wind River license agreement.
+ */
+package org.eclipse.tcf.te.launch.core.internal;
+
+import org.eclipse.tcf.te.runtime.persistence.AbstractPathVariableDelegate;
+import org.eclipse.tcf.te.runtime.services.interfaces.filetransfer.IFileTransferItem;
+
+/**
+ * FileTransferItemVariableDelegate
+ */
+public class FileTransferItemVariableDelegate extends AbstractPathVariableDelegate {
+
+ /* (non-Javadoc)
+ * @see org.eclipse.tcf.te.runtime.persistence.AbstractVariableDelegate#getKeysToHandle()
+ */
+ @Override
+ protected String[] getKeysToHandle() {
+ return new String[]{IFileTransferItem.PROPERTY_HOST};
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.tcf.te.runtime.persistence.AbstractPathVariableDelegate#isPathKey(java.lang.String)
+ */
+ @Override
+ protected boolean isPathKey(String key) {
+ return true;
+ }
+}

Back to the top