[jbosstools-commits] JBoss Tools SVN: r17823 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Sep 30 13:28:32 EDT 2009


Author: yradtsevich
Date: 2009-09-30 13:28:32 -0400 (Wed, 30 Sep 2009)
New Revision: 17823

Modified:
   trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/SplitToolBar.java
Log:
issue JBIDE-4734: Layout for VPE tool bar formatting is broken under Linux. 
https://jira.jboss.org/jira/browse/JBIDE-4734
 - now all hidden buttons are accessible from chevron-menu

Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/SplitToolBar.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/SplitToolBar.java	2009-09-30 17:06:27 UTC (rev 17822)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/SplitToolBar.java	2009-09-30 17:28:32 UTC (rev 17823)
@@ -68,14 +68,14 @@
 		coolItem.addSelectionListener(new SelectionAdapter() {
 			public void widgetSelected(SelectionEvent event) {
 				if (event.detail == SWT.ARROW) {
-					CoolItem item = (CoolItem) event.widget;
-					Rectangle itemBounds = item.getBounds();
+					CoolItem coolItem = (CoolItem) event.widget;
+					ToolBar bar = (ToolBar) coolItem.getControl();
+					ToolItem[] tools = bar.getItems();
+					Rectangle itemBounds = bar.getBounds();
 					Point pt = coolBar.toDisplay(new Point(itemBounds.x,
 							itemBounds.y));
 					itemBounds.x = pt.x;
 					itemBounds.y = pt.y;
-					ToolBar bar = (ToolBar) item.getControl();
-					ToolItem[] tools = bar.getItems();
 
 					int i = 0;
 					while (i < tools.length) {
@@ -368,4 +368,3 @@
 		return result;
 	}
 }
-



More information about the jbosstools-commits mailing list