summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorEric Moffatt2013-04-05 11:22:50 (EDT)
committer Paul Webster2013-04-09 10:48:49 (EDT)
commite3b9df3c2008866dd859691e3c887637aa638e41 (patch)
treeaed1c944d5628ad6f95e263b669bea5eff62d254
parent47284ec46d84c52e70fbdc967eb6e4de5ac1279d (diff)
downloadeclipse.platform.ui-e3b9df3c2008866dd859691e3c887637aa638e41.zip
eclipse.platform.ui-e3b9df3c2008866dd859691e3c887637aa638e41.tar.gz
eclipse.platform.ui-e3b9df3c2008866dd859691e3c887637aa638e41.tar.bz2
Fix for Bug 376011 - [accessibility] Eclipse 4.2 tab traversal needs
refining (renderer fix, SWT fix coming)
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
index f8f5fc5..8df603d 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
@@ -898,6 +898,19 @@ public class StackRenderer extends LazyStackRenderer {
}
});
+ // Detect activation...picks up cases where the user clicks on the
+ // (already active) tab
+ ctf.addListener(SWT.Activate, new org.eclipse.swt.widgets.Listener() {
+ public void handleEvent(org.eclipse.swt.widgets.Event event) {
+ if (event.detail == SWT.MouseDown) {
+ CTabFolder ctf = (CTabFolder) event.widget;
+ MElementContainer<MUIElement> stack = (MElementContainer<MUIElement>) ctf
+ .getData(OWNING_ME);
+ activateStack(stack);
+ }
+ }
+ });
+
ctf.addSelectionListener(new SelectionListener() {
public void widgetDefaultSelected(SelectionEvent e) {
}