if (resource == null) view.showHistory(remoteResource, true); else view.showHistory(resource, true);
if (resource == null) { view.showHistoryFor(remoteResource); } else { view.showHistoryFor(resource); }
			public void run(IProgressMonitor monitor) {				getShell().getDisplay().syncExec(new Runnable() {					public void run() {						HistoryView view = (HistoryView)showView(HistoryView.VIEW_ID);						if (view != null) {							if (resource == null) view.showHistory(remoteResource, true); 							else view.showHistory(resource, true);						}					   					}				});   			}