summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2008-07-22 03:46:37 (EDT)
committerCarsten Drossel2008-07-22 03:46:37 (EDT)
commit1dc9208739b65e30f30cd0027b2767da812b836a (patch)
tree71ed1b0878270a0457fa2a797066b323fbf6c591
parentb94520c62a336e6980316b9493620b9b0b8183fe (diff)
downloadorg.eclipse.riena-1dc9208739b65e30f30cd0027b2767da812b836a.zip
org.eclipse.riena-1dc9208739b65e30f30cd0027b2767da812b836a.tar.gz
org.eclipse.riena-1dc9208739b65e30f30cd0027b2767da812b836a.tar.bz2
applied Stefan's patch with meaningful toString()
-rw-r--r--org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNodeId.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNodeId.java b/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNodeId.java
index 76fa69a..a338c78 100644
--- a/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNodeId.java
+++ b/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNodeId.java
@@ -56,6 +56,16 @@ public class NavigationNodeId implements INavigationNodeId {
return false;
}
+ public String toString() {
+ StringBuilder sb = new StringBuilder(typeId);
+ if (instanceId != null) {
+ sb.append("[");
+ sb.append(instanceId);
+ sb.append("]");
+ }
+ return sb.toString();
+ }
+
/**
* @see java.lang.Object#hashCode()
*/