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
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')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.launch.core/plugin.xml10
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/internal/FileTransferItemVariableDelegate.java36
2 files changed, 46 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.launch.core/plugin.xml b/target_explorer/plugins/org.eclipse.tcf.te.launch.core/plugin.xml
index 00dcbfdf4..fe36af6f8 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.launch.core/plugin.xml
+++ b/target_explorer/plugins/org.eclipse.tcf.te.launch.core/plugin.xml
@@ -146,4 +146,14 @@
</binding>
</extension>
+<!-- Variable delegate contributions -->
+ <extension point="org.eclipse.tcf.te.runtime.persistence.variableDelegates">
+ <delegate
+ id="org.eclipse.tcf.te.launch.core.persistence.variableDelegate"
+ class="org.eclipse.tcf.te.launch.core.internal.FileTransferItemVariableDelegate"
+ delegateId="org.eclipse.tcf.te.launch.core.persistence.gson.fileTransferItem"/>
+ </extension>
+
+
+
</plugin>
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