Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2008-04-29 21:18:12 -0400
committerslewis2008-04-29 21:18:12 -0400
commitea2b2c505171f0d813c8f3435d0971830cec5b22 (patch)
treec5df9b399b2de321debc29931abe1d0d9df488d2
parentc7d7c6de59e8666043618af55f854c70e7c06c60 (diff)
downloadorg.eclipse.ecf-ea2b2c505171f0d813c8f3435d0971830cec5b22.tar.gz
org.eclipse.ecf-ea2b2c505171f0d813c8f3435d0971830cec5b22.tar.xz
org.eclipse.ecf-ea2b2c505171f0d813c8f3435d0971830cec5b22.zip
Added NLS comments. Cleaned up toString().
-rw-r--r--framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/cola/ColaSynchronizer.java2
-rw-r--r--framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/cola/ColaUpdateMessage.java5
2 files changed, 5 insertions, 2 deletions
diff --git a/framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/cola/ColaSynchronizer.java b/framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/cola/ColaSynchronizer.java
index 384e57c32..f208049ac 100644
--- a/framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/cola/ColaSynchronizer.java
+++ b/framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/cola/ColaSynchronizer.java
@@ -48,7 +48,7 @@ public class ColaSynchronizer implements SynchronizationStrategy {
*/
public UpdateMessage transformIncomingMessage(final UpdateMessage remoteMsg) {
if (!(remoteMsg instanceof ColaUpdateMessage)) {
- throw new IllegalArgumentException("UpdateMessage is incompatible with Cola SynchronizationStrategy");
+ throw new IllegalArgumentException("UpdateMessage is incompatible with Cola SynchronizationStrategy"); //$NON-NLS-1$
}
ColaUpdateMessage transformedRemote = (ColaUpdateMessage) remoteMsg;
// TODO this is where the concurrency algorithm is executed
diff --git a/framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/cola/ColaUpdateMessage.java b/framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/cola/ColaUpdateMessage.java
index 63321269a..54cf2cdfe 100644
--- a/framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/cola/ColaUpdateMessage.java
+++ b/framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/cola/ColaUpdateMessage.java
@@ -67,7 +67,10 @@ public class ColaUpdateMessage extends UpdateMessage {
}
public String toString() {
- return super.toString() + "\n originationCount: local: " + this.localOperationsCount + " remote: " + this.remoteOperationsCount;
+ StringBuffer sb = new StringBuffer(super.toString());
+ sb.append(";").append("originationCount.local=").append(this.localOperationsCount).append(";"); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
+ sb.append("originationCount.remote=").append(this.remoteOperationsCount); //$NON-NLS-1$
+ return sb.toString();
}
}

Back to the top