Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2008-07-01 16:49:09 +0000
committerslewis2008-07-01 16:49:09 +0000
commit352b1bf136a499965fa3c2f08570ffae4c9ac087 (patch)
tree48a48878251c9df5dfbd0276ef84036dd6a5b5d2 /framework/bundles/org.eclipse.ecf.storage
parent70add8ca770ea694f9575b32dca39e3b00a55abe (diff)
downloadorg.eclipse.ecf-352b1bf136a499965fa3c2f08570ffae4c9ac087.tar.gz
org.eclipse.ecf-352b1bf136a499965fa3c2f08570ffae4c9ac087.tar.xz
org.eclipse.ecf-352b1bf136a499965fa3c2f08570ffae4c9ac087.zip
Added toString for ContainerEntry and IDEntry classes
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.storage')
-rw-r--r--framework/bundles/org.eclipse.ecf.storage/src/org/eclipse/ecf/internal/storage/ContainerEntry.java9
-rw-r--r--framework/bundles/org.eclipse.ecf.storage/src/org/eclipse/ecf/internal/storage/IDEntry.java9
2 files changed, 18 insertions, 0 deletions
diff --git a/framework/bundles/org.eclipse.ecf.storage/src/org/eclipse/ecf/internal/storage/ContainerEntry.java b/framework/bundles/org.eclipse.ecf.storage/src/org/eclipse/ecf/internal/storage/ContainerEntry.java
index 1ae1a9f43..3eb008ca4 100644
--- a/framework/bundles/org.eclipse.ecf.storage/src/org/eclipse/ecf/internal/storage/ContainerEntry.java
+++ b/framework/bundles/org.eclipse.ecf.storage/src/org/eclipse/ecf/internal/storage/ContainerEntry.java
@@ -92,4 +92,13 @@ public class ContainerEntry implements IContainerEntry {
return prefs;
}
+ /* (non-Javadoc)
+ * @see java.lang.Object#toString()
+ */
+ public String toString() {
+ StringBuffer sb = new StringBuffer("ContainerEntry["); //$NON-NLS-1$
+ sb.append("idEntry=").append(idEntry); //$NON-NLS-1$
+ sb.append(";prefs=").append(getPreferences()).append("]"); //$NON-NLS-1$//$NON-NLS-2$
+ return sb.toString();
+ }
}
diff --git a/framework/bundles/org.eclipse.ecf.storage/src/org/eclipse/ecf/internal/storage/IDEntry.java b/framework/bundles/org.eclipse.ecf.storage/src/org/eclipse/ecf/internal/storage/IDEntry.java
index d1946d5c2..e7925bed9 100644
--- a/framework/bundles/org.eclipse.ecf.storage/src/org/eclipse/ecf/internal/storage/IDEntry.java
+++ b/framework/bundles/org.eclipse.ecf.storage/src/org/eclipse/ecf/internal/storage/IDEntry.java
@@ -120,4 +120,13 @@ public class IDEntry implements IIDEntry {
}
return (IIDEntry[]) results.toArray(new IIDEntry[] {});
}
+
+ /* (non-Javadoc)
+ * @see java.lang.Object#toString()
+ */
+ public String toString() {
+ StringBuffer sb = new StringBuffer("IDEntry["); //$NON-NLS-1$
+ sb.append(prefs.name()).append("]"); //$NON-NLS-1$
+ return sb.toString();
+ }
}

Back to the top