Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2012-04-26 10:38:19 -0400
committerUwe Stieber2012-04-26 10:38:19 -0400
commit56d62eb7a0653edcc6a187ba7f81f89c6420ae67 (patch)
treefe6810ffbb71d8fb2ffaeb237c5ae534334f5bf6 /target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src
parentae2e2e5fc68024ad74014f0ba2978292c10e28d8 (diff)
downloadorg.eclipse.tcf-56d62eb7a0653edcc6a187ba7f81f89c6420ae67.tar.gz
org.eclipse.tcf-56d62eb7a0653edcc6a187ba7f81f89c6420ae67.tar.xz
org.eclipse.tcf-56d62eb7a0653edcc6a187ba7f81f89c6420ae67.zip
Target Explorer: ADD Launches to target explorer, editor and context menus
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.java14
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IPropertiesAccessService.java10
2 files changed, 24 insertions, 0 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 5a4ef7f81..318ccc3ea 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
@@ -66,4 +66,18 @@ public class FileTransferItem extends PropertiesContainer implements IFileTransf
public String getOptions() {
return getStringProperty(PROPERTY_OPTIONS);
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.tcf.te.runtime.properties.PropertiesContainer#equals(java.lang.Object)
+ */
+ @Override
+ public boolean equals(Object obj) {
+ if (obj instanceof IFileTransferItem) {
+ return getHostPath().equals(((IFileTransferItem)obj).getHostPath()) &&
+ getTargetPath().equals(((IFileTransferItem)obj).getTargetPath()) &&
+ getDirection() == ((IFileTransferItem)obj).getDirection() &&
+ getOptions().equals(((IFileTransferItem)obj).getOptions());
+ }
+ return super.equals(obj);
+ }
}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IPropertiesAccessService.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IPropertiesAccessService.java
index f26b29b67..b842a62e4 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IPropertiesAccessService.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/interfaces/IPropertiesAccessService.java
@@ -51,6 +51,16 @@ public interface IPropertiesAccessService extends IService {
public Object getProperty(Object context, String key);
/**
+ * Set the property with the key with the given value.
+ *
+ * @param context The context to set the property to. Must not be <code>null</code>.
+ * @param key The property key. Must not be <code>null</code>.
+ * @param value The value to set.
+ * @return <code>true</code> if the value was set.
+ */
+ public boolean setProperty(Object context, String key, Object value);
+
+ /**
* Returns the direct parent node of the given context object.
*
* @param context The context to get the parent from. Must not be <code>null</code>.

Back to the top