Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2013-07-30 03:02:20 -0400
committerTobias Schwarz2013-07-30 03:02:20 -0400
commitcd3cdbc0a85da2f57a2732cb63fb4e29f6ab4848 (patch)
treee218b386aeba23add09442d642243cd4c0b1302f /target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src
parentb07499780c7f2cb8ae57e921dfd91cbac60eb93d (diff)
downloadorg.eclipse.tcf-cd3cdbc0a85da2f57a2732cb63fb4e29f6ab4848.tar.gz
org.eclipse.tcf-cd3cdbc0a85da2f57a2732cb63fb4e29f6ab4848.tar.xz
org.eclipse.tcf-cd3cdbc0a85da2f57a2732cb63fb4e29f6ab4848.zip
Target Explorer: add common property access service
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.java5
1 files changed, 3 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 a4880a209..87c957537 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
@@ -100,11 +100,12 @@ public class FileTransferItem extends PropertiesContainer implements IFileTransf
*/
@Override
public boolean equals(Object obj) {
- if (obj instanceof IFileTransferItem) {
+ boolean equals = super.equals(obj);
+ if (!equals && obj instanceof IFileTransferItem) {
return getHostPath() != null ? getHostPath().equals(((IFileTransferItem)obj).getHostPath()) : ((IFileTransferItem)obj).getHostPath() == null
&& getTargetPath() != null ? getTargetPath().equals(((IFileTransferItem)obj).getTargetPath()) : ((IFileTransferItem)obj).getTargetPath() == null
&& getDirection() == ((IFileTransferItem)obj).getDirection();
}
- return super.equals(obj);
+ return equals;
}
}

Back to the top