private void showHistoryDialog(){
  JBList commandsList=new JBList(HistoryUtils.getCommandsFromHistory());
  commandsList.setCellRenderer(new HistoryListCellRenderer());
  commandsList.setEmptyText("No data to display");
  commandsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
  String[] buttons={"OK","Cancel"};
  int result=JOptionPane.showOptionDialog(toolWindowContent,commandsList,"Command history",JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.PLAIN_MESSAGE,null,buttons,buttons[0]);
  if (result == 0) {
    updateUiFromCommand((Command)commandsList.getSelectedValue());
  }
}

private void showHistoryDialog ( ) { JBList commandsList = new JBList ( HistoryUtils . getCommandsFromHistory ( ) ) ; commandsList . setCellRenderer ( new HistoryListCellRenderer ( ) ) ; commandsList . setEmptyText ( "No data to display" ) ; commandsList . setSelectionMode ( ListSelectionModel . SINGLE_SELECTION ) ; String [ ] buttons = { "OK" , "Cancel" } ; int result = JOptionPane . showOptionDialog ( toolWindowContent , commandsList , "Command history" , JOptionPane . YES_NO_CANCEL_OPTION , JOptionPane . PLAIN_MESSAGE , null , buttons , buttons [ 0 ] ) ; if ( result == 0 ) { updateUiFromCommand ( ( Command ) commandsList . getSelectedValue ( ) ) ; } }
shows up history dialog
