Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2002-05-01 16:31:18 +0000
committerJean Michel-Lemieux2002-05-01 16:31:18 +0000
commit71f51174805f53580771670bd640aa7503a37a28 (patch)
tree5f7ea305ec7b8dd3e431a8d1f035b29833ea18d3
parent50bcd3e911a002d962efd8a10de640d269a12b31 (diff)
downloadeclipse.platform.team-71f51174805f53580771670bd640aa7503a37a28.tar.gz
eclipse.platform.team-71f51174805f53580771670bd640aa7503a37a28.tar.xz
eclipse.platform.team-71f51174805f53580771670bd640aa7503a37a28.zip
Some debug technology for sync states.
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/core/sync/RemoteSyncElement.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/sync/RemoteSyncElement.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/sync/RemoteSyncElement.java
index 77ff2c97e..ac2667b43 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/sync/RemoteSyncElement.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/sync/RemoteSyncElement.java
@@ -365,9 +365,12 @@ public abstract class RemoteSyncElement extends LocalSyncElement implements IRem
* @see Object#toString()
*/
public String toString() {
+ return getName() + kindToString(getSyncKind(GRANULARITY_TIMESTAMP, null));
+ }
+
+ static public String kindToString(int kind) {
StringBuffer buffer = new StringBuffer();
- buffer.append(getName() + "["); //$NON-NLS-1$
- int kind = getSyncKind(GRANULARITY_TIMESTAMP, null);
+ buffer.append("["); //$NON-NLS-1$
if(kind==IN_SYNC) {
buffer.append("in-sync"); //$NON-NLS-1$
} else {
@@ -376,7 +379,7 @@ public abstract class RemoteSyncElement extends LocalSyncElement implements IRem
case OUTGOING: buffer.append("outgoing"); break; //$NON-NLS-1$
case INCOMING: buffer.append("incoming"); break; //$NON-NLS-1$
}
- switch(kind & DIRECTION_MASK) {
+ switch(kind & CHANGE_MASK) {
case CHANGE: buffer.append("change"); break; //$NON-NLS-1$
case ADDITION: buffer.append("addition"); break; //$NON-NLS-1$
case DELETION: buffer.append("deletion"); break; //$NON-NLS-1$

Back to the top