code: private void addRecentExample(final String text, final ExampleData data, final boolean select) {
  		WMenuItem item = new WMenuItem(text, new SelectExampleAction());
  		item.setCancel(true);
  		menu.add(item);
  		item.setActionObject(data);
  		if (select) {
  			menu.setSelectedMenuItem(item);
  		}
  	}
docs: Adds an example to the recent subMenu.
  
  @param text the text to display.
  @param data the example data instance
  @param select should the menuItem be selected