Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
291,000
int () { return selectedConfigurationType != HIDDEN_ITEMS_STUB ? typesToShow.indexOf(selectedConfigurationType) : super.getDefaultOptionIndex(); }
getDefaultOptionIndex
291,001
String (final ConfigurationFactory value) { return value.getName(); }
getTextFor
291,002
Icon (final ConfigurationFactory factory) { return factory.getIcon(); }
getIconFor
291,003
boolean (final ConfigurationType type) { return type.getConfigurationFactories().length > 1; }
hasSubstep
291,004
void () { List<ConfigurationType> values = step.getValues(); values.clear(); values.addAll(RunConfigurable.Companion.configurationTypeSorted(project, false, ConfigurationType.CONFIGURATION_TYPE_EP.getExtensionList(), true)); getListModel().updateOriginalList(); super.onSpeedSearchPatternChanged(); }
onSpeedSearchPatternChanged
291,005
JBPopup (@NotNull Project project, final @NotNull Consumer<? super ConfigurationFactory> creator, final @Nullable ConfigurationType selectedConfigurationType, boolean showTitle) { NewRunConfigurationTreePopupFactory treePopupFactory = ApplicationManager.getApplication().getService(NewRunConfigurationTreePopupFactory.cl...
createAddTreePopup
291,006
Object () { return treePopupFactory.getRootElement(); }
getRootElement
291,007
void () { }
commit
291,008
boolean () { return false; }
hasSomethingToCommit
291,009
boolean (Object node, Object userData) { if (!(userData instanceof NodeDescriptor)) return false; if (getStructure().getChildElements(userData).length > 0) return false; userData = ((NodeDescriptor<?>)userData).getElement(); if (!project.isDefault() && DumbService.getInstance(project).isDumb() && !NewRunConfigurationTr...
isSelectable
291,010
void () { super.afterShow(); isAutoSelectionPassed.set(true); scrollToSelection(); }
afterShow
291,011
boolean (Object value) { NodeDescriptor<?> parent = (value instanceof NodeDescriptor) ? ((NodeDescriptor<?>)value).getParentDescriptor() : null; return super.shouldBeShowing(value) || (parent != null && super.shouldBeShowing(parent)); }
shouldBeShowing
291,012
void (@NotNull AnActionEvent e) { treePopup.collapseAll(); }
actionPerformed
291,013
void (boolean active) { }
setActive
291,014
JComponent () { return toolbar.getComponent(); }
getComponent
291,015
void (JPanel addTo, @Nullable JLabel nameLabel) { addTo.setBorder(JBUI.Borders.emptyLeft(5)); UI.PanelFactory.panel(myPanel) .withLabel(ExecutionBundle.message("run.on")) .withComment(ExecutionBundle.message("edit.run.configuration.run.configuration.run.on.comment")) .addToPanel(addTo, new GridBagConstraints(0, 0, 1, 1...
buildUi
291,016
void () { RunConfiguration configuration = mySettings.getConfiguration(); boolean targetAware = configuration instanceof TargetEnvironmentAwareRunProfile && ((TargetEnvironmentAwareRunProfile)configuration).getDefaultLanguageRuntimeType() != null && RunTargetsEnabled.get(); myPanel.getParent().setVisible(targetAware); ...
reset
291,017
void () { RunConfiguration runConfiguration = mySettings.getConfiguration(); if (runConfiguration instanceof TargetEnvironmentAwareRunProfile) { ((TargetEnvironmentAwareRunProfile)runConfiguration).setDefaultTargetName(myDefaultTargetName); } }
apply
291,018
void (String chosenTarget) { myDefaultTargetName = chosenTarget; if (myEditor instanceof TargetAwareRunConfigurationEditor) { ((TargetAwareRunConfigurationEditor)myEditor).targetChanged(chosenTarget); } }
setTargetName
291,019
void (@Nullable String targetNameToChoose) { myRunOnComboBox.initModel(); List<TargetEnvironmentConfiguration> configs = TargetEnvironmentsManager.getInstance(myProject).getTargets().resolvedConfigs(); myRunOnComboBox.addTargets(ContainerUtil.filter(configs, configuration -> { return TargetEnvironmentConfigurationKt.ge...
resetRunOnComboBox
291,020
boolean (final Project project, @NotNull RunnerAndConfigurationSettings configuration, @NlsContexts.DialogTitle String title) { return editConfiguration(project, configuration, title, null); }
editConfiguration
291,021
boolean (@NotNull ExecutionEnvironment environment, @NotNull @NlsContexts.DialogTitle String title) { //noinspection ConstantConditions return editConfiguration(environment.getProject(), environment.getRunnerAndConfigurationSettings(), title, environment.getExecutor()); }
editConfiguration
291,022
boolean (final Project project, @NotNull RunnerAndConfigurationSettings configuration, @NlsContexts.DialogTitle String title, final @Nullable Executor executor) { SingleConfigurationConfigurable<RunConfiguration> configurable = SingleConfigurationConfigurable.editSettings(configuration, executor); final SingleConfigura...
editConfiguration
291,023
Dimension () { return new Dimension(650, 500); }
getInitialSize
291,024
void (@NotNull DocumentEvent event) { setModified(true); if (!myChangingNameFromCode) { RunConfiguration runConfiguration = getSettings().getConfiguration(); if (runConfiguration instanceof LocatableConfigurationBase) { ((LocatableConfigurationBase<?>)runConfiguration).setNameChangedByUser(true); } } }
textChanged
291,025
void (@NotNull SettingsEditor<RunnerAndConfigurationSettings> settingsEditor) { requestToUpdateWarning(); }
stateChanged
291,026
void () { RunnerAndConfigurationSettings configuration = getSettings(); setNameText(configuration.getName()); super.reset(); if (myComponent == null) { myComponent = new MyValidatableComponent(); } myComponent.doReset(); myRunOnTargetPanel.reset(); }
reset
291,027
void () { if (myComponent == null) return; ModalityState modalityState = ModalityState.stateForComponent(myComponent.myWholePanel); if (modalityState == ModalityState.nonModal()) return; myValidationRequested = true; myValidationAlarm.cancelAllRequests(); myValidationAlarm.addRequest(() -> { if (myComponent != null) { ...
addValidationRequest
291,028
boolean () { return getEditor() instanceof RunnerAndConfigurationSettingsEditor && ((RunnerAndConfigurationSettingsEditor)getEditor()).isInplaceValidationSupported(); }
isInplaceValidationSupported
291,029
JComponent () { myComponent.myNameText.setEnabled(!myBrokenConfiguration); JComponent result = myComponent.getWholePanel(); DataManager.registerDataProvider(result, dataId -> { if (myComponent == null) { return null; // disposed } if (ConfigurationSettingsEditorWrapper.CONFIGURATION_EDITOR_KEY.is(dataId)) { return getE...
createComponent
291,030
void (@NotNull RunConfiguration configuration) { RunnerAndConfigurationSettingsImpl settings = RunManagerImpl.getInstanceImpl(myProject).getSettings(configuration); RunDialog.editConfiguration(myProject, Objects.requireNonNull(settings), ExecutionBundle.message("edit.run.configuration.for.item.dialog.title", configurat...
select
291,031
boolean () { return myComponent != null && myComponent.myRCStorageUi != null && myComponent.myRCStorageUi.isStoredInFile(); }
isStoredInFile
291,032
void (RunnerAndConfigurationSettings snapshot) { getValidateAction(snapshot) .expireWith(getEditor()) .coalesceBy(getEditor()) .finishOnUiThread(ModalityState.current(), this::setValidationResult) .submit(NonUrgentExecutor.getInstance()); }
validateResultOnBackgroundThread
291,033
void (ValidationResult result) { myLastValidationResult = result; if (myComponent != null && !isInplaceValidationSupported()) { myComponent.updateValidationResultVisibility(result); } for (ValidationListener listener : myValidationListeners) { listener.validationCompleted(result); } }
setValidationResult
291,034
boolean () { if (!myValidationRequested) { addValidationRequest(); } return myLastValidationResult == null; }
isValid
291,035
NonBlockingReadAction<ValidationResult> (RunnerAndConfigurationSettings snapshot) { return ReadAction.nonBlocking(() -> { try { snapshot.checkSettings(myExecutor); for (Executor executor : Executor.EXECUTOR_EXTENSION_NAME.getExtensionList()) { ProgramRunner<?> runner = ProgramRunner.getRunner(executor.getId(), snapshot...
getValidateAction
291,036
ValidationResult (RunnerAndConfigurationSettings snapshot, ConfigurationException e) { if (!e.shouldShowInDumbMode() && DumbService.isDumb(myProject)) return null; return new ValidationResult( e.getLocalizedMessage(), e instanceof RuntimeConfigurationException ? e.getTitle() : ExecutionBundle.message("invalid.data.dial...
createValidationResult
291,037
void () { super.disposeUIResources(); myComponent = null; }
disposeUIResources
291,038
String () { try { return myNameDocument.getText(0, myNameDocument.getLength()); } catch (BadLocationException e) { LOG.error(e); return ""; } }
getNameText
291,039
void (DocumentListener listener) { myNameDocument.addDocumentListener(listener); }
addNameListener
291,040
void (ActionListener listener) { if (myComponent.myRCStorageUi != null) { myComponent.myRCStorageUi.addStoreAsFileCheckBoxListener(listener); } }
addSharedListener
291,041
void (final String name) { myChangingNameFromCode = true; try { try { if (!myNameDocument.getText(0, myNameDocument.getLength()).equals(name)) { myNameDocument.replace(0, myNameDocument.getLength(), name, null); } } catch (BadLocationException e) { LOG.error(e); } } finally { myChangingNameFromCode = false; } }
setNameText
291,042
JTextField () { return myComponent.myNameText; }
getNameTextField
291,043
String () { return myDisplayName; }
getDisplayName
291,044
String () { return myHelpTopic; }
getHelpTopic
291,045
Config () { //noinspection unchecked return (Config)getSettings().getConfiguration(); }
getConfiguration
291,046
String () { return myDisplayName; }
toString
291,047
void (@Nullable String folderName) { if (!Objects.equals(myFolderName, folderName)) { myFolderName = folderName; setModified(true); } }
setFolderName
291,048
void (final ActionEvent e) { if (myQuickFix == null) { return; } myQuickFix.run(); requestToUpdateWarning(); }
actionPerformed
291,049
void () { RunConfiguration configuration = getSettings().getConfiguration(); boolean isManagedRunConfiguration = configuration.getType().isManaged(); if (myRCStorageUi != null) { myRCStorageUi.reset(getSettings()); } myRunOnTargetPanel.reset(); myIsAllowRunningInParallel = configuration.isAllowRunningInParallel(); myIs...
doReset
291,050
JComponent () { return myWholePanel; }
getWholePanel
291,051
JComponent () { return getEditor().getComponent(); }
getEditorComponent
291,052
void (ValidationResult configurationException) { if (configurationException != null) { mySeparator.setVisible(true); myWarningLabel.setVisible(true); myWarningLabel.setText(generateWarningLabelText(configurationException)); final Runnable quickFix = configurationException.getQuickFix(); if (quickFix == null) { myFixBut...
updateValidationResultVisibility
291,053
void () { myComponentPlace = new NonOpaquePanel(); myJBScrollPane = wrapWithScrollPane(null); }
createUIComponents
291,054
boolean () { return getEditor() instanceof ConfigurationSettingsEditorWrapper && getSettings().getFactory().getSingletonPolicy().isPolicyConfigurable(); }
hasParallelCheckBox
291,055
boolean () { return !"disabled".equalsIgnoreCase(System.getProperty("idea.cycle.buffer.size")); }
useCycleBuffer
291,056
int () { UISettings uiSettings = UISettings.getInstance(); if (uiSettings.getOverrideConsoleCycleBufferSize()) { return Math.min(Integer.MAX_VALUE / 1024, uiSettings.getConsoleCycleBufferSizeKb()) * 1024; } return getLegacyCycleBufferSize(); }
getCycleBufferSize
291,057
int () { return Math.max(0, SystemProperties.getIntProperty("idea.cycle.buffer.size", 1024)) * 1024; }
getLegacyCycleBufferSize
291,058
void () { if (myProject.isDisposed()) { LOG.error("Disposed" + "\n" + StringUtil.getThrowableText(myAllocationPlace)); } }
performCheck
291,059
void () { super.init(); setTitle(ExecutionBundle.message("execute.before.run.debug.dialog.title", getTargetDisplayString())); }
init
291,060
JComponent () { JPanel panel = new JPanel(new BorderLayout()); myRoot = buildNodes(); final Tree tree = new Tree(myRoot); final MyTreeCellRenderer cellRenderer = new MyTreeCellRenderer(); tree.setCellRenderer(cellRenderer); tree.setRootVisible(false); tree.setShowsRootHandles(true); TreeUtil.installActions(tree); TreeU...
createCenterPanel
291,061
void (MouseEvent e) { int row = tree.getRowForLocation(e.getX(), e.getY()); if (row >= 0) { Rectangle rowBounds = tree.getRowBounds(row); cellRenderer.setBounds(rowBounds); Rectangle checkBounds = cellRenderer.myCheckbox.getBounds(); checkBounds.setLocation(rowBounds.getLocation()); if (checkBounds.contains(e.getPoint(...
mousePressed
291,062
void (KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_SPACE) { TreePath treePath = tree.getLeadSelectionPath(); DefaultMutableTreeNode node = (DefaultMutableTreeNode)treePath.getLastPathComponent(); toggleNode(tree, node); e.consume(); } }
keyPressed
291,063
void (Tree tree) { TreeNode root = (TreeNode)tree.getModel().getRoot(); Enumeration<?> factories = root.children(); ArrayList<TreeNode[]> toExpand = new ArrayList<>(); while (factories.hasMoreElements()) { DefaultMutableTreeNode factoryNode = (DefaultMutableTreeNode)factories.nextElement(); Enumeration<?> configuration...
expandChecked
291,064
void (JTree tree, DefaultMutableTreeNode node) { Descriptor descriptor = (Descriptor)node.getUserObject(); descriptor.setChecked(!descriptor.isChecked()); if (descriptor instanceof GroupConfigurationDescriptor) { TreeUtil.treeNodeTraverser(node).forEach(child -> { ((Descriptor)((DefaultMutableTreeNode)child).getUserObj...
toggleNode
291,065
DefaultMutableTreeNode () { DefaultMutableTreeNode root = new DefaultMutableTreeNode(new Descriptor()); RunManagerImpl runManager = RunManagerImpl.getInstanceImpl(myProject); for (Map.Entry<ConfigurationType, Map<String, List<RunnerAndConfigurationSettings>>> entry : runManager.getConfigurationsGroupedByTypeAndFolder(f...
buildNodes
291,066
void (DefaultMutableTreeNode root) { DefaultMutableTreeNode node = new DefaultMutableTreeNode(TEMPLATE_ROOT); root.add(node); for (ConfigurationType type : ConfigurationType.CONFIGURATION_TYPE_EP.getExtensionList()) { if (!(type instanceof VirtualConfigurationType)) { Icon icon = type.getIcon(); DefaultMutableTreeNode ...
buildTemplatesNode
291,067
boolean (ConfigurationType type) { final RunManager runManager = RunManager.getInstance(myProject); for (ConfigurationFactory factory : type.getConfigurationFactories()) { final RunnerAndConfigurationSettings settings = ((RunManagerImpl)runManager).getConfigurationTemplate(factory); if (isConfigurationAssigned(settings...
isConfigurationAssigned
291,068
boolean (RunConfiguration configuration) { for (T task : RunManagerEx.getInstanceEx(myProject).getBeforeRunTasks(configuration, getTaskId())) { if (isRunning(task)) return true; } return false; }
isConfigurationAssigned
291,069
void () { final RunManagerImpl runManager = RunManagerImpl.getInstanceImpl(myProject); for (Enumeration<?> nodes = myRoot.depthFirstEnumeration(); nodes.hasMoreElements(); ) { final DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); Object object = node.getUserObject(); if (!(object instanceof D...
doOKAction
291,070
void (RunConfiguration config, boolean enabled, RunManagerImpl runManager) { List<BeforeRunTask<?>> tasks = RunManagerImplKt.doGetBeforeRunTasks(config); BeforeRunTaskProvider<T> provider = BeforeRunTaskProvider.getProvider(myProject, getTaskId()); if (provider == null) { return; } T task = Objects.requireNonNull(provi...
update
291,071
boolean () { return myChecked; }
isChecked
291,072
void (boolean checked) { myChecked = checked; }
setChecked
291,073
ConfigurationType () { return myConfigurationType; }
getConfigurationType
291,074
Icon () { return myIcon; }
getIcon
291,075
ConfigurationType () { return myConfigurationType; }
getConfigurationType
291,076
Icon () { return myIcon; }
getIcon
291,077
ConfigurationType () { return myConfiguration.getType(); }
getConfigurationFactory
291,078
RunConfiguration () { return myConfiguration; }
getConfiguration
291,079
Component (JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)value; Object object = node.getUserObject(); myCheckbox.setBackground(UIUtil.getTreeBackground()); setBackground(UIUtil.getTreeBackground(selected, tr...
getTreeCellRendererComponent
291,080
CompositeSettingsBuilder<RunnerAndConfigurationSettings> () { init(); myGroupSettingsBuilder = new GroupSettingsBuilder<>(myCompound); return myGroupSettingsBuilder; }
getBuilder
291,081
void () { if (myCompound == null) { myCompound = new SettingsEditorGroup<>(); Disposer.register(this, myCompound); if (myConfigurationEditor instanceof SettingsEditorGroup<RunConfiguration> group) { List<Pair<@TabTitle String, SettingsEditor<RunConfiguration>>> editors = group.getEditors(); for (Pair<@TabTitle String, ...
init
291,082
CompositeSettingsBuilder<RunnerAndConfigurationSettings> () { return new CompositeSettingsBuilder<>() { @Override public @NotNull Collection<SettingsEditor<RunnerAndConfigurationSettings>> getEditors() { return myRunnerEditors; } @Override public @NotNull JComponent createCompoundEditor() { return myRunnersComponent.ge...
getBuilder
291,083
Collection<SettingsEditor<RunnerAndConfigurationSettings>> () { return myRunnerEditors; }
getEditors
291,084
JComponent () { return myRunnersComponent.getComponent(); }
createCompoundEditor
291,085
void (String targetName) { for (SettingsEditor<RunnerAndConfigurationSettings> editor : myEditors) { if (editor instanceof TargetAwareRunConfigurationEditor) { ((TargetAwareRunConfigurationEditor)editor).targetChanged(targetName); } } }
targetChanged
291,086
void (ListSelectionEvent e) { updateRunnerComponent(); }
valueChanged
291,087
void () { Executor executor = myRunnersList.getSelectedValue(); myLayout.show(myRunnerPanel, executor != null ? executor.getId() : NO_RUNNER_COMPONENT); myRunnersPanel.revalidate(); }
updateRunnerComponent
291,088
void (Executor executor, JComponent component) { myRunnerPanel.add(component, executor.getId()); myListModel.addElement(executor); ScrollingUtil.ensureSelectionExists(myRunnersList); }
addExecutorComponent
291,089
List<Executor> () { return Collections.list(myListModel.elements()); }
getExecutors
291,090
void (Executor executor) { myRunnersList.setSelectedValue(executor, true); }
selectExecutor
291,091
JComponent () { return myRunnersPanel; }
getComponent
291,092
SettingsEditor<RunConfiguration> () { return myConfigEditor; }
getConfigEditor
291,093
void (@NotNull RunnerAndConfigurationSettings configurationSettings) { myConfigEditor.resetFrom(configurationSettings.getConfiguration()); }
resetEditorFrom
291,094
JComponent () { JComponent component = myConfigEditor.getComponent(); if (myConfigEditor instanceof AdjustingTabSettingsEditor) { JPanel panel = new JPanel(new BorderLayout()); UiNotifyConnector connector = UiNotifyConnector.installOn(panel, new Activatable() { private boolean myIsEmpty = true; @Override public void sh...
createEditor
291,095
void () { if (myIsEmpty) { panel.add(component, BorderLayout.CENTER); panel.revalidate(); panel.repaint(); myIsEmpty = false; } }
showNotify
291,096
void () { if (!myIsEmpty) { panel.removeAll(); panel.revalidate(); panel.repaint(); myIsEmpty = true; } }
hideNotify
291,097
void () { Disposer.dispose(myConfigEditor); }
disposeEditor
291,098
void (String targetName) { if (myConfigEditor instanceof TargetAwareRunConfigurationEditor) { ((TargetAwareRunConfigurationEditor)myConfigEditor).targetChanged(targetName); } }
targetChanged
291,099
void (@NotNull PsiElement newElement) { boolean hasGeneratedName = myConfiguration.isGeneratedName(); myListener.elementMoved(newElement); if (hasGeneratedName) { updateSuggestedName(); } }
elementMoved