summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kriese2010-10-07 09:14:56 (EDT)
committerSteffen Kriese2010-10-07 09:14:56 (EDT)
commit15768567d93fb0ae677d4b00f72e7f7e1df34704 (patch)
tree9d8b1e048da4b90ffe41bafaf1deabd9eccf675e
parent0e2eb5783089b76c86561fe3909a11307fc4cbd4 (diff)
downloadorg.eclipse.riena-15768567d93fb0ae677d4b00f72e7f7e1df34704.zip
org.eclipse.riena-15768567d93fb0ae677d4b00f72e7f7e1df34704.tar.gz
org.eclipse.riena-15768567d93fb0ae677d4b00f72e7f7e1df34704.tar.bz2
Fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=327228 change default button in SubModule after node is activated
-rw-r--r--org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleController.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleController.java b/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleController.java
index 6bff3bf..8a433b0 100644
--- a/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleController.java
+++ b/org.eclipse.riena.navigation.ui/src/org/eclipse/riena/navigation/ui/controllers/SubModuleController.java
@@ -88,6 +88,12 @@ public class SubModuleController extends NavigationNodeController<ISubModuleNode
*/
public void addDefaultAction(final IRidget focusRidget, final IActionRidget action) {
actionManager = getWindowRidget().addDefaultAction(focusRidget, action);
+
+ // activate() can only be called, if the shell is present
+ if (actionManager != null && getWindowRidget().getUIControl() != null) {
+ actionManager.deactivate();
+ actionManager.activate();
+ }
}
@Override