Source:
private void update() { if (fViewer.getControl().isDisposed()) return; if (fSessionData == null) { hideTable(Messages.OSView_4); fResourceClassEditor.setEnabled(false); fRefreshAction.setEnabled(false); return; } boolean enable = fSessionData.canFetchData(); fRefreshAction.setEnabled(enable); fResourceClass = fResourceClassEditor.updateClasses(fSessionData.getResourceClasses()); fResourceClassEditor.setEnabled(enable); if (!fSessionData.osResourcesSupported()) { fRefreshAction.setEnabled(false); fResourceClassEditor.setEnabled(false); hideTable(Messages.OSView_10); return; } if (fSessionData.fetchingClasses()) { fRefreshAction.setEnabled(false); fResourceClassEditor.setEnabled(false); hideTable(Messages.OSView_11); return; } if (fResourceClass == null) { fRefreshAction.setEnabled(false); fResourceClassEditor.setEnabled(true); hideTable(Messages.OSView_5); return; } final OSData data = fSessionData.existingData(fResourceClass); if (fSessionData.fetchingContent()) { hideTable(Messages.OSView_6); } else if (data == null) { hideTable(Messages.OSView_7); } else { SimpleDateFormat format = new SimpleDateFormat(Messages.OSView_8); fRefreshAction.setToolTipText(format.format(fSessionData.timestamp(fResourceClass))); if (data != fShownData) { fShownData = data; Job job = new UIJob(Messages.OSView_9) { @Override public IStatus runInUIThread(IProgressMonitor monitor) { populateTable(data); showTable(); return Status.OK_STATUS; } }; job.setPriority(Job.INTERACTIVE); job.schedule(); } else { showTable(); } } fRefreshAction.setEnabled(fSessionData.canFetchData()); fResourceClassEditor.setEnabled(fSessionData.canFetchData()); }

Target:
private void update() { if (fViewer.getControl().isDisposed()) return; if (fSessionData == null) { hideTable(Messages.OSView_4); fResourceClassEditor.setEnabled(false); fRefreshAction.setEnabled(false); return; } boolean enable = fSessionData.canFetchData(); fRefreshAction.setEnabled(enable); fResourceClass = fResourceClassEditor.updateClasses(fSessionData.getResourceClasses()); fResourceClassEditor.setEnabled(enable); if (!fSessionData.osResourcesSupported()) { fRefreshAction.setEnabled(false); fResourceClassEditor.setEnabled(false); hideTable(Messages.OSView_10); return; } if (fSessionData.fetchingClasses()) { fRefreshAction.setEnabled(false); fResourceClassEditor.setEnabled(false); hideTable(Messages.OSView_11); return; } if (fResourceClass == null) { fRefreshAction.setEnabled(false); fResourceClassEditor.setEnabled(true); hideTable(Messages.OSView_5); return; } final OSData data = fSessionData.existingData(fResourceClass); if (fSessionData.fetchingContent()) { hideTable(Messages.OSView_6); } else if (data == null) { hideTable(NLS.bind(Messages.OSView_7, FETCH_LINK_TAG)); } else { SimpleDateFormat format = new SimpleDateFormat(Messages.OSView_8); fRefreshAction.setToolTipText(format.format(fSessionData.timestamp(fResourceClass))); if (data != fShownData) { fShownData = data; Job job = new UIJob(Messages.OSView_9) { @Override public IStatus runInUIThread(IProgressMonitor monitor) { populateTable(data); showTable(); return Status.OK_STATUS; } }; job.setPriority(Job.INTERACTIVE); job.schedule(); } else { showTable(); } } fRefreshAction.setEnabled(fSessionData.canFetchData()); fResourceClassEditor.setEnabled(fSessionData.canFetchData()); }