protected void doWithBusyIndicator( final Runnable r ) { BusyIndicator.showWhile( Display.getCurrent() != null ? Display.getCurrent() : Display.getDefault(), r ); }
private void openDynamicHelp() { BusyIndicator.showWhile(shell.getDisplay(), new Runnable() { public void run() { close(); DefaultHelpUI.getInstance().displayContext(context, 0, 0, true); } }); }
/** * Search for all archives in the workspace. */ private void init() { BusyIndicator.showWhile(JDIDebugUIPlugin.getStandardDisplay(), new Runnable() { public void run() { fArchives = new HashSet(); traverse(ResourcesPlugin.getWorkspace().getRoot(), fArchives); } }); }
public boolean close(final boolean remove) { final boolean[] ret = new boolean[1]; BusyIndicator.showWhile(null, () -> ret[0] = busyClose(remove)); return ret[0]; }
public void run() { BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() { public void run() { setActiveGroupCategory(fGroupCategory); fOwner.executed(FilterAction.this); } }); } }
protected Control createContents(final Composite parent) { final Control[] control = new Control[1]; BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() { public void run() { control[0] = PreferenceDialog.super.createContents(parent); // Add the first page selectSavedItem(); } }); return control[0]; }
private void updateResultSections() { BusyIndicator.showWhile(container.getDisplay(), new Runnable() { public void run() { for (int i = 0; i < results.size(); i++) { EngineResultSection section = (EngineResultSection) results .get(i); section.updateResults(false); } reflow(); } }); }
private void busyLoadTocs(final String url) { BusyIndicator.showWhile(urlText.getDisplay(), new Runnable() { public void run() { loadTocs(url); } }); }
private void getGetterSetterRenamingEnablement() { BusyIndicator.showWhile(getShell().getDisplay(), new Runnable(){ public void run() { checkGetterRenamingEnablement(); checkSetterRenamingEnablement(); } }); }
@Override public void run() { BusyIndicator.showWhile(fView.getSite().getShell().getDisplay(), new Runnable() { @Override public void run() { fView.showQualifiedTypeNames(isChecked()); } }); } }
public void run() { if (!checkedId.equals(sorterDesc.getId())) { SortDropDownAction.this.setChecked(sorterDesc); BusyIndicator.showWhile(parent.getDisplay(), new Runnable() { public void run() { fViewer.setSorter(sorter); } }); } } };
@Override protected Control createContents(final Composite parent) { final Control[] control = new Control[1]; BusyIndicator.showWhile(getShell().getDisplay(), () -> { control[0] = PreferenceDialog.super.createContents(parent); // Add the first page selectSavedItem(); }); return control[0]; }
public void run() { BusyIndicator.showWhile(fView.getSite().getShell().getDisplay(), new Runnable() { public void run() { fView.showMembersInHierarchy(isChecked()); } }); } }
@Override public void run() { BusyIndicator.showWhile(fMethodsViewer.getControl().getDisplay(), new Runnable() { @Override public void run() { fMethodsViewer.sortByDefiningType(isChecked()); } }); } }
@Override public void run() { if (!control.isDisposed()) BusyIndicator.showWhile(control.getDisplay(), runnable); } });
@Override public void run() { BusyIndicator.showWhile(fMethodsViewer.getControl().getDisplay(), new Runnable() { @Override public void run() { fMethodsViewer.showInheritedMethods(isChecked()); } }); } }
public void run() { BusyIndicator.showWhile(fMethodsViewer.getControl().getDisplay(), new Runnable() { public void run() { fMethodsViewer.sortByDefiningType(isChecked()); } }); } }
@Override public void run() { BusyIndicator.showWhile(fUrlViewer.getTable().getDisplay(), () -> handleDelete()); } };
public void run() { if (!ctrl.isDisposed()) { BusyIndicator.showWhile(ctrl.getDisplay(), r); } } });
public void run() { if (!ctrl.isDisposed()) { BusyIndicator.showWhile(ctrl.getDisplay(), r); } } });