summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2009-04-06 09:58:19 (EDT)
committerCarsten Drossel2009-04-06 09:58:19 (EDT)
commit77b4edd3907406ec69ef693104bb51cf11baebeb (patch)
tree58ae4db0db72e5903bc4a25762c6188ca6b983a4
parentdd043168b68f7d49cefc0c90d2ea8b70b0e72efe (diff)
downloadorg.eclipse.riena-77b4edd3907406ec69ef693104bb51cf11baebeb.zip
org.eclipse.riena-77b4edd3907406ec69ef693104bb51cf11baebeb.tar.gz
org.eclipse.riena-77b4edd3907406ec69ef693104bb51cf11baebeb.tar.bz2
bug 269221, typo
-rw-r--r--org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/ModuleView.java18
1 files changed, 15 insertions, 3 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 51b83f1..0ac3752 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
@@ -396,9 +396,21 @@ public class ModuleView implements INavigationNodeView<SWTModuleController, Modu
*/
@Override
public void activated(ISubModuleNode source) {
+
+ // fix for bug 269221
+ updateExpanded(source);
+
resize();
}
+ private void updateExpanded(ISubModuleNode node) {
+ final INavigationNode<?> nodeParent = node.getParent();
+ if (nodeParent instanceof ISubModuleNode) {
+ nodeParent.setExpanded(true);
+ updateExpanded((ISubModuleNode) nodeParent);
+ }
+ }
+
/**
* @see org.eclipse.riena.navigation.listener.NavigationNodeListener#markersChanged(org.eclipse.riena.navigation.INavigationNode)
*/
@@ -653,7 +665,7 @@ public class ModuleView implements INavigationNodeView<SWTModuleController, Modu
*
* @return renderer
*/
- private ModuleGroupRenderer getMouduleGroupRenderer() {
+ private ModuleGroupRenderer getModuleGroupRenderer() {
ModuleGroupRenderer renderer = (ModuleGroupRenderer) LnfManager.getLnf().getRenderer(
LnfKeyConstants.MODULE_GROUP_RENDERER);
@@ -731,10 +743,10 @@ public class ModuleView implements INavigationNodeView<SWTModuleController, Modu
if (index == 0) {
formData.top = new FormAttachment(0, 0);
} else if (index < 0) {
- formData.top = new FormAttachment(children[children.length - 1], getMouduleGroupRenderer()
+ formData.top = new FormAttachment(children[children.length - 1], getModuleGroupRenderer()
.getModuleModuleGap());
} else {
- formData.top = new FormAttachment(children[index - 1], getMouduleGroupRenderer().getModuleModuleGap());
+ formData.top = new FormAttachment(children[index - 1], getModuleGroupRenderer().getModuleModuleGap());
}
formData.left = new FormAttachment(0, 0);
formData.right = new FormAttachment(100, 0);