protected void doWithBusyIndicator( final Runnable r ) { BusyIndicator.showWhile( Display.getCurrent() != null ? Display.getCurrent() : Display.getDefault(), r ); }
/** * 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); } }); }
@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 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() { BusyIndicator.showWhile(fPage.getViewer().getControl().getDisplay(), new Runnable() { public void run() { fPage.setSortOrder(fSortOrder); } }); }
@Override public void browseButtonSelected(FormEntry entry) { BusyIndicator.showWhile(fNlText.getText().getDisplay(), () -> { Choice[] choices = getNLChoices(); openPortabilityChoiceDialog(IEnvironment.P_NL, fNlText, choices); }); }
@Override public void browseButtonSelected(FormEntry entry) { BusyIndicator.showWhile(fOsText.getText().getDisplay(), () -> { Choice[] choices = getOSChoices(); openPortabilityChoiceDialog(IEnvironment.P_OS, fOsText, choices); }); }
@Override public void browseButtonSelected(FormEntry entry) { BusyIndicator.showWhile(fWsText.getText().getDisplay(), () -> { Choice[] choices = getWSChoices(); openPortabilityChoiceDialog(IEnvironment.P_WS, fWsText, choices); }); }
@Override public void browseButtonSelected(FormEntry entry) { BusyIndicator.showWhile(fWsText.getText().getDisplay(), () -> { Choice[] choices = getWSChoices(); openPortabilityChoiceDialog(IEnvironment.P_WS, fWsText, choices); }); }
@Override public void browseButtonSelected(FormEntry entry) { BusyIndicator.showWhile(fNlText.getText().getDisplay(), () -> { Choice[] choices = getNLChoices(); openPortabilityChoiceDialog(IEnvironment.P_NL, fNlText, choices); }); }
@Override public void widgetSelected(SelectionEvent selectionEvent) { BusyIndicator.showWhile(getShell().getDisplay(), () -> { tree.setCheckedElements(treeContentProvider.getElements(tree.getInput())); setSubtreeChecked((IContainer)tree.getInput(), false, false); }); validateInput(); } });
private void doRun(String launcher, String target, final boolean debug) { ILaunchShortcut shortcut = defaultShortcut; final ISelection selection; if (target != null) { selection = new StructuredSelection(); } else selection = new StructuredSelection(); final ILaunchShortcut fshortcut = shortcut; BusyIndicator.showWhile(form.getDisplay(), () -> fshortcut.launch(selection, debug ? ILaunchManager.DEBUG_MODE : ILaunchManager.RUN_MODE)); }
private void feed3(final ISelection selection) { BusyIndicator.showWhile(fComposite.getDisplay(), () -> { if (selection.isEmpty()) internalSetContentPaneInput(fStructurePane2.getInput()); else internalSetContentPaneInput(getElement(selection)); } ); }
private void handleImportEnvironment() { IStructuredSelection sel = fCategoryViewer.getStructuredSelection(); final ISiteFeature[] selectedFeatures = getFeaturesFromSelection(sel); BusyIndicator.showWhile(fCategoryTreePart.getControl().getDisplay(), () -> new SynchronizePropertiesAction(selectedFeatures, getModel()).run()); }
private void handleNew() { IFile file = ((IFileEditorInput) getPage().getPDEEditor().getEditorInput()).getFile(); final IProject project = file.getProject(); BusyIndicator.showWhile(pointTable.getTable().getDisplay(), () -> { NewExtensionPointWizard wizard = new NewExtensionPointWizard(project, (IPluginModelBase) getPage().getModel(), (ManifestEditor) getPage().getPDEEditor()); WizardDialog dialog = new WizardDialog(PDEPlugin.getActiveWorkbenchShell(), wizard); dialog.create(); SWTUtil.setDialogSize(dialog, 400, 450); dialog.open(); }); }