public void handleEvent (Event event) { Rectangle rect = vSash.getParent().getClientArea(); event.y = Math.min (Math.max (event.y, 40), rect.height - 40); if (event.detail != SWT.DRAG) { GridData data = (GridData)tabDesc.getLayoutData(); data.heightHint = toolBar.getBounds().height + leftPanel.getBounds().height - event.y - leftPanel.getBounds().y; hSash.setBounds (event.x, event.y, event.width, event.height); parent.layout(true, true);
public void handleEvent(Event event) { if (event.widget == backItem) { final ToolItem toolItem = (ToolItem) event.widget; final ToolBar  toolBar = toolItem.getParent(); Rectangle toolItemBounds = toolItem.getBounds(); Point point = toolBar.toDisplay(new Point(toolItemBounds.x, toolItemBounds.y)); backMenu.setLocation(point.x, point.y + toolItemBounds.height); backMenu.setVisible(true);
		public void handleEvent (Event event) {			Rectangle rect = vSash.getParent().getClientArea();			event.y = Math.min (Math.max (event.y, 40), rect.height - 40);			if (event.detail != SWT.DRAG) {				GridData data = (GridData)tabDesc.getLayoutData();				data.heightHint = toolBar.getBounds().height + leftPanel.getBounds().height - event.y - leftPanel.getBounds().y;				hSash.setBounds (event.x, event.y, event.width, event.height);				parent.layout(true, true);			}		}