Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
289,700
boolean (@NotNull Project project, @NotNull String line) { return shouldFoldLine(line); }
shouldFoldLine
289,701
boolean () { return true; }
shouldBeAttachedToThePreviousLine
289,702
boolean (@NotNull ConsoleView consoleView) { return true; }
isEnabledForConsole
289,703
RunManagerEx (@NotNull Project project) { return (RunManagerEx)RunManager.getInstance(project); }
getInstanceEx
289,704
void (@Nullable RunnerAndConfigurationSettings configuration) { setSelectedConfiguration(configuration); }
setActiveConfiguration
289,705
void (RunnerAndConfigurationSettings settings, boolean storeInDotIdeaFolder, List<BeforeRunTask> tasks, boolean addTemplateTasksIfAbsent) { if (storeInDotIdeaFolder) { settings.storeInDotIdeaFolder(); } else { settings.storeInLocalWorkspace(); } setBeforeRunTasks(settings.getConfiguration(), tasks, addTemplateTasksIfAb...
addConfiguration
289,706
Icon (@NotNull RunnerAndConfigurationSettings settings) { return getConfigurationIcon(settings, false); }
getConfigurationIcon
289,707
Collection<RunnerAndConfigurationSettings> () { return getAllSettings(); }
getSortedConfigurations
289,708
void (Project project, RunConfiguration settings, Key<? extends BeforeRunTask> @NotNull ... keys) { for (Key<? extends BeforeRunTask> key : keys) { List<? extends BeforeRunTask> tasks = getInstanceEx(project).getBeforeRunTasks(settings, key); for (BeforeRunTask task : tasks) { task.setEnabled(false); } } }
disableTasks
289,709
int (Project project, RunConfiguration settings, Key<? extends BeforeRunTask> @NotNull ... keys) { return Arrays.stream(keys).mapToInt(key -> getInstanceEx(project).getBeforeRunTasks(settings, key).size()).sum(); }
getTasksCount
289,710
void (@NotNull Element element) { myRedirectInput = Boolean.parseBoolean(JDOMExternalizerUtil.readField(element, REDIRECT_INPUT, "false")); myInputFile = JDOMExternalizerUtil.readField(element, INPUT_FILE); }
readExternal
289,711
void (Element element) { if (myRedirectInput) { JDOMExternalizerUtil.writeField(element, REDIRECT_INPUT, "true"); } if (myInputFile != null) { JDOMExternalizerUtil.writeField(element, INPUT_FILE, myInputFile); } }
writeExternal
289,712
InputRedirectOptionsImpl () { InputRedirectOptionsImpl options = new InputRedirectOptionsImpl(); options.myRedirectInput = myRedirectInput; options.myInputFile = myInputFile; return options; }
copy
289,713
boolean () { return myRedirectInput; }
isRedirectInput
289,714
void (boolean value) { myRedirectInput = value; }
setRedirectInput
289,715
void (String value) { myInputFile = value; }
setRedirectInputPath
289,716
void (@NotNull Executor extension, @NotNull PluginDescriptor pluginDescriptor) { //noinspection TestOnlyProblems initExecutorActions(extension, ActionManager.getInstance()); }
extensionAdded
289,717
void (@NotNull Executor extension, @NotNull PluginDescriptor pluginDescriptor) { deinitExecutor(extension); }
extensionRemoved
289,718
void (@NotNull ActionManager manager) { if (Executor.EXECUTOR_EXTENSION_NAME.hasAnyExtensions()) { ((ExecutorRegistryImpl)getInstance()).init(manager); } }
customize
289,719
boolean (@NotNull Executor executor) { String id = executor.getId(); return id.equals(ToolWindowId.RUN) || id.equals(ToolWindowId.DEBUG) || !Registry.is("executor.actions.submenu", true); }
isExecutorInMainGroup
289,720
void (@NotNull ActionManager actionManager, @NotNull String actionId, @NotNull AnAction anAction, @NotNull String groupId, @NotNull Map<String, AnAction> map) { AnAction action = registerAction(actionManager, actionId, anAction, map); AnAction group = actionManager.getAction(groupId); if (group != null) { ((ActionManag...
registerActionInGroup
289,721
AnAction (@NotNull ActionManager actionManager, @NotNull String actionId, @NotNull AnAction anAction, @NotNull Map<String, AnAction> map) { AnAction action = actionManager.getAction(actionId); if (action == null) { actionManager.registerAction(actionId, anAction); map.put(actionId, anAction); action = anAction; } retur...
registerAction
289,722
void (@NotNull String actionId, @NotNull String groupId, @NotNull Map<String, AnAction> map) { ActionManager actionManager = ActionManager.getInstance(); DefaultActionGroup group = (DefaultActionGroup)actionManager.getAction(groupId); if (group == null) { return; } AnAction action = map.get(actionId); if (action != nul...
unregisterAction
289,723
Executor (@NotNull String executorId) { // even IJ Ultimate with all plugins has ~7 executors - linear search is ok here for (Executor executor : Executor.EXECUTOR_EXTENSION_NAME.getExtensionList()) { if (executorId.equals(executor.getId())) { return executor; } else if (executor instanceof ExecutorGroup<?> && executor...
getExecutorById
289,724
void (@NotNull ActionManager actionManager) { for (Executor executor : Executor.EXECUTOR_EXTENSION_NAME.getExtensionList()) { try { //noinspection TestOnlyProblems initExecutorActions(executor, actionManager); } catch (Throwable t) { LOG.error("executor initialization failed: " + executor.getClass().getName(), t); } } ...
init
289,725
ActionUpdateThread () { return ActionUpdateThread.BGT; }
getActionUpdateThread
289,726
void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); Project project = e.getProject(); if (project == null || !project.isInitialized() || project.isDisposed()) { presentation.setEnabled(false); return; } RunnerAndConfigurationSettings selectedSettings = getSelectedConfiguration(e); boolean...
update
289,727
boolean () { return false; }
hideDisabledExecutorButtons
289,728
RunCurrentFileActionStatus (@NotNull AnActionEvent e, boolean resetCache) { Project project = Objects.requireNonNull(e.getProject()); VirtualFile[] files = FileEditorManager.getInstance(project).getSelectedFiles(); if (files.length == 1) { // There's only one visible editor, let's use the file from this editor, even if...
getRunCurrentFileActionStatus
289,729
RunCurrentFileActionStatus (@NotNull PsiFile psiFile, boolean resetCache, @NotNull AnActionEvent e) { List<RunnerAndConfigurationSettings> runConfigs = getRunConfigsForCurrentFile(psiFile, resetCache); if (runConfigs.isEmpty()) { String tooltip = ExecutionBundle.message("run.button.on.toolbar.tooltip.current.file.not.r...
getRunCurrentFileActionStatus
289,730
List<RunnerAndConfigurationSettings> (@NotNull PsiFile psiFile, boolean resetCache) { if (resetCache) { psiFile.putUserData(CURRENT_FILE_RUN_CONFIGS_KEY, null); } // Without this cache, an expensive method `ConfigurationContext.getConfigurationsFromContext()` is called too often for 2 reasons: // - there are several bu...
getRunConfigsForCurrentFile
289,731
List<RunnerAndConfigurationSettings> (@NotNull List<? extends RunnerAndConfigurationSettings> runConfigs) { return ContainerUtil.filter(runConfigs, config -> ProgramRunner.getRunner(myExecutor.getId(), config.getConfiguration()) != null); }
filterConfigsThatHaveRunner
289,732
boolean (Project project) { for (ExecutionActionSuppressor suppressor : ExecutionActionSuppressor.EP_NAME.getExtensionList()) { if (suppressor.isSuppressed(project)) return true; } return false; }
isSuppressed
289,733
Icon (@NotNull Project project, @NotNull RunnerAndConfigurationSettings selectedConfiguration, @NotNull AnActionEvent e) { RunConfiguration configuration = selectedConfiguration.getConfiguration(); if (configuration instanceof RunnerIconProvider provider) { Icon icon = provider.getExecutorIcon(configuration, myExecutor...
getInformativeIcon
289,734
boolean (RunConfiguration configuration, List<RunContentDescriptor> runningDescriptors) { return !configuration.isAllowRunningInParallel() && !runningDescriptors.isEmpty(); }
needRerunPresentation
289,735
List<RunContentDescriptor> (@NotNull Project project, @NotNull RunnerAndConfigurationSettings selectedConfiguration) { ExecutionManagerImpl executionManager = ExecutionManagerImpl.getInstanceIfCreated(project); if (executionManager == null) return emptyList(); List<RunContentDescriptor> runningDescriptors = executionMa...
getRunningDescriptors
289,736
void (@NotNull Project project, @NotNull RunnerAndConfigurationSettings settings, @NotNull DataContext dataContext) { RunnerHelper.run(project, settings.getConfiguration(), settings, dataContext, myExecutor); }
run
289,737
void (@NotNull AnActionEvent e) { final Project project = e.getProject(); if (project == null || project.isDisposed()) { return; } RunnerAndConfigurationSettings selectedConfiguration = getSelectedConfiguration(e); if (selectedConfiguration != null) { run(project, selectedConfiguration, e.getDataContext()); } else if (...
actionPerformed
289,738
void (@NotNull AnActionEvent e) { Project project = Objects.requireNonNull(e.getProject()); List<RunnerAndConfigurationSettings> runConfigs = getRunCurrentFileActionStatus(e, true).myRunConfigs; if (runConfigs.isEmpty()) { return; } if (runConfigs.size() == 1) { doRunCurrentFile(project, runConfigs.get(0), e.getDataCon...
runCurrentFile
289,739
Component (JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) { RunnerAndConfigurationSettings runConfig = (RunnerAndConfigurationSettings)value; JLabel result = (JLabel)super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); result.setIcon(runConfig.getConfigura...
getListCellRendererComponent
289,740
void (@NotNull Project project, @NotNull RunnerAndConfigurationSettings runConfig, @NotNull DataContext dataContext) { ExecutionUtil.doRunConfiguration(runConfig, myExecutor, null, null, dataContext); }
doRunCurrentFile
289,741
RunnerAndConfigurationSettings (@NotNull AnActionEvent e) { return myRunConfig; }
getSelectedConfiguration
289,742
boolean () { // no need in a list of disabled actions in the secondary menu of the Run Configuration item in the combo box drop-down menu. return true; }
hideDisabledExecutorButtons
289,743
void (@NotNull AnActionEvent e) { super.update(e); if (myEditConfigBeforeRun) { Presentation presentation = e.getPresentation(); presentation.setText(ExecutionBundle.message("choose.run.popup.edit")); presentation.setDescription(ExecutionBundle.message("choose.run.popup.edit.description")); presentation.setIcon(!Experi...
update
289,744
void (@NotNull Project project, @NotNull RunnerAndConfigurationSettings settings, @NotNull DataContext dataContext) { LOG.assertTrue(myRunConfig == settings); if (myEditConfigBeforeRun) { String dialogTitle = ExecutionBundle.message("dialog.title.edit.configuration.settings"); if (!RunDialog.editConfiguration(project, ...
run
289,745
boolean () { // no need in a list of disabled actions in the secondary menu of the 'Current File' item in the combo box drop-down menu. return true; }
hideDisabledExecutorButtons
289,746
void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); if (e.getProject() == null || !RunConfigurationsComboBoxAction.hasRunCurrentFileItem(e.getProject())) { presentation.setEnabledAndVisible(false); return; } super.update(e); }
update
289,747
void (@NotNull AnActionEvent e) { super.update(e); Presentation presentation = e.getPresentation(); presentation.setText(ExecutionBundle.message("run.configurations.popup.edit.run.config.and.run.current.file")); presentation.setDescription(ExecutionBundle.message("run.configurations.popup.edit.run.config.and.run.curren...
update
289,748
void (@NotNull Project project, @NotNull RunnerAndConfigurationSettings runConfig, @NotNull DataContext dataContext) { String suggestedName = StringUtil.notNullize(((LocatableConfiguration)runConfig.getConfiguration()).suggestedName(), runConfig.getName()); List<String> usedNames = ContainerUtil.map(RunManager.getInsta...
doRunCurrentFile
289,749
ActionUpdateThread () { return ActionUpdateThread.BGT; }
getActionUpdateThread
289,750
void (@NotNull AnActionEvent e) { final Project project = e.getProject(); if (project == null || !project.isInitialized() || project.isDisposed()) { e.getPresentation().setEnabled(false); return; } e.getPresentation().setEnabledAndVisible(myExecutorGroup.isApplicable(project)); }
update
289,751
void (@NotNull Project project, @Nullable RunConfiguration configuration, @Nullable RunnerAndConfigurationSettings settings, @NotNull DataContext dataContext, @NotNull Executor executor) { if (settings != null) { RunConfigurationStartHistory.getInstance(project).register(settings); } runSubProcess(project, configuratio...
run
289,752
void (@NotNull Project project, @Nullable RunConfiguration configuration, @Nullable RunnerAndConfigurationSettings settings, @NotNull DataContext dataContext, @NotNull Executor executor, @Nullable Consumer<? super ExecutionEnvironment> environmentCustomization) { if (configuration instanceof CompoundRunConfiguration) {...
runSubProcess
289,753
boolean (@NotNull Project project, @NotNull Executor executor, RunConfiguration configuration) { List<SettingsAndEffectiveTarget> pairs; if (configuration instanceof CompoundRunConfiguration) { pairs = ((CompoundRunConfiguration)configuration).getConfigurationsWithEffectiveRunTargets(); } else { ExecutionTarget target ...
canRun
289,754
boolean (@NotNull Project project, @NotNull List<SettingsAndEffectiveTarget> pairs, @NotNull Executor executor) { if (pairs.isEmpty()) { return false; } for (SettingsAndEffectiveTarget pair : pairs) { RunConfiguration configuration = pair.getConfiguration(); if (configuration instanceof CompoundRunConfiguration) { if (...
canRun
289,755
RunCurrentFileActionStatus (@Nls @NotNull String tooltip, @NotNull Icon icon) { return new RunCurrentFileActionStatus(false, tooltip, icon, emptyList()); }
createDisabled
289,756
RunCurrentFileActionStatus (@Nls @NotNull String tooltip, @NotNull Icon icon, @NotNull List<RunnerAndConfigurationSettings> runConfigs) { return new RunCurrentFileActionStatus(true, tooltip, icon, runConfigs); }
createEnabled
289,757
void (final Element element) { element.setAttribute(VALUE_ATTRIBUTE, myUrl); }
writeExternal
289,758
String () { return localPathValue(myUrl); }
getLocalPath
289,759
String (String localPath) { return StringUtil.isEmptyOrSpaces(localPath) ? "" : VirtualFileManager.constructUrl(LocalFileSystem.PROTOCOL, FileUtilRt.toSystemIndependentName(localPath.trim())); }
urlValue
289,760
String (@Nullable String url) { return StringUtil.isEmptyOrSpaces(url) ? "" : FileUtilRt.toSystemDependentName(VirtualFileManager.extractPath(url.trim())); }
localPathValue
289,761
void () { myRenderer.setProjectDefaultTarget(TargetEnvironmentsManager.getInstance(myProject).getDefaultTarget()); hasSavedTargets = false; MyModel model = (MyModel)getModel(); model.removeAllElements(); model.addElement(null); Collection<Type<?>> types = new ArrayList<>(); for (TargetEnvironmentType<?> type : TargetEn...
initModel
289,762
void (@Nullable LanguageRuntimeType<?> defaultLanguageRuntimeType) { myDefaultRuntimeType = defaultLanguageRuntimeType; }
setDefaultLanguageRuntimeType
289,763
void (@NotNull TargetEnvironmentConfiguration config, int index) { if (!hasSavedTargets) { hasSavedTargets = true; ((MyModel)getModel()).insertElementAt(new Separator(ExecutionBundle.message("run.on.targets.label.saved.targets")), 1); ((MyModel)getModel()).insertElementAt(new LocalTarget(), 2); } ((MyModel)getModel())....
addTarget
289,764
void (List<? extends TargetEnvironmentConfiguration> configs) { int index = 3; for (TargetEnvironmentConfiguration config : configs) { addTarget(config, index); index++; } }
addTargets
289,765
void (String configName) { if (configName == null) { setSelectedItem(null); return; } for (int i = 0; i < getModel().getSize(); i++) { Item at = getModel().getElementAt(i); if (at instanceof Target && configName.equals(((Target)at).getTargetName())) { setSelectedItem(at); } } //todo[remoteServers]: add invalid value }
selectTarget
289,766
void () { Object selected = getSelectedItem(); boolean hasErrors = false; if (selected instanceof SavedTarget target) { target.revalidateConfiguration(); hasErrors = target.hasErrors(); } putClientProperty("JComponent.outline", hasErrors ? "error" : null); }
validateSelectedTarget
289,767
Icon () { return icon; }
getIcon
289,768
String () { return myTargetName; }
getTargetName
289,769
void () { try { myConfig.validateConfiguration(); myValidationInfo = null; } catch (RuntimeConfigurationException e) { myValidationInfo = new ValidationInfo(e.getLocalizedMessage()); } }
revalidateConfiguration
289,770
boolean () { return getValidationInfo() != null; }
hasErrors
289,771
Icon () { Icon rawIcon = super.getIcon(); return rawIcon != null && hasErrors() ? new InvalidRunConfigurationIcon(rawIcon) : rawIcon; }
getIcon
289,772
void (Object anObject) { if (anObject instanceof Separator) { return; } if (anObject instanceof Type) { hidePopup(); //noinspection unchecked,rawtypes TargetEnvironmentWizard wizard = ((Type)anObject).createWizard(myProject, myDefaultRuntimeType); if (wizard != null && wizard.showAndGet()) { TargetEnvironmentConfigurat...
setSelectedItem
289,773
void (@Nullable TargetEnvironmentConfiguration projectDefaultTarget) { myProjectDefaultTargetItem = projectDefaultTarget != null ? new SavedTarget(projectDefaultTarget) : null; }
setProjectDefaultTarget
289,774
Component (JList<? extends Item> list, Item value, int index, boolean selected, boolean hasFocus) { if (value instanceof Separator) { SeparatorWithText separator = new SeparatorWithText(); separator.setCaption(value.getDisplayName()); return separator; } return super.getListCellRendererComponent(list, value, index, sel...
getListCellRendererComponent
289,775
void (@NotNull JList<? extends Item> list, Item value, int index, boolean selected, boolean hasFocus) { if (value == null && !myHasSavedTargetsSupplier.get()) { /* `value` is expected to be `null` here */ append(ExecutionBundle.message("local.machine")); setIcon(AllIcons.Nodes.HomeFolder); } else if (value == null) { /...
customizeCellRenderer
289,776
int () { return AdvancedSettings.getInt(RECENTS_LIMIT_KEY); }
getRecentsLimit
289,777
void (int recentsLimit) { AdvancedSettings.setInt(RECENTS_LIMIT_KEY, Math.max(MIN_RECENT_LIMIT, recentsLimit)); }
setRecentsLimit
289,778
void () { if (propertyService != null) { if (propertyService.isValueSet(RECENTS_LIMIT)) { setRecentsLimit(Math.max(MIN_RECENT_LIMIT, StringUtil.parseInt(propertyService.getValue(RECENTS_LIMIT), DEFAULT_RECENT_LIMIT))); propertyService.unsetValue(RECENTS_LIMIT); } if (propertyService.isValueSet(RESTART_REQUIRES_CONFIRMA...
migrateToAdvancedSettings
289,779
boolean () { return AdvancedSettings.getBoolean(CONFIRM_RERUN_KEY); }
isRestartRequiresConfirmation
289,780
void (boolean restartRequiresConfirmation) { AdvancedSettings.setBoolean(CONFIRM_RERUN_KEY, restartRequiresConfirmation); }
setRestartRequiresConfirmation
289,781
boolean () { return propertyService == null || propertyService.getBoolean(DELETION_FROM_POPUP_REQUIRES_CONFIRMATION, true); }
isDeletionFromPopupRequiresConfirmation
289,782
void (boolean deletionFromPopupRequiresConfirmation) { if (propertyService != null) { propertyService.setValue(DELETION_FROM_POPUP_REQUIRES_CONFIRMATION, deletionFromPopupRequiresConfirmation, true); } }
setDeletionFromPopupRequiresConfirmation
289,783
boolean () { return propertyService == null || propertyService.getBoolean(STOP_INCOMPATIBLE_REQUIRES_CONFIRMATION, true); }
isStopIncompatibleRequiresConfirmation
289,784
void (boolean stopIncompatibleRequiresConfirmation) { if (propertyService != null) { propertyService.setValue(STOP_INCOMPATIBLE_REQUIRES_CONFIRMATION, stopIncompatibleRequiresConfirmation, true); } }
setStopIncompatibleRequiresConfirmation
289,785
void ( final @NotNull Project myProject, final @NotNull List<? extends Exception> errors, final @NotNull @NlsContexts.TabTitle String tabDisplayName, final @Nullable VirtualFile file) { showExceptions(myProject, errors, Collections.emptyList(), tabDisplayName, file); }
showErrors
289,786
void ( final @NotNull Project myProject, final @NotNull List<? extends Exception> errors, final @NotNull List<? extends Exception> warnings, final @NotNull @NlsContexts.TabTitle String tabDisplayName, final @Nullable VirtualFile file) { errors.forEach(it -> { LOG.warn(tabDisplayName + " error: " + it.getMessage()); });...
showExceptions
289,787
void ( final int messageCategory, final @NotNull List<? extends Exception> exceptions, @NotNull ErrorViewPanel errorTreeView, final @Nullable VirtualFile file, final @NotNull String defaultMessage) { for (final Exception exception : exceptions) { String message = exception.getMessage(); String[] messages = StringUtil.i...
addMessages
289,788
void (final @NotNull Project myProject, final @NotNull ProcessOutput output, final @NotNull @NlsContexts.TabTitle String tabDisplayName, final @Nullable VirtualFile file, final boolean activateWindow) { final String stdout = output.getStdout(); final String stderr = output.getStderr(); if (ApplicationManager.getApplica...
showOutput
289,789
void (final @NotNull ErrorViewPanel errorTreeView, final @NotNull Project myProject, final @NotNull @NlsContexts.TabTitle String tabDisplayName) { CommandProcessor commandProcessor = CommandProcessor.getInstance(); commandProcessor.executeCommand(myProject, () -> { final MessageView messageView = MessageView.getInstanc...
openMessagesView
289,790
Collection<RunContentDescriptor> (final Project project, final @NotNull NotNullFunction<? super String, Boolean> titleMatcher) { return findRunningConsole(project, selectedContent -> titleMatcher.fun(selectedContent.getDisplayName())); }
findRunningConsoleByTitle
289,791
Collection<RunContentDescriptor> (@NotNull Project project, @NotNull NotNullFunction<? super RunContentDescriptor, Boolean> descriptorMatcher) { return ReadAction.compute(() -> { RunContentManager contentManager = RunContentManager.getInstance(project); final RunContentDescriptor selectedContent = contentManager.getSel...
findRunningConsole
289,792
List<RunContentDescriptor> (@NotNull Project project, @NotNull NotNullFunction<? super String, Boolean> titleMatcher) { List<RunContentDescriptor> result = new SmartList<>(); for (RunContentDescriptor runContentDescriptor : ExecutionManagerImpl.getAllDescriptors(project)) { if (titleMatcher.fun(runContentDescriptor.get...
collectConsolesByDisplayName
289,793
void (final @NotNull DataContext dataContext, final @NotNull Project project, @NotNull Collection<? extends RunContentDescriptor> contentDescriptors, @NlsContexts.PopupTitle String selectDialogTitle, final Consumer<? super RunContentDescriptor> descriptorConsumer) { if (contentDescriptors.size() == 1) { RunContentDescr...
selectContentDescriptor
289,794
void (final @NotNull Project project, final @NotNull RunContentDescriptor descriptor) { ApplicationManager.getApplication().invokeLater(() -> { RunContentManager manager = RunContentManager.getInstance(project); ToolWindow toolWindow = manager.getToolWindowByDescriptor(descriptor); if (toolWindow != null) { toolWindow....
descriptorToFront
289,795
boolean () { return false; }
canHideWarnings
289,796
void (final @Nullable Project myProject, final @NotNull ProcessHandler processHandler, final @NotNull ExecutionMode mode, final @NotNull GeneralCommandLine cmdline) { executeExternalProcess(myProject, processHandler, mode, cmdline.getCommandLineString()); }
executeExternalProcess
289,797
void (final @Nullable Project myProject, final @NotNull ProcessHandler processHandler, final @NotNull ExecutionMode mode, final @NotNull String presentableCmdline) { if (ApplicationManager.getApplication().isUnitTestMode()) { LOG.debug("Running " + presentableCmdline); processHandler.waitFor(); return; } final String t...
executeExternalProcess
289,798
void (final @NotNull ProgressIndicator indicator) { process.run(); }
run
289,799
Runnable (@NotNull ProcessHandler processHandler, @Nullable BooleanSupplier cancelableFun) { return new Runnable() { private ProgressIndicator myProgressIndicator; private final Semaphore mySemaphore = new Semaphore(); private final Runnable myWaitThread = () -> { try { processHandler.waitFor(); } finally { mySemaphore...
createCancelableExecutionProcess