Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
265,800
List<DiffHyperlink> () { final DiffHyperlink provider = getDiffViewerProvider(); return ContainerUtil.createMaybeSingletonList(provider); }
getDiffViewerProviders
265,801
String () { return null; }
getStacktrace
265,802
DiffHyperlink () { DiffHyperlink provider = getDiffViewerProvider(); if (provider != null) return provider; if (isDefect()) { for (AbstractTestProxy child : getChildren()) { provider = child.getLeafDiffViewerProvider(); if (provider != null) return provider; } } return null; }
getLeafDiffViewerProvider
265,803
DiffHyperlink () { return null; }
getDiffViewerProvider
265,804
DiffHyperlink (String expected, String actual, String filePath, final String actualFilePath, final boolean printOneLine) { DiffHyperlink hyperlink = super.createHyperlink(expected, actual, filePath, actualFilePath, printOneLine); hyperlink.setTestProxy(this); return hyperlink; }
createHyperlink
265,805
String () { return null; }
getLocationUrl
265,806
String () { return null; }
getMetainfo
265,807
String () { return null; }
getErrorMessage
265,808
TestProxyRoot (@NotNull AbstractTestProxy proxy) { if (proxy instanceof TestProxyRoot) { return (TestProxyRoot)proxy; } AbstractTestProxy parent = proxy.getParent(); while (parent != null && !(parent instanceof TestProxyRoot)) { parent = parent.getParent(); } return parent != null ? (TestProxyRoot)parent : null; }
getTestRoot
265,809
Project () { return myProject; }
getProject
265,810
void () { if (myConnection == null) { myDisposable = Disposer.newDisposable(); Disposer.register(myProject, myDisposable); EditorFactory.getInstance().getEventMulticaster().addDocumentListener(myListener, myDisposable); myConnection = ApplicationManager.getApplication().getMessageBus().connect(myProject); myConnection....
activate
265,811
void () { myDocumentSavingInProgress = true; ApplicationManager.getApplication().invokeLater(() -> myDocumentSavingInProgress = false, ModalityState.any()); }
beforeAllDocumentsSaving
265,812
void (@Nullable Lookup oldLookup, @Nullable Lookup newLookup) { if (newLookup == null && !myChangedFiles.isEmpty()) { myAlarm.cancelAndRequest(); } }
activeLookupChanged
265,813
void () { if (myDisposable != null) { Disposer.dispose(myDisposable); myDisposable = null; } if (myConnection != null) { myConnection.disconnect(); myConnection = null; } }
deactivate
265,814
void (@NotNull DocumentEvent event) { if (myDocumentSavingInProgress) { /* When {@link FileDocumentManager#saveAllDocuments} is called, {@link com.intellij.openapi.editor.impl.TrailingSpacesStripper} can change a document. These needless 'documentChanged' events should be filtered out. */ return; } final VirtualFile fi...
documentChanged
265,815
void () { final int oldModificationStamp = myModificationStamp; asyncCheckErrors(myChangedFiles, errorsFound -> { if (myDisposable == null) { return; } if (myModificationStamp != oldModificationStamp) { // 'documentChanged' event was raised during async checking files for errors // Do nothing in that case, this method ...
run
265,816
void (@NotNull Collection<? extends VirtualFile> files, @NotNull Consumer<? super Boolean> errorsFoundConsumer) { ApplicationManager.getApplication().executeOnPooledThread(() -> { final boolean errorsFound = ReadAction.compute(() -> { for (VirtualFile file : files) { if (PsiErrorElementUtil.hasErrors(myProject, file)) ...
asyncCheckErrors
265,817
ActionUpdateThread () { return ActionUpdateThread.BGT; }
getActionUpdateThread
265,818
void (@NotNull AnActionEvent e) { RunContentDescriptor descriptor = LangDataKeys.RUN_CONTENT_DESCRIPTOR.getData(myDataContext); boolean visible = false; if (descriptor != null) { for (AnAction action : descriptor.getRestartActions()) { if (action instanceof ToggleAutoTestAction) { visible = ((ToggleAutoTestAction)actio...
update
265,819
boolean (@NotNull AnActionEvent e) { Project project = e.getProject(); return project != null && AutoTestManager.getInstance(project).getDelay() == myDelay; }
isSelected
265,820
ActionUpdateThread () { return ActionUpdateThread.BGT; }
getActionUpdateThread
265,821
void (@NotNull AnActionEvent e, boolean state) { Project project = e.getProject(); if (project != null) { AutoTestManager.getInstance(project).setDelay(myDelay); } }
setSelected
265,822
boolean (@NotNull AnActionEvent e) { Project project = e.getProject(); RunContentDescriptor descriptor = e.getData(LangDataKeys.RUN_CONTENT_DESCRIPTOR); return project != null && descriptor != null && getAutoTestManager(project).isAutoTestEnabled(descriptor); }
isSelected
265,823
ActionUpdateThread () { return ActionUpdateThread.EDT; }
getActionUpdateThread
265,824
void (@NotNull AnActionEvent e, boolean state) { Project project = e.getData(CommonDataKeys.PROJECT); RunContentDescriptor descriptor = e.getData(LangDataKeys.RUN_CONTENT_DESCRIPTOR); ExecutionEnvironment environment = e.getData(ExecutionDataKeys.EXECUTION_ENVIRONMENT); if (project != null && descriptor != null && envi...
setSelected
265,825
boolean () { return true; }
isDelayApplicable
265,826
AbstractAutoTestManager (Project project) { return AutoTestManager.getInstance(project); }
getAutoTestManager
265,827
void (@NotNull ProcessHandler processHandler) { ProcessListener restarterListener = ON_TERMINATION_RESTARTER_KEY.get(processHandler, null); if (restarterListener != null) { processHandler.removeProcessListener(restarterListener); ON_TERMINATION_RESTARTER_KEY.set(processHandler, null); } }
clearRestarterListener
265,828
void (@NotNull RunContentDescriptor descriptor) { descriptor.setActivateToolWindowWhenAdded(false); descriptor.setReuseToolWindowActivation(true); ExecutionUtil.restart(descriptor); }
restart
265,829
void (@NotNull State state, @NotNull RunProfile profile) { RunConfiguration runConfiguration = ObjectUtils.tryCast(profile, RunConfiguration.class); if (runConfiguration != null) { RunConfigurationDescriptor descriptor = new RunConfigurationDescriptor(); descriptor.myType = runConfiguration.getType().getId(); descripto...
saveConfigurationState
265,830
List<RunConfiguration> (@NotNull State state, @NotNull Project project) { List<RunConfiguration> configurations = new ArrayList<>(); RunManagerImpl runManager = RunManagerImpl.getInstanceImpl(project); List<RunConfigurationDescriptor> descriptors = ContainerUtil.notNullize(state.myEnabledRunConfigurations); for (RunCon...
loadConfigurations
265,831
void () { if (myWatcher == null) { myWatcher = createWatcher(myProject); } myWatcher.activate(); }
activateWatcher
265,832
void () { if (myWatcher != null) { myWatcher.deactivate(); myWatcher = null; } }
deactivateWatcher
265,833
boolean () { return ContainerUtil.exists(RunContentManager.getInstance(myProject).getAllDescriptors(), this::isAutoTestEnabled); }
hasEnabledAutoTests
265,834
void (int modificationStamp) { restartAllAutoTests(() -> myWatcher != null); }
restartAllAutoTests
265,835
void (@NotNull BooleanSupplier isUpToDate) { List<RunContentDescriptor> autoTestDescriptors = RunContentManager.getInstance(myProject).getAllDescriptors().stream() .filter(this::isAutoTestEnabled).toList(); for (RunContentDescriptor descriptor : autoTestDescriptors) { restartAutoTest(descriptor, isUpToDate); } if (auto...
restartAllAutoTests
265,836
void (@NotNull RunContentDescriptor descriptor, @NotNull BooleanSupplier isUpToDate) { ProcessHandler processHandler = descriptor.getProcessHandler(); if (processHandler != null && !processHandler.isProcessTerminated()) { scheduleRestartOnTermination(descriptor, processHandler, isUpToDate); } else { restart(descriptor)...
restartAutoTest
265,837
void (@NotNull RunContentDescriptor descriptor, @NotNull ProcessHandler processHandler, @NotNull BooleanSupplier isUpToDate) { ProcessListener restarterListener = ON_TERMINATION_RESTARTER_KEY.get(processHandler); if (restarterListener != null) { clearRestarterListener(processHandler); } restarterListener = new ProcessA...
scheduleRestartOnTermination
265,838
void (@NotNull ProcessEvent event) { clearRestarterListener(processHandler); ApplicationManager.getApplication().invokeLater(() -> { if (isAutoTestEnabled(descriptor) && isUpToDate.getAsBoolean()) { restart(descriptor); } }, ModalityState.any()); }
processTerminated
265,839
void (@NotNull State state) { List<RunConfiguration> configurations = loadConfigurations(state, myProject); myEnabledRunProfiles.clear(); myEnabledRunProfiles.addAll(configurations); if (!configurations.isEmpty()) { activateWatcher(); } }
loadState
265,840
AutoTestManager (Project project) { return project.getService(AutoTestManager.class); }
getInstance
265,841
AutoTestWatcher (@NotNull Project project) { return new DelayedDocumentWatcher(project, getDelay(), this, (Predicate<? super VirtualFile>)file -> { if (ScratchUtil.isScratch(file)) { return false; } // Vladimir.Krivosheev - I don't know, why AutoTestManager checks it, but old behavior is preserved return FileEditorMana...
createWatcher
265,842
ActionUpdateThread () { return ActionUpdateThread.BGT; }
getActionUpdateThread
265,843
void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(getAction(e, false)); }
update
265,844
void (@NotNull AnActionEvent e) { getAction(e, true); }
actionPerformed
265,845
boolean (@NotNull AnActionEvent e, boolean execute) { Project project = e.getProject(); if (project == null) { return false; } RunContentDescriptor contentDescriptor = RunContentManager.getInstance(project).getSelectedContent(); if (contentDescriptor == null) { return false; } JComponent component = contentDescriptor.g...
getAction
265,846
void (final TestFrameworkRunningModel model) { myModel = model; Disposer.register(model, new Disposable() { @Override public void dispose() { myModel = null; } }); }
setModel
265,847
void () { myModel = null; }
dispose
265,848
void () { TreeUtil.expandAll(myModel.getTreeView()); }
expandAll
265,849
boolean () { return treeHasMoreThanOneLevel(); }
canExpand
265,850
void () { TreeUtil.collapseAll(myModel.getTreeView(), 1); }
collapseAll
265,851
boolean () { return treeHasMoreThanOneLevel(); }
canCollapse
265,852
boolean () { return myModel != null && myModel.hasTestSuites(); }
treeHasMoreThanOneLevel
265,853
ActionUpdateThread () { return ActionUpdateThread.BGT; }
getActionUpdateThread
265,854
void (@NotNull final AnActionEvent e) { if (!e.getPresentation().isVisible()) { return; } if (!openDiff(e.getDataContext(), null)) { final Component component = e.getData(PlatformCoreDataKeys.CONTEXT_COMPONENT); Messages.showInfoMessage(component, TestRunnerBundle.message("dialog.message.comparison.error.was.found"), T...
actionPerformed
265,855
boolean (DataContext context, @Nullable DiffHyperlink currentHyperlink) { final AbstractTestProxy testProxy = AbstractTestProxy.DATA_KEY.getData(context); final Project project = CommonDataKeys.PROJECT.getData(context); if (project == null) return false; ListSelection<DiffHyperlink> hyperlinks = null; if (currentHyperl...
openDiff
265,856
ListSelection<DiffHyperlink> (@NotNull AbstractTestProxy testProxy, @Nullable TestFrameworkRunningModel model) { final List<DiffHyperlink> providers = collectAvailableProviders(model); DiffHyperlink diffViewerProvider = testProxy.getLeafDiffViewerProvider(); int index = diffViewerProvider != null ? providers.indexOf(di...
showDiff
265,857
List<DiffHyperlink> (TestFrameworkRunningModel model) { final List<DiffHyperlink> providers = new ArrayList<>(); if (model != null) { final AbstractTestProxy root = model.getRoot(); final List<? extends AbstractTestProxy> allTests = root.getAllTests(); for (AbstractTestProxy test : allTests) { providers.addAll(test.get...
collectAvailableProviders
265,858
void (@NotNull final AnActionEvent e) { Presentation presentation = e.getPresentation(); if (e.getProject() == null) { presentation.setEnabledAndVisible(false); return; } DataContext context = e.getDataContext(); AbstractTestProxy test = AbstractTestProxy.DATA_KEY.getData(context); TestFrameworkRunningModel model = Tes...
update
265,859
ActionUpdateThread () { return ActionUpdateThread.BGT; }
getActionUpdateThread
265,860
void (TestConsoleProperties consoleProperties) { myConsoleProperties = consoleProperties; }
init
265,861
void (TestFrameworkRunningModel model) { myModel = model; }
setModel
265,862
void (Getter<? extends TestFrameworkRunningModel> modelProvider) { myModelProvider = modelProvider; }
setModelProvider
265,863
void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(isActive(e)); }
update
265,864
boolean (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project == null) { return false; } TestFrameworkRunningModel model = getModel(); if (model == null || model.getRoot() == null) { return false; } RunProfile profile = model.getProperties().getConfiguration(); if (profile instanceof RunConfigurati...
isActive
265,865
List<AbstractTestProxy> (@NotNull Project project) { TestFrameworkRunningModel model = getModel(); if (model == null) return Collections.emptyList(); //noinspection unchecked return getFilter(project, model.getProperties().getScope()).select(model.getRoot().getAllTests()); }
getFailedTests
265,866
Filter (@NotNull Project project, @NotNull GlobalSearchScope searchScope) { return getFailuresFilter(); }
getFilter
265,867
void (@NotNull AnActionEvent e) { ExecutionEnvironment environment = e.getData(ExecutionDataKeys.EXECUTION_ENVIRONMENT); if (environment == null) { return; } execute(e, environment); }
actionPerformed
265,868
Component (@NotNull JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { final Component component = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); if (value instanceof Executor) { setText(((Executor)value).getActionName()); setIcon(((Executor)value).getIco...
getListCellRendererComponent
265,869
void (@NotNull ExecutionEnvironmentBuilder builder) { ExecutionEnvironment environment = builder.build(); try { environment.getRunner().execute(environment); } catch (ExecutionException e) { LOG.error(e); } finally { ((MyRunProfile)environment.getRunProfile()).clear(); } }
performAction
265,870
MyRunProfile (@NotNull ExecutionEnvironment environment) { return null; }
getRunProfile
265,871
TestFrameworkRunningModel () { if (myModel != null) { return myModel; } if (myModelProvider != null) { return myModelProvider.get(); } return null; }
getModel
265,872
void () { }
clear
265,873
ConfigurationPerRunnerSettings (final ConfigurationInfoProvider provider) { return myConfiguration.createRunnerSettings(provider); }
createRunnerSettings
265,874
SettingsEditor<ConfigurationPerRunnerSettings> (final ProgramRunner runner) { return myConfiguration.getRunnerSettingsEditor(runner); }
getRunnerSettingsEditor
265,875
RunConfiguration () { return myConfiguration.clone(); }
clone
265,876
int () { return myConfiguration.getUniqueID(); }
getUniqueID
265,877
LogFileOptions (PredefinedLogFile predefinedLogFile) { return myConfiguration.getOptionsForPredefinedLogFile(predefinedLogFile); }
getOptionsForPredefinedLogFile
265,878
List<PredefinedLogFile> () { return myConfiguration.getPredefinedLogFiles(); }
getPredefinedLogFiles
265,879
ArrayList<LogFileOptions> () { return myConfiguration.getAllLogFiles(); }
getAllLogFiles
265,880
List<LogFileOptions> () { return myConfiguration.getLogFiles(); }
getLogFiles
265,881
boolean () { return true; }
isDumbAware
265,882
void (final TestFrameworkRunningModel model) { final TestConsoleProperties properties = model.getProperties(); final TestFrameworkPropertyListener<Boolean> propertyListener = new TestFrameworkPropertyListener<>() { @Override public void onChanged(final Boolean value) { model.setFilter(getFilter(properties)); } }; addPr...
installFilterAction
265,883
void (final Boolean value) { model.setFilter(getFilter(properties)); }
onChanged
265,884
Filter (TestConsoleProperties properties) { final boolean shouldFilterPassed = TestConsoleProperties.HIDE_PASSED_TESTS.value(properties); final Filter hidePassedFilter = shouldFilterPassed ? Filter.NOT_PASSED.or(Filter.DEFECT) : Filter.NO_FILTER; final boolean shouldFilterIgnored = TestConsoleProperties.HIDE_IGNORED_TE...
getFilter
265,885
void (final AbstractProperty<Boolean> property, final TestFrameworkPropertyListener<Boolean> propertyListener, final TestFrameworkRunningModel model, final boolean sendValue) { final TestConsoleProperties properties = model.getProperties(); if (sendValue) { properties.addListenerAndSendValue(property, propertyListener)...
addPropertyListener
265,886
void () { properties.removeListener(property, propertyListener); }
dispose
265,887
boolean () { return myModel != null; }
isEnabled
265,888
boolean () { return true; }
isVisible
265,889
boolean (final TestFrameworkRunningModel model) { final TestConsoleProperties properties = model.getProperties(); return TestConsoleProperties.SCROLL_TO_SOURCE.value(properties); }
isScrollEnabled
265,890
void (final TestFrameworkRunningModel model) { myModel = model; }
setModel
265,891
DiffRequestChain (@NotNull Project project, @NotNull ListSelection<? extends DiffHyperlink> requests) { ListSelection<DiffRequestProducer> producers = requests.map(hyperlink -> new DiffHyperlinkRequestProducer(project, hyperlink)); SimpleDiffRequestChain chain = SimpleDiffRequestChain.fromProducers(producers); chain.pu...
createRequestChain
265,892
DiffRequest (@NotNull UserDataHolder context, @NotNull ProgressIndicator indicator) { String windowTitle = myHyperlink.getDiffTitle(); AbstractTestProxy testProxy = myHyperlink.getTestProxy(); String text1 = myHyperlink.getLeft(); String text2 = myHyperlink.getRight(); VirtualFile file1 = findFile(myHyperlink.getFilePa...
process
265,893
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; DiffHyperlinkRequestProducer producer = (DiffHyperlinkRequestProducer)o; return Objects.equals(myHyperlink, producer.myHyperlink); }
equals
265,894
int () { return Objects.hash(myHyperlink); }
hashCode
265,895
VirtualFile (@Nullable String path) { if (path == null) return null; NewVirtualFileSystem fs = path.contains(URLUtil.JAR_SEPARATOR) ? JarFileSystem.getInstance() : LocalFileSystem.getInstance(); return fs.refreshAndFindFileByPath(path); }
findFile
265,896
DiffContent (@Nullable Project project, @NotNull String content, @Nullable VirtualFile contentFile, @Nullable VirtualFile highlightFile) { if (contentFile != null) { return DiffContentFactory.getInstance().create(project, contentFile); } else { return DiffContentFactory.getInstance().create(project, content, highlightF...
createContentWithTitle
265,897
ExportTestResultsAction (String toolWindowId, RunConfiguration runtimeConfiguration, JComponent component) { ExportTestResultsAction action = new ExportTestResultsAction(); ActionUtil.copyFrom(action, ID); action.myToolWindowId = toolWindowId; action.myRunConfiguration = runtimeConfiguration; action.registerCustomShort...
create
265,898
void (TestFrameworkRunningModel model) { myModel = model; }
setModel
265,899
ActionUpdateThread () { return ActionUpdateThread.BGT; }
getActionUpdateThread