MenuItem menuItem = new MenuItem(menu, SWT.SEPARATOR);
new MenuItem(menu, SWT.SEPARATOR);
		public void widgetSelected(SelectionEvent event) {			// Create the menu if it has not already been created			if (menu == null) {				// Lazy create the menu.				Shell shell = tabFolderPage.getShell();				menu = new Menu(shell);				for (int i = 0; i < 9; ++i) {					final String text = ControlExample.getResourceString("DropDownData_" + i);					if (text.length() != 0) {						MenuItem menuItem = new MenuItem(menu, SWT.NONE);						menuItem.setText(text);						/*						 * Add a menu selection listener so that the menu is hidden						 * when the user selects an item from the drop down menu.						 */						menuItem.addSelectionListener(new SelectionAdapter() {							public void widgetSelected(SelectionEvent e) {								setMenuVisible(false);							}						});					} else {						MenuItem menuItem = new MenuItem(menu, SWT.SEPARATOR);					}				}			}						/**			 * A selection event will be fired when a drop down tool			 * item is selected in the main area and in the drop			 * down arrow.  Examine the event detail to determine			 * where the widget was selected.			 */					if (event.detail == SWT.ARROW) {				/*				 * The drop down arrow was selected.				 */				if (visible) {					// Hide the menu to give the Arrow the appearance of being a toggle button.					setMenuVisible(false);				} else {						// Position the menu below and vertically aligned with the the drop down tool button.					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));					menu.setLocation(point.x, point.y + toolItemBounds.height);					setMenuVisible(true);				}			} else {				/*				 * Main area of drop down tool item selected.				 * An application would invoke the code to perform the action for the tool item.				 */			}		}