code: public void toolsMenuClick(int index, Object value, boolean isToggled) {
  		System.out.println(index + ":" + value + ":" + isToggled);
  		switch (index) {
  		case 0:
  			// Call the xml parser to load your new components
  			// screen.parseLayout("Interface/MainMenu.gui.xml", this);
  			// screenShotState.takeScreenshot();
  			app.getStateManager().detach(this);
  			takeScreenshot();
  			break;
  		case 1:
  			LoggingViewerAppState log = app.getStateManager().getState(LoggingViewerAppState.class);
  			if (log == null) {
  				log = new LoggingViewerAppState();
  				app.getStateManager().attach(this);
  			}
  			if (log.isShown()) {
  				log.hide();
  			} else {
  				log.show();
  			}
  			break;
  		case 2:
  			// Event Launcher
  			if (eventLauncherPanel == null) {
  				DevicesAppState devicesAppState = app.getStateManager().getState(DevicesAppState.class);
  				if (devicesAppState != null) {
  					EventLauncherPanel.createAndShowGUI(devicesAppState);
  				}
  			} else {
  				eventLauncherPanel.setVisible(eventLauncherPanel.isVisible());
  			}
  			break;
  		}
  	}
docs: /*
  TOOLS OPTIONS