Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
266,000
ConsoleView () { return myConsole; }
getConsole
266,001
TestsOutputConsolePrinter () { return myPrinter; }
getPrinter
266,002
void (final Printable printable) { if (myPrinter != null) { myPrinter.onNewAvailable(printable); } }
printNew
266,003
TestConsoleProperties () { return myProperties; }
getProperties
266,004
String () { return "reference.runToolWindow.testResultsTab"; }
getHelpId
266,005
void (@NotNull ToolWindowManager toolWindowManager) { mySplitter.setOrientation(splitVertically()); revalidate(); repaint(); }
stateChanged
266,006
TestStatusLine () { return myStatusLine; }
getStatusLine
266,007
void () { myLeftPane.setBorder(JBUI.Borders.empty()); }
hideToolbar
266,008
void () { myLeftPane = ScrollPaneFactory.createScrollPane(); myLeftPane.putClientProperty(UIUtil.KEEP_BORDER_SIDES, SideBorder.TOP); myStatusLine = createStatusLine(); JComponent testTreeView = createTestTreeView(); myToolbarPanel = createToolbarPanel(); Disposer.register(this, myToolbarPanel); boolean splitVertically ...
initUI
266,009
void () { remove(mySplitter); mySplitter.dispose(); }
dispose
266,010
void () { super.addNotify(); myStatusLine.setBorder(BorderFactory.createEmptyBorder(3, 0, 0, myToolbarComponent.getPreferredSize().width)); }
addNotify
266,011
boolean () { final String windowId = myProperties.getExecutor().getToolWindowId(); final ToolWindow toolWindow = ToolWindowManager.getInstance(myProperties.getProject()).getToolWindow(windowId); boolean splitVertically = false; if (toolWindow != null) { final ToolWindowAnchor anchor = toolWindow.getAnchor(); splitVerti...
splitVertically
266,012
ToolbarPanel () { return new ToolbarPanel(myProperties, this); }
createToolbarPanel
266,013
TestStatusLine () { return new TestStatusLine(); }
createStatusLine
266,014
TestTreeView () { return null; }
getTreeView
266,015
Object (@NotNull @NonNls String dataId) { final TestTreeView view = getTreeView(); if (view != null) { return view.getData(dataId); } return null; }
getData
266,016
void () { }
dispose
266,017
JBSplitter (@NotNull String proportionProperty, float defaultProportion, boolean splitVertically) { JBSplitter splitter = new OnePixelSplitter(splitVertically, proportionProperty, defaultProportion); splitter.setHonorComponentsMinimumSize(true); return splitter; }
createSplitter
266,018
void (final JComponent component) { if (component != myLeftPane.getViewport().getView()) myLeftPane.setViewportView(component); }
setLeftComponent
266,019
void (final Boolean value) { if (!value.booleanValue()) myMarkOffset = 0; }
onChanged
266,020
ConsoleView () { return myConsole; }
getConsole
266,021
boolean () { return myPaused; }
isPaused
266,022
void (final boolean doPause) { myPaused = doPause; if (!doPause) { myPausedPrinter.printAndForget(this); } }
pause
266,023
void (final @NotNull String text, final @NotNull ConsoleViewContentType contentType) { myConsole.print(text, contentType); }
print
266,024
void (@NotNull final Printable printable) { printable.printOn(myPaused ? myPausedPrinter : this); }
onNewAvailable
266,025
void (final AbstractTestProxy test) { if (myCurrentTest == test) { return; } if (myCurrentTest != null) { myCurrentTest.setPrinter(null); } myMarkOffset = 0; final Runnable clearRunnable = () -> myConsole.clear(); if (test == null) { myCurrentTest = null; CompositePrintable.invokeInAlarm(clearRunnable); return; } myCur...
updateOnTestSelected
266,026
AbstractTestProxy () { return isRoot() && myUnboundOutputRoot != null ? myUnboundOutputRoot : myCurrentTest; }
getCurrentProxyOrRoot
266,027
boolean (CompositePrintable printable) { return myCurrentTest == printable || isRoot(); }
isCurrent
266,028
boolean () { return isRoot(myCurrentTest); }
isRoot
266,029
boolean (@Nullable AbstractTestProxy proxy) { return proxy != null && proxy.getParent() == myUnboundOutputRoot; }
isRoot
266,030
void (final @NotNull String text, final HyperlinkInfo info) { myConsole.printHyperlink(text, info); }
printHyperlink
266,031
void () { if (TestConsoleProperties.SCROLL_TO_STACK_TRACE.value(myProperties)) { if (myMarkOffset == 0 || !Registry.is("scroll.to.first.trace", true)) { myMarkOffset = myConsole.getContentSize(); } } }
mark
266,032
void () { myProperties.removeListener(TestConsoleProperties.SCROLL_TO_STACK_TRACE, myPropertyListener); myDisposed = true; }
dispose
266,033
boolean () { return myCurrentTest != null && myCurrentTest.isInProgress(); }
canPause
266,034
void () { EdtInvocationManager.invokeLaterIfNeeded(() -> { if (!myDisposed) { myConsole.performWhenNoDeferredOutput(() -> { final AbstractTestProxy currentProxyOrRoot = getCurrentProxyOrRoot(); if (currentProxyOrRoot != null && !currentProxyOrRoot.isInProgress()) { //do not scroll to any mark during run myConsole.scrol...
scrollToBeginning
266,035
void (@NotNull String text, @NotNull Key processOutputType) { if (myConsole instanceof TerminalExecutionConsole) { // Terminal console handles ANSI escape sequences itself print(text, ConsoleViewContentType.getConsoleViewType(processOutputType)); } else { Printer.super.printWithAnsiColoring(text, processOutputType); } ...
printWithAnsiColoring
266,036
void (@NotNull String expected, @NotNull String actual) { myProperties.printExpectedActualHeader(this, expected, actual); }
printExpectedActualHeader
266,037
void (AbstractTestProxy testProxy) { myTestProxy = testProxy; }
setTestProxy
266,038
HyperlinkInfo () { return myDiffHyperlink; }
getInfo
266,039
AbstractTestProxy () { return myTestProxy; }
getTestProxy
266,040
String (String filePath) { return filePath == null ? null : filePath.replace(File.separatorChar, '/'); }
normalizeSeparators
266,041
String () { return myExpected; }
getLeft
266,042
String () { return myActual; }
getRight
266,043
String () { return myFilePath; }
getFilePath
266,044
String () { return myActualFilePath; }
getActualFilePath
266,045
void (final Printer printer) { if (!hasMoreThanOneLine(myActual) && !hasMoreThanOneLine(myExpected) && myPrintOneLine) { printer.printExpectedActualHeader(StringUtil.trimLog(myExpected, ourMaxExpectedLength), StringUtil.trimLog(myActual, ourMaxExpectedLength)); } printer.print(NEW_LINE, ConsoleViewContentType.ERROR_OUT...
printOn
266,046
boolean (final @NotNull String string) { return string.indexOf('\n') != -1 || string.indexOf('\r') != -1; }
hasMoreThanOneLine
266,047
boolean (Object o) { if (this == o) return true; if (!(o instanceof DiffHyperlink hyperlink)) return false; if (!myActual.equals(hyperlink.myActual)) return false; if (!myExpected.equals(hyperlink.myExpected)) return false; if (!Objects.equals(myFilePath, hyperlink.myFilePath)) return false; if (!Objects.equals(myActua...
equals
266,048
int () { int result = myExpected.hashCode(); result = 31 * result + myActual.hashCode(); result = 31 * result + (myFilePath != null ? myFilePath.hashCode() : 0); result = 31 * result + (myActualFilePath != null ? myActualFilePath.hashCode() : 0); return result; }
hashCode
266,049
void (@NotNull Project project, @Nullable RelativePoint hyperlinkLocationPoint) { final DataManager dataManager = DataManager.getInstance(); final DataContext dataContext = hyperlinkLocationPoint != null ? dataManager.getDataContext(hyperlinkLocationPoint.getOriginalComponent()) : dataManager.getDataContext(); ViewAsse...
navigate
266,050
DiffHyperlink () { return DiffHyperlink.this; }
getPrintable
266,051
void (final @NotNull Project project, final @NotNull Collection<? extends VirtualFile> files, final boolean includeOpenFiles) { LinkedHashSet<VirtualFile> fileSet = new LinkedHashSet<>(files); if (includeOpenFiles) { Collections.addAll(fileSet, FileEditorManager.getInstance(project).getOpenFiles()); } FileContentUtilCo...
reparseFiles
266,052
void () { for (Project project : ProjectManager.getInstance().getOpenProjects()) { reparseFiles(project, Collections.emptyList(), true); } }
reparseOpenedFiles
266,053
DependencyValidationManager (@NotNull Project project) { return project.getService(DependencyValidationManager.class); }
getInstance
266,054
boolean (@NotNull PsiFile from, @NotNull PsiFile to) { if (myFromScope == null || myToScope == null) return false; final PackageSet fromSet = myFromScope.getValue(); final PackageSet toSet = myToScope.getValue(); if (fromSet == null || toSet == null) return false; DependencyValidationManager holder = DependencyValidati...
isForbiddenToUse
266,055
boolean (@NotNull PsiFile file) { if (myFromScope == null || myToScope == null) return false; final PackageSet fromSet = myFromScope.getValue(); if (fromSet == null) return false; DependencyValidationManager holder = DependencyValidationManager.getInstance(file.getProject()); return myDenyRule ? fromSet.contains(file, ...
isApplicable
266,056
String () { String toScopeName = myToScope == null ? "" : myToScope.getPresentableName(); String fromScopeName = myFromScope == null ? "" : myFromScope.getPresentableName(); return myDenyRule ? AnalysisBundle.message("scope.display.name.deny.scope", toScopeName, fromScopeName) : AnalysisBundle.message("scope.display.na...
getDisplayText
266,057
boolean (Object o) { if (!(o instanceof DependencyRule other)) return false; return getDisplayText().equals(other.getDisplayText()) && Comparing.strEqual(getPackageSetPresentation(myFromScope), getPackageSetPresentation(other.myFromScope)) && Comparing.strEqual(getPackageSetPresentation(myToScope), getPackageSetPresent...
equals
266,058
int () { return getDisplayText().hashCode(); }
hashCode
266,059
DependencyRule () { return new DependencyRule(myFromScope == null ? null : myFromScope.createCopy(), myToScope == null ? null : myToScope.createCopy(), myDenyRule); }
createCopy
266,060
boolean () { return myDenyRule; }
isDenyRule
266,061
NamedScope () { return myFromScope; }
getFromScope
266,062
void (NamedScope fromScope) { myFromScope = fromScope; }
setFromScope
266,063
NamedScope () { return myToScope; }
getToScope
266,064
void (NamedScope toScope) { myToScope = toScope; }
setToScope
266,065
TestFailedLineManager (Project project) { return project.getService(TestFailedLineManager.class); }
getInstance
266,066
WolfTheProblemSolver (Project project) { return project.getService(WolfTheProblemSolver.class); }
getInstance
266,067
PlatformIdeService () { return ApplicationManager.getApplication().getService(PlatformIdeService.class); }
getInstance
266,068
void (@NotNull String groupId, @NotNull NotificationType type, @Nullable @NlsContexts.NotificationTitle String title, @Nullable @NlsContexts.NotificationSubtitle String subtitle, @NotNull @NlsContexts.NotificationContent String content, @Nullable Project project, @NotNull String displayId) { notification(groupId, type,...
notification
266,069
void (@NotNull String groupId, @NotNull NotificationType type, @Nullable @NlsContexts.NotificationTitle String title, @Nullable @NlsContexts.NotificationSubtitle String subtitle, @NotNull @NlsContexts.NotificationContent String content, @Nullable Project project, @NotNull String displayId, @Nullable BiConsumer<Object, ...
notification
266,070
List<RootType> () { return ROOT_EP.getExtensionList(); }
getAllRootTypes
266,071
RootType (@NotNull String id) { for (RootType type : getAllRootTypes()) { if (id.equals(type.getId())) return type; } throw new AssertionError(id); }
findById
266,072
String () { return myId; }
getId
266,073
boolean () { return StringUtil.isEmpty(myDisplayName); }
isHidden
266,074
boolean (@Nullable VirtualFile file) { return ScratchFileService.findRootType(file) == this; }
containsFile
266,075
void (@NotNull VirtualFile file, @NotNull FileEditorManager source) { }
fileOpened
266,076
boolean (@NotNull Project project, @NotNull VirtualFile element) { return false; }
isIgnored
266,077
void (@NotNull Project project, @NotNull Disposable disposable, @NotNull Runnable onUpdate) { }
registerTreeUpdater
266,078
boolean (@Nullable VirtualFile file) { RootType rootType = RootType.forFile(file); return rootType != null && !rootType.isHidden(); }
isScratch
266,079
String (@NotNull Project project, @NotNull VirtualFile file) { RootType rootType = Objects.requireNonNull(RootType.forFile(file)); String rootPath = ScratchFileService.getInstance().getRootPath(rootType); VirtualFile rootFile = LocalFileSystem.getInstance().findFileByPath(rootPath); if (rootFile == null || !VfsUtilCore...
getRelativePath
266,080
boolean () { return Registry.is("scratch.files.use.workspace.model"); }
isWorkspaceModelIntegrationEnabled
266,081
ScratchFileService () { return ourInstance.get(); }
getInstance
266,082
Set<VirtualFile> () { if (isWorkspaceModelIntegrationEnabled()) return Collections.emptySet(); ScratchFileService instance = getInstance(); LocalFileSystem fileSystem = LocalFileSystem.getInstance(); Set<VirtualFile> result = CollectionFactory.createSmallMemoryFootprintSet(); for (RootType rootType : RootType.getAllRoo...
getAllRootPaths
266,083
NamesValidator (@NotNull Language l) { return super.forLanguage(l); }
forLanguage
266,084
boolean (final @NotNull String name, final Project project) { final int len = name.length(); if (len == 0) return false; if (!Character.isJavaIdentifierStart(name.charAt(0))) return false; for (int i = 1; i < len; i++) { if (!Character.isJavaIdentifierPart(name.charAt(i))) return false; } return true; }
isIdentifier
266,085
boolean (final @NotNull String name, final Project project) { return false; }
isKeyword
266,086
boolean (@NotNull Language language, @NotNull String name) { return isIdentifier(language, name, null); }
isIdentifier
266,087
boolean (@NotNull Language language, @NotNull String name, @Nullable Project project) { return INSTANCE.forLanguage(language).isIdentifier(name, project); }
isIdentifier
266,088
DocumentationProvider (final @NotNull Language l) { return super.forLanguage(l); }
forLanguage
266,089
DocumentationProvider (@NotNull Language language) { List<DocumentationProvider> providers = allForLanguage(language); if (providers.isEmpty()) { return null; } return CompositeDocumentationProvider.wrapProviders(providers); }
findForLanguage
266,090
IElementType () { return myLeftBrace; }
getLeftBraceType
266,091
IElementType () { return myRightBrace; }
getRightBraceType
266,092
boolean () { return myStructural; }
isStructural
266,093
DocumentationProvider (Collection<? extends DocumentationProvider> providers) { List<DocumentationProvider> list = new ArrayList<>(); for (DocumentationProvider provider : providers) { if (provider instanceof CompositeDocumentationProvider) { list.addAll(((CompositeDocumentationProvider)provider).getProviders()); } els...
wrapProviders
266,094
List<DocumentationProvider> () { List<DocumentationProvider> providers = myProviders; List<DocumentationProvider> extensions = EP_NAME.getExtensionList(); Collection<DocumentationProvider> result = new LinkedHashSet<>(providers.size() + extensions.size()); result.addAll(providers); result.addAll(extensions); return Lis...
getAllProviders
266,095
List<DocumentationProvider> () { return myProviders; }
getProviders
266,096
boolean (PsiElement element, PsiElement originalElement) { for (DocumentationProvider provider : getAllProviders()) { if (provider instanceof ExternalDocumentationHandler && ((ExternalDocumentationHandler)provider).handleExternal(element, originalElement)) { LOG.debug("handleExternal: ", provider); return true; } } ret...
handleExternal
266,097
boolean (PsiManager psiManager, String link, PsiElement context) { for (DocumentationProvider provider : getAllProviders()) { if (provider instanceof ExternalDocumentationHandler && ((ExternalDocumentationHandler)provider).handleExternalLink(psiManager, link, context)) { LOG.debug("handleExternalLink: ", provider); ret...
handleExternalLink
266,098
boolean (String link) { for (DocumentationProvider provider : getAllProviders()) { if (provider instanceof ExternalDocumentationHandler && ((ExternalDocumentationHandler)provider).canFetchDocumentationLink(link)) { LOG.debug("canFetchDocumentationLink: ", provider); return true; } } return false; }
canFetchDocumentationLink
266,099
List<String> (PsiElement element, PsiElement originalElement) { for (DocumentationProvider provider : getAllProviders()) { List<String> result = provider.getUrlFor(element, originalElement); if (result != null) { LOG.debug("getUrlFor: ", provider); return result; } } return null; }
getUrlFor