summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kriese2011-03-08 09:12:51 (EST)
committerSteffen Kriese2011-03-08 09:12:51 (EST)
commit7f28449c952fca6d0d01ea1d7c1ce1e70cddb931 (patch)
tree17b73f325f566242848612fa25f5cc21c091fab4
parent8b9daabc85765d907838743ad3735aaf2aa78cf6 (diff)
downloadorg.eclipse.riena-7f28449c952fca6d0d01ea1d7c1ce1e70cddb931.zip
org.eclipse.riena-7f28449c952fca6d0d01ea1d7c1ce1e70cddb931.tar.gz
org.eclipse.riena-7f28449c952fca6d0d01ea1d7c1ce1e70cddb931.tar.bz2
FIXED - bug 327767: navigate(...) to a SubModule in another SubApplication results in jumping to the first SubModule
https://bugs.eclipse.org/bugs/show_bug.cgi?id=327767
-rw-r--r--org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/ModuleView.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/ModuleView.java b/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/ModuleView.java
index 32f68cf..4bbc31d 100644
--- a/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/ModuleView.java
+++ b/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/ModuleView.java
@@ -809,6 +809,7 @@ public class ModuleView implements INavigationNodeView<ModuleNode> {
@Override
public void beforeActivated(final ISubModuleNode source) {
+
/*
* SWT feature: when tree.setFocus() is called below, it will fire a
* selection event in ADDITION of setting the focus. This will
@@ -848,6 +849,10 @@ public class ModuleView implements INavigationNodeView<ModuleNode> {
updateExpanded(source); // fix for bug 269221
doNotResize = false;
resize();
+ final TreeItem currentItem = findItem(getTree().getItems(), source);
+ if (null != currentItem) {
+ getTree().select(currentItem);
+ }
getTree().setFocus();
}