summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kriese2010-09-30 05:00:33 (EDT)
committerSteffen Kriese2010-09-30 05:00:33 (EDT)
commit7d154c622dfd99150c40d4dffba00bafbce7b1c2 (patch)
treed801c5bf221560e8ba91ca319f6cd46ade4acf19
parente4b066785021f1975f87ed9be98aaf645cb0659c (diff)
downloadorg.eclipse.riena-7d154c622dfd99150c40d4dffba00bafbce7b1c2.zip
org.eclipse.riena-7d154c622dfd99150c40d4dffba00bafbce7b1c2.tar.gz
org.eclipse.riena-7d154c622dfd99150c40d4dffba00bafbce7b1c2.tar.bz2
Applied patch #326645 (When running on rap the NodeSwitcher timout is 50 instead of 300 ms)
-rw-r--r--org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/ModuleNavigationListener.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/ModuleNavigationListener.java b/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/ModuleNavigationListener.java
index 408ea36..1cfbfb3 100644
--- a/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/ModuleNavigationListener.java
+++ b/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/views/ModuleNavigationListener.java
@@ -27,6 +27,7 @@ import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.riena.core.util.Nop;
+import org.eclipse.riena.core.util.RAPDetector;
import org.eclipse.riena.internal.navigation.ui.swt.handlers.SwitchModule;
import org.eclipse.riena.navigation.INavigationNode;
import org.eclipse.riena.navigation.model.NavigationProcessor;
@@ -268,7 +269,7 @@ class ModuleNavigationListener extends SelectionAdapter implements KeyListener,
/**
* Wait this long (ms) before activating a node.
*/
- private static final int TIMEOUT_MS = 300;
+ private static final int TIMEOUT_MS = RAPDetector.isRAPavailable() ? 50 : 300;
private final INavigationNode<?> node;
private final Display display;