}
  public void actionPerformed(ActionEvent event)  {    String command = event.getActionCommand();    Object source = event.getSource();    DatabaseRun run = null;    if (command.equals ("Exit"))      System.exit (0);    else       System.out.println ("Command " + command);		    Debug.out("TS:aP command " + command);    if ( source instanceof JMenuItem ) {      JMenuItem item = (JMenuItem)source;      // Action Menu      if ( source == getnewViewItem() ) {	logPlanView.showFilterDialog ();      }      else if ( (run = (DatabaseRun) itemToRun.get (source)) != null) {	setRun (run);	performInitialQuery();	if(lastItemSelected != null)	  lastItemSelected.setIcon (null);	lastItemSelected = (JMenuItem)source;	lastItemSelected.setIcon (check);      }      else if ( source == getreloadAggregationItem() ) {	// ignore for now	/*	  QueryData query = new QueryData();	  query.setOtherCommand("RELOAD yourself");	  provider.request("Aggregation", PSPClientConfig.UIDataPSP_id, query);	*/      }      // Panel Menu      else if ( source == getmessageItem() || source == getlogPlanItem() || source == getganttItem() ) {	resetView();      }      else if ( source == gettileItem() ) {	if ( !gettileItem().isSelected() ) // was selected; make it stay selected	  gettileItem().setSelected(true);	else {	  getstackItem().setSelected(false);	  resetView();	}      }      else if ( source == getstackItem() ) {	if ( !getstackItem().isSelected() ) // was selected; make it stay selected	  getstackItem().setSelected(true);	else {	  gettileItem().setSelected(false);	  resetView();	}      }      else if ( clusterMenuItems.contains(item) ) {	selectedClusterItem.setSelected(false);	selectedClusterItem = item;	selectedClusterItem.setSelected(true);	OutputHandler.out("TS:aP Changed selected cluster to: " + item.getText());      }      else	OutputHandler.out("TS:aP Error: unknown JMenuItem source: " + source);    }    else      OutputHandler.out("TS:aP Error: unknown bean source: " + source);  }