summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorPiotr Aniola2013-04-10 16:50:50 (EDT)
committer Curtis Windatt2013-04-10 16:50:50 (EDT)
commite1a1fff989407054cf4e7ece964b90b66ce7b554 (patch)
tree78f814c01aa18e8494618f72bae619828f43355c
parent3b201b43045552d0e18ce87bcf22863bf44f099d (diff)
downloadeclipse.platform.ui-e1a1fff989407054cf4e7ece964b90b66ce7b554.zip
eclipse.platform.ui-e1a1fff989407054cf4e7ece964b90b66ce7b554.tar.gz
eclipse.platform.ui-e1a1fff989407054cf4e7ece964b90b66ce7b554.tar.bz2
Bug 373814 - Missing setFocus() call on maximize/minimize/restore of
stack
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java17
1 files changed, 16 insertions, 1 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 7b16df2..5e8b91b 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
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2012 IBM Corporation and others.
+ * Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -933,6 +933,21 @@ public class StackRenderer extends LazyStackRenderer {
});
MouseListener mouseListener = new MouseAdapter() {
+
+ @Override
+ public void mouseDoubleClick(MouseEvent e) {
+ CTabItem item = ctf.getSelection();
+ if (item != null) {
+ MUIElement ele = (MUIElement) item.getData(OWNING_ME);
+ if (ele.getParent().getSelectedElement() == ele) {
+ Control ctrl = (Control) ele.getWidget();
+ if (ctrl != null) {
+ ctrl.setFocus();
+ }
+ }
+ }
+ }
+
@Override
public void mouseUp(MouseEvent e) {
CTabItem item = ctf.getItem(new Point(e.x, e.y));