Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
256,000 | void (@NotNull final Object source) { previewPanel.setColorScheme(options.getSelectedScheme()); optionsPanel.updateOptionsList(); } | schemeChanged |
256,001 | String () { return getDiffGroup(); } | getPanelDisplayName |
256,002 | String () { return getDiffGroup(); } | getDisplayName |
256,003 | DisplayPriority () { return DisplayPriority.COMMON_SETTINGS; } | getPriority |
256,004 | String () { return ApplicationBundle.message("title.diff"); } | getDiffGroup |
256,005 | boolean (@NotNull HighlightInfo info, @Nullable PsiFile file) { if (!isOutsiderFile(file)) return true; if (info.getSeverity() == HighlightSeverity.ERROR) return false; return true; } | accept |
256,006 | boolean (@NotNull IntentionAction intentionAction, @Nullable PsiFile file) { return !isOutsiderFile(file); } | accept |
256,007 | FileHighlightingSetting (@NotNull Project project, @NotNull VirtualFile file) { if (!isOutsiderFile(file)) return null; return FileHighlightingSetting.SKIP_INSPECTION; } | getDefaultSetting |
256,008 | void (@NotNull VirtualFile file) { markFileWithUrl(file, null); } | markFile |
256,009 | void (@NotNull VirtualFile file, @Nullable String originalPath) { var vfsUrl = originalPath != null ? VirtualFileManager.constructUrl(URLUtil.FILE_PROTOCOL, originalPath) : null; markFileWithUrl(file, vfsUrl); } | markFile |
256,010 | void (@NotNull VirtualFile file, @Nullable String originalVfsUrl) { file.putUserData(KEY, Boolean.TRUE); if (originalVfsUrl != null) file.putUserData(VFS_URL_KEY, FileUtil.toSystemIndependentName(originalVfsUrl)); } | markFileWithUrl |
256,011 | boolean (@Nullable PsiFile file) { return file != null && isOutsiderFile(file.getVirtualFile()); } | isOutsiderFile |
256,012 | boolean (@Nullable VirtualFile file) { return file != null && file.getUserData(KEY) == Boolean.TRUE; } | isOutsiderFile |
256,013 | String (@NotNull VirtualFile file) { return file.getUserData(VFS_URL_KEY); } | getOriginalFileUrl |
256,014 | String (@NotNull VirtualFile file) { var vfsUrl = getOriginalFileUrl(file); return vfsUrl != null ? VirtualFileManager.extractPath(vfsUrl) : null; } | getOriginalFilePath |
256,015 | void (@Nullable Project project, @NotNull DiffRequest request) { showDiff(project, request, DiffDialogHints.DEFAULT); } | showDiff |
256,016 | void (@Nullable Project project, @NotNull DiffRequest request, @NotNull DiffDialogHints hints) { DiffRequestChain requestChain = new SimpleDiffRequestChain(request); showDiff(project, requestChain, hints); } | showDiff |
256,017 | void (@Nullable Project project, @NotNull DiffRequestChain requests, @NotNull DiffDialogHints hints) { if (ExternalDiffTool.isEnabled()) { if (ExternalDiffTool.showIfNeeded(project, requests, hints)) { return; } } showDiffBuiltin(project, requests, hints); } | showDiff |
256,018 | void (@Nullable Project project, @NotNull DiffRequest request) { showDiffBuiltin(project, request, DiffDialogHints.DEFAULT); } | showDiffBuiltin |
256,019 | void (@Nullable Project project, @NotNull DiffRequest request, @NotNull DiffDialogHints hints) { DiffRequestChain requestChain = new SimpleDiffRequestChain(request); showDiffBuiltin(project, requestChain, hints); } | showDiffBuiltin |
256,020 | void (@Nullable Project project, @NotNull DiffRequestChain requests, @NotNull DiffDialogHints hints) { DiffEditorTabFilesManager diffEditorTabFilesManager = project != null ? DiffEditorTabFilesManager.getInstance(project) : null; if (diffEditorTabFilesManager != null && !Registry.is("show.diff.as.frame") && DiffUtil.ge... | showDiffBuiltin |
256,021 | boolean (@Nullable Project project) { return DialogWrapper.findInstance(IdeFocusManager.getInstance(project).getFocusOwner()) != null; } | isFromDialog |
256,022 | DiffRequestPanel (@Nullable Project project, @NotNull Disposable parent, @Nullable Window window) { DiffRequestPanelImpl panel = new DiffRequestPanelImpl(project, window); Disposer.register(parent, panel); return panel; } | createRequestPanel |
256,023 | List<DiffTool> () { List<DiffTool> result = new ArrayList<>(); result.addAll(DiffTool.EP_NAME.getExtensionList()); result.add(SimpleDiffTool.INSTANCE); result.add(UnifiedDiffTool.INSTANCE); result.add(BinaryDiffTool.INSTANCE); result.add(DirDiffTool.INSTANCE); return result; } | getDiffTools |
256,024 | List<MergeTool> () { List<MergeTool> result = new ArrayList<>(); Collections.addAll(result, MergeTool.EP_NAME.getExtensions()); result.add(TextMergeTool.INSTANCE); result.add(BinaryMergeTool.INSTANCE); return result; } | getMergeTools |
256,025 | void (@Nullable Project project, @NotNull MergeRequest request) { // plugin may provide a better tool for this MergeRequest AutomaticExternalMergeTool tool = AutomaticExternalMergeTool.EP_NAME.findFirstSafe(mergeTool -> mergeTool.canShow(project, request)); if (tool != null) { tool.show(project, request); return; } if ... | showMerge |
256,026 | void (@Nullable Project project, @NotNull MergeRequest request) { new MergeWindow.ForRequest(project, request, DiffDialogHints.MODAL).show(); } | showMergeBuiltin |
256,027 | void (@Nullable Project project, @NotNull MergeRequestProducer requestProducer, @NotNull DiffDialogHints hints) { new MergeWindow.ForProducer(project, requestProducer, hints).show(); } | showMergeBuiltin |
256,028 | ContentDiffRequest (@Nullable Project project, @Nullable VirtualFile file1, @Nullable VirtualFile file2) { assert file1 != null || file2 != null; DiffContent content1 = file1 != null ? myContentFactory.create(project, file1) : myContentFactory.createEmpty(); DiffContent content2 = file2 != null ? myContentFactory.creat... | createFromFiles |
256,029 | ContentDiffRequest (@Nullable Project project, @NotNull VirtualFile leftFile, @NotNull VirtualFile baseFile, @NotNull VirtualFile rightFile) { DiffContent content1 = myContentFactory.create(project, leftFile); DiffContent content2 = myContentFactory.create(project, baseFile); DiffContent content3 = myContentFactory.cre... | createFromFiles |
256,030 | ContentDiffRequest (@NotNull String value) { DiffContent content1 = myContentFactory.createClipboardContent(); DiffContent content2 = myContentFactory.create(value); String title1 = DiffBundle.message("diff.content.clipboard.content.title"); String title2 = DiffBundle.message("diff.content.selected.value"); String titl... | createClipboardVsValue |
256,031 | String (@Nullable VirtualFile file) { if (file == null) return null; return getContentTitle(new LocalFilePath(file.getPath(), file.isDirectory())); } | getContentTitle |
256,032 | String (@Nullable VirtualFile file1, @Nullable VirtualFile file2) { FilePath path1 = file1 != null ? new LocalFilePath(file1.getPath(), file1.isDirectory()) : null; FilePath path2 = file2 != null ? new LocalFilePath(file2.getPath(), file2.isDirectory()) : null; return getTitle(path1, path2, DIFF_TITLE_SEPARATOR); } | getTitle |
256,033 | String (@NotNull VirtualFile file) { return getTitle(file, null); } | getTitle |
256,034 | String (@NotNull FilePath path) { if (path.isDirectory()) return path.getPresentableUrl(); FilePath parent = path.getParentPath(); return getContentTitle(path.getName(), path.getPresentableUrl(), parent != null ? parent.getPresentableUrl() : null); } | getContentTitle |
256,035 | String (@Nullable FilePath path1, @Nullable FilePath path2, @NotNull @Nls String separator) { assert path1 != null || path2 != null; if (path1 == null || path2 == null) { return getContentTitle(chooseNotNull(path1, path2)); } if ((path1.isDirectory() || path2.isDirectory()) && path1.getPath().equals(path2.getPath())) {... | getTitle |
256,036 | String (@NotNull @Nls String name, @NotNull @Nls String path, @Nullable @Nls String parentPath) { if (parentPath != null) { return name + " (" + parentPath + ")"; } else { return path; } } | getContentTitle |
256,037 | String (@NotNull @Nls String name1, @NotNull @Nls String path1, @Nullable @Nls String parentPath1, @NotNull @Nls String name2, @NotNull @Nls String path2, @Nullable @Nls String parentPath2, @NotNull @Nls String sep) { if (path1.equals(path2)) return getContentTitle(name1, path1, parentPath1); if (Objects.equals(parentP... | getRequestTitle |
256,038 | DiffContentFactoryEx () { return (DiffContentFactoryEx)DiffContentFactory.getInstance(); } | getInstanceEx |
256,039 | EmptyContent () { return new EmptyContent(); } | createEmpty |
256,040 | DocumentContent (@NotNull String text) { return create(null, text); } | create |
256,041 | DocumentContent (@NotNull String text, @Nullable FileType type) { return create(null, text, type); } | create |
256,042 | DocumentContent (@NotNull String text, @Nullable FileType type, boolean respectLineSeparators) { return create(null, text, type, respectLineSeparators); } | create |
256,043 | DocumentContent (@NotNull String text, @Nullable VirtualFile highlightFile) { return create(null, text, highlightFile); } | create |
256,044 | DocumentContent (@NotNull String text, @Nullable DocumentContent referent) { return create(null, text, referent); } | create |
256,045 | DocumentContent (@Nullable Project project, @NotNull String text) { return create(project, text, (FileType)null); } | create |
256,046 | DocumentContent (@Nullable Project project, @NotNull String text, @Nullable FileType type) { return create(project, text, type, true); } | create |
256,047 | DocumentContent (@Nullable Project project, @NotNull String text, @Nullable FileType type, boolean respectLineSeparators) { return readOnlyDocumentContent(project) .contextByFileType(type) .buildFromText(text, respectLineSeparators); } | create |
256,048 | DocumentContent (@Nullable Project project, @NotNull String text, @Nullable FilePath filePath) { return readOnlyDocumentContent(project) .contextByFilePath(filePath) .buildFromText(text, true); } | create |
256,049 | DocumentContent (@Nullable Project project, @NotNull String text, @Nullable VirtualFile highlightFile) { return readOnlyDocumentContent(project) .contextByHighlightFile(highlightFile) .buildFromText(text, true); } | create |
256,050 | DocumentContent (@Nullable Project project, @NotNull String text, @Nullable DocumentContent referent) { if (referent == null) return create(text); return readOnlyDocumentContent(project) .contextByReferent(referent) .buildFromText(text, true); } | create |
256,051 | DocumentContent (@Nullable Project project, @NotNull String text, @Nullable FileType fileType) { return documentContent(project, false) .contextByFileType(fileType) .buildFromText(text, true); } | createEditable |
256,052 | DocumentContent (@NotNull Document document, @Nullable DocumentContent referent) { return create(null, document, referent); } | create |
256,053 | DocumentContent (@Nullable Project project, @NotNull Document document) { return create(project, document, (FileType)null); } | create |
256,054 | DocumentContent (@Nullable Project project, @NotNull Document document, @Nullable FileType fileType) { VirtualFile file = FileDocumentManager.getInstance().getFile(document); if (file != null) return new FileDocumentContentImpl(project, document, file); return new DocumentContentImpl(project, document, fileType); } | create |
256,055 | DocumentContent (@Nullable Project project, @NotNull Document document, @Nullable VirtualFile highlightFile) { VirtualFile file = FileDocumentManager.getInstance().getFile(document); if (file != null && file.equals(highlightFile)) return new FileDocumentContentImpl(project, document, file); if (highlightFile == null) r... | create |
256,056 | DocumentContent (@Nullable Project project, @NotNull Document document, @Nullable DocumentContent referent) { if (referent == null) return new DocumentContentImpl(document); return new ContentReferentDocumentContent(project, document, referent); } | create |
256,057 | DiffContent (@Nullable Project project, @NotNull VirtualFile file) { return createContentFromFile(project, file); } | create |
256,058 | DiffContent (@Nullable Project project, @NotNull VirtualFile file, @Nullable VirtualFile highlightFile) { return createContentFromFile(project, file, highlightFile); } | create |
256,059 | DocumentContent (@Nullable Project project, @NotNull Document document, @NotNull TextRange range) { DocumentContent content = create(project, document); return createFragment(project, content, range); } | createFragment |
256,060 | DocumentContent (@Nullable Project project, @NotNull DocumentContent content, @NotNull TextRange range) { Document document = content.getDocument(); if (document instanceof DocumentImpl && ((DocumentImpl)document).acceptsSlashR()) { LOG.warn("Create immutable fragment content - can't handle CR"); return new ImmutableDo... | createFragment |
256,061 | DiffContent () { return createClipboardContent(null, null); } | createClipboardContent |
256,062 | DocumentContent (@Nullable DocumentContent referent) { return createClipboardContent(null, referent); } | createClipboardContent |
256,063 | DiffContent (@Nullable Project project) { return createClipboardContent(project, null); } | createClipboardContent |
256,064 | DocumentContent (@Nullable Project project, @Nullable DocumentContent referent) { String text = StringUtil.notNullize(CopyPasteManager.getInstance().getContents(DataFlavor.stringFlavor)); return documentContent(project, false) .contextByReferent(referent) .withFileName("Clipboard.txt") .buildFromText(text, false); } | createClipboardContent |
256,065 | DocumentContent (@Nullable Project project, byte @NotNull [] content, @NotNull FileType fileType, @NotNull String fileName) { return readOnlyDocumentContent(project) .contextByFileType(fileType) .withFileName(fileName) .buildFromBytes(content); } | createDocumentFromBytes |
256,066 | DocumentContent (@Nullable Project project, byte @NotNull [] content, @NotNull FilePath filePath) { return readOnlyDocumentContent(project) .contextByFilePath(filePath) .buildFromBytes(content); } | createDocumentFromBytes |
256,067 | DocumentContent (@Nullable Project project, byte @NotNull [] content, @NotNull FilePath filePath, @Nullable Charset defaultCharset) { return readOnlyDocumentContent(project) .contextByFilePath(filePath) .withDefaultCharset(defaultCharset) .buildFromBytes(content); } | createDocumentFromBytes |
256,068 | DocumentContent (@Nullable Project project, byte @NotNull [] content, @NotNull VirtualFile highlightFile) { return readOnlyDocumentContent(project) .contextByHighlightFile(highlightFile) .buildFromBytes(content); } | createDocumentFromBytes |
256,069 | DiffContent (@Nullable Project project, @NotNull VirtualFile file) { return createContentFromFile(project, file, file); } | createContentFromFile |
256,070 | DiffContent (@Nullable Project project, @NotNull VirtualFile file, @Nullable VirtualFile highlightFile) { if (file.isDirectory()) return new DirectoryContentImpl(project, file, highlightFile); Document document = ReadAction.compute(() -> FileDocumentManager.getInstance().getDocument(file)); if (document != null) { // T... | createContentFromFile |
256,071 | Document (@Nullable Project project, @NotNull String content, @Nullable FileType fileType, @NotNull @NonNls @SystemIndependent String lightFilePath, boolean readOnly) { Document document = createPsiDocument(project, content, fileType, lightFilePath, readOnly); if (document == null) { document = EditorFactory.getInstanc... | createDocument |
256,072 | boolean (byte @NotNull [] content, @NotNull FileType fileType) { if (fileType instanceof UIBasedFileType) { return true; // text file, that should be shown as binary (SVG, UI Forms). } if (!fileType.isBinary()) { return false; } if (UnknownFileType.INSTANCE.equals(fileType) || fileType instanceof INativeFileType || Reg... | isBinaryContent |
256,073 | Charset (@Nullable Project project, byte @NotNull [] content, @NotNull FilePath filePath) { return guessCharset(project, content, filePath.getFileType(), filePath.getPath(), filePath.getVirtualFile(), null); } | guessCharset |
256,074 | Charset (@Nullable Project project, byte @NotNull [] content, @Nullable FileType fileType, @NotNull @NonNls @SystemIndependent String lightFilePath, @Nullable VirtualFile highlightFile, @Nullable Charset defaultCharset) { Charset bomCharset = CharsetToolkit.guessFromBOM(content); if (bomCharset != null) return bomChars... | guessCharset |
256,075 | Charset (@NotNull Charset charset, byte @NotNull [] content) { if (StandardCharsets.UTF_8.equals(charset)) { // GuessedEncoding can't detect UTF8-incompatible charsets, verification can be skipped return charset; } if (CharsetToolkit.tryDecodeString(content, charset) != null) { // charset is OK return charset; } Charse... | takeCharsetOrGuessUTF |
256,076 | DocumentContentBuilder (@Nullable Project project) { return documentContent(project, true); } | readOnlyDocumentContent |
256,077 | DocumentContentBuilder (@Nullable Project project, boolean readOnly) { return new DocumentContentBuilderImpl(project).withReadOnly(readOnly); } | documentContent |
256,078 | DocumentContentBuilder (boolean readOnly) { this.readOnly = readOnly; return this; } | withReadOnly |
256,079 | DocumentContentBuilder (@Nullable String fileName) { this.fileName = fileName; return this; } | withFileName |
256,080 | DocumentContentBuilder (@Nullable Charset charset) { this.defaultCharset = charset; return this; } | withDefaultCharset |
256,081 | DocumentContentBuilder (@Nullable FileType fileType) { if (fileType != null) { context = new Context.ByFileType(fileType); } return this; } | contextByFileType |
256,082 | DocumentContentBuilder (@Nullable FilePath filePath) { if (filePath != null) { context = new Context.ByFilePath(filePath); originalFilePath = filePath.getPath(); fileName = filePath.getName(); } return this; } | contextByFilePath |
256,083 | DocumentContentBuilder (@Nullable VirtualFile file) { if (file != null) { context = new Context.ByHighlightFile(file); originalFilePath = file.getPath(); fileName = file.getName(); } return this; } | contextByHighlightFile |
256,084 | DocumentContentBuilder (@Nullable DocumentContent referent) { if (referent != null) { context = new Context.ByReferent(referent); VirtualFile file = referent.getHighlightFile(); if (file != null) { originalFilePath = file.getPath(); fileName = file.getName(); } } return this; } | contextByReferent |
256,085 | DocumentContent (@NotNull String text, boolean respectLineSeparators) { FileType fileType = guessFileType(); String lightFilePath = constructLightFilePath(); TextContent textContent = TextContent.fromText(text, respectLineSeparators); Document document = createDocument(project, textContent.text, fileType, lightFilePath... | buildFromText |
256,086 | DocumentContent (byte @NotNull [] content) { FileType fileType = guessFileType(); String lightFilePath = constructLightFilePath(); VirtualFile highlightFile = constructHighlightFile(); Charset charset = guessCharset(project, content, fileType, lightFilePath, highlightFile, defaultCharset); // decode bytes ourselves to ... | buildFromBytes |
256,087 | DocumentContent (@NotNull Document document, @NotNull TextContent textContent) { DocumentContent documentContent = new ContextReferentDocumentContent(project, document, textContent, context); VirtualFile file = FileDocumentManager.getInstance().getFile(document); if (file != null && !file.isInLocalFileSystem()) { Outsi... | build |
256,088 | String () { return myPath; } | getPath |
256,089 | String () { return "DiffContentFactory " + super.toString(); } | toString |
256,090 | String () { return myPath; } | getPath |
256,091 | String () { return "DiffContentFactory " + super.toString(); } | toString |
256,092 | FileType () { return myHighlightFile.getFileType(); } | getContentType |
256,093 | VirtualFile () { return myHighlightFile; } | getHighlightFile |
256,094 | TextContent (@NotNull String text, boolean respectLineSeparators) { // TODO: detect invalid (different across the file) separators ? String correctedContent = StringUtil.convertLineSeparators(text); TextContent textContent = new TextContent(correctedContent); if (respectLineSeparators) { textContent.separators = String... | fromText |
256,095 | TextContent (byte @NotNull [] content, @NotNull Charset charset) { boolean isBom = CharsetToolkit.guessFromBOM(content) != null; boolean malformedContent = false; String text = CharsetToolkit.tryDecodeString(content, charset); if (text == null) { text = CharsetToolkit.decodeString(content, charset); malformedContent = ... | fromBytes |
256,096 | void (@NotNull Editor editor, @NotNull RangeHighlighter highlighter, @NotNull Graphics g) { if (DiffUtil.isUserDataFlagSet(DiffDrawUtil.EDITOR_WITH_HIGH_PRIORITY_RENDERER, editor)) { MarkupModelEx markupModel = (MarkupModelEx)editor.getMarkupModel(); CommonProcessors.FindProcessor<RangeHighlighterEx> processor = new Co... | paint |
256,097 | boolean (RangeHighlighterEx ex) { return ex.getLayer() > highlighter.getLayer() && ex.getCustomRenderer() instanceof DiffDrawUtil.DiffLayeredRendererMarker; } | accept |
256,098 | List<JComponent> (@NotNull final List<JComponent> components) { if (!ContainerUtil.exists(components, Conditions.notNull())) return components; SyncHeightHolder syncHeightHolder = new SyncHeightHolder(components); List<JComponent> result = new ArrayList<>(); for (JComponent component : components) { result.add(new Sync... | createSyncHeightComponents |
256,099 | void (@NotNull JComponent component) { SyncHeightComponent syncComponent = UIUtil.getParentOfType(SyncHeightComponent.class, component); if (syncComponent == null) return; SyncHeightLayout syncHeightLayout = ObjectUtils.tryCast(syncComponent.getLayout(), SyncHeightLayout.class); if (syncHeightLayout == null) return; sy... | invalidateByChild |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.