if (dialog.open() == HistoryListDialog.OK) {
if (dialog.open() == Window.OK) {
	public void run() {		IMethod[] historyEntries= fView.getHistoryEntries();		HistoryListDialog dialog= new HistoryListDialog(JavaPlugin.getActiveWorkbenchShell(), historyEntries);		if (dialog.open() == HistoryListDialog.OK) {			fView.setHistoryEntries(dialog.getRemaining());			fView.setMethod(dialog.getResult());		}	}