Bug 208099 [Contributions] Toggling logical structure "Show As > Array" has no effect
I20071030 * Using the "Show As >" menu to selectively enable/disable logical structures for specific kinds of objects has no effect 90% of the time. The check mark will usually not toggle on the menu item either. Once and a while the action seems to stick. Strange.
bundles/org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.java
*/
	public int getMode() {
		return mode;
	}
	/**
	 * Returns the listener for SWT tool item widget events.
	 * 
	 * @return a listener for tool item events
	 */
	private Listener getToolItemListener() {
		if (toolItemListener == null) {
			toolItemListener = new Listener() {
				public void handleEvent(Event event) {
					switch (event.type) {
					case SWT.Dispose:
						handleWidgetDispose(event);
						break;
					case SWT.Selection:
						Widget ew = event.widget;
						if (ew != null) {
							handleWidgetSelection(event, ((ToolItem) ew)
									.getSelection());
						}
						break;
					}
				}
			};
		}
		return toolItemListener;
	}