summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kriese2011-03-29 05:55:43 (EDT)
committerSteffen Kriese2011-03-29 05:55:43 (EDT)
commit2aef709d0b34a7a7b5eea617a5ab6dc68b1d9d48 (patch)
tree6d929182c13f0aff187c8ceb2e32ac8fb9a02145
parentaef48fe96e102a16da9d6197b3a2a4490221aa68 (diff)
downloadorg.eclipse.riena-2aef709d0b34a7a7b5eea617a5ab6dc68b1d9d48.zip
org.eclipse.riena-2aef709d0b34a7a7b5eea617a5ab6dc68b1d9d48.tar.gz
org.eclipse.riena-2aef709d0b34a7a7b5eea617a5ab6dc68b1d9d48.tar.bz2
RESOLVED - bug 341203: Wrong icon in navigationtree, when a submoduleController creates nodes in configureRidgets()
https://bugs.eclipse.org/bugs/show_bug.cgi?id=341203
-rw-r--r--org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNode.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNode.java b/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNode.java
index af5c1c7..b9864d1 100644
--- a/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNode.java
+++ b/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNode.java
@@ -412,7 +412,12 @@ public abstract class NavigationNode<S extends INavigationNode<C>, C extends INa
* @since 2.0
*/
public void prepare() {
+ final List<C> oldChildren = new ArrayList<C>(getChildren());
getNavigationProcessor().prepare(this);
+ //if the prepare() creates child nodes, we have to fire an event to notify the tree about changes
+ if (!getChildren().isEmpty() && getChildren().size() > oldChildren.size()) {
+ fireChildAdded(getChild(0), oldChildren);
+ }
}
public boolean allowsActivate(final INavigationContext context) {