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 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)); }
public boolean fillContextMenu(IMenuManager manager) { Control focusControl = mform.getForm().getDisplay().getFocusControl(); if (contextHelpPart.hasFocusControl(focusControl)) return contextHelpPart.fillContextMenu(manager); return dynamicHelpPart.fillContextMenu(manager); }
@Override protected IStatus run(IProgressMonitor monitor) { final List<Ref> tags = loadTags(); final List<Ref> branches = loadBranches(); final FileDiff[] diffs = getCommit().getDiffs(); final ScrolledForm form = getManagedForm().getForm(); if (UIUtils.isUsable(form)) form.getDisplay().syncExec(new Runnable() { public void run() { if (!UIUtils.isUsable(form)) return; fillTags(getManagedForm().getToolkit(), tags); fillDiffs(diffs); fillBranches(branches); form.layout(true, true); } }); return Status.OK_STATUS; } };