Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
255,600 | String () { return "bookmarks"; } | getId |
255,601 | String () { return TaskBundle.message("bookmarks"); } | getDescription |
255,602 | void (@NotNull Project project, @NotNull Element toElement) { ManagerState state = requireNonNull(getComponent(project).getState()); toElement.addContent(XmlSerializer.serialize(state)); } | saveContext |
255,603 | void (@NotNull Project project, @NotNull Element fromElement) { ManagerState state = new ManagerState(); Element element = fromElement.getChild(ManagerState.class.getSimpleName()); if (element != null) XmlSerializer.deserializeInto(state, element); getComponent(project).loadState(state); } | loadContext |
255,604 | void (@NotNull Project project) { getComponent(project).loadState(new ManagerState()); } | clearContext |
255,605 | PersistentStateComponent<ManagerState> (@NotNull Project project) { return (PersistentStateComponent<ManagerState>)requireNonNull(BookmarksManager.getInstance(project)); } | getComponent |
255,606 | String () { return "watches"; } | getId |
255,607 | String () { return TaskBundle.message("debugger.watches"); } | getDescription |
255,608 | XDebuggerWatchesManager (@NotNull Project project) { return ((XDebuggerManagerImpl)XDebuggerManager.getInstance(project)).getWatchesManager(); } | getWatchManager |
255,609 | void (@NotNull Project project) { getWatchManager(project).clearContext(); } | clearContext |
255,610 | String () { return "runConfigurations"; } | getId |
255,611 | String () { return TaskBundle.message("run.configurations"); } | getDescription |
255,612 | void (@NotNull Project project, @NotNull Element toElement) { RunManagerImpl.getInstanceImpl(project).writeContext(toElement); } | saveContext |
255,613 | void (@NotNull Project project, @NotNull Element fromElement) { RunManagerImpl.getInstanceImpl(project).readContext(fromElement); } | loadContext |
255,614 | Icon (@NotNull String path, int cacheKey, int flags) { return IconManager.getInstance().loadRasterizedIcon(path, TasksIcons.class.getClassLoader(), cacheKey, flags); } | load |
255,615 | int () { return id; } | getSavepointId |
255,616 | String () { return name == null ? String.format("SQLITE_SAVEPOINT_%s", id) : name; } | getSavepointName |
255,617 | String () { return myFile.getPresentableUrl(); } | getPath |
255,618 | String () { return myFile.getName(); } | getName |
255,619 | String () { return getPath(); } | getPresentablePath |
255,620 | long () { return myFile.getLength(); } | getSize |
255,621 | long () { return myFile.getTimeStamp(); } | getTimeStamp |
255,622 | boolean () { return myFile.isDirectory(); } | isContainer |
255,623 | Navigatable (@Nullable Project project) { if (project == null || project.isDefault() || !myFile.isValid()) return null; return new OpenFileDescriptor(project, myFile); } | getNavigatable |
255,624 | VirtualFileDiffElement[] () { if (myFile.is(VFileProperty.SYMLINK)) { return new VirtualFileDiffElement[0]; } final VirtualFile[] files = myFile.getChildren(); final ArrayList<VirtualFileDiffElement> elements = new ArrayList<>(); for (VirtualFile file : files) { if (!FileTypeManager.getInstance().isFileIgnored(file) &&... | getChildren |
255,625 | VirtualFile () { return myFile; } | getValue |
255,626 | Icon () { return isContainer() ? PlatformIcons.FOLDER_ICON : VirtualFilePresentation.getIcon(myFile); } | getIcon |
255,627 | Callable<DiffElement<VirtualFile>> (final Project project) { return () -> { final FileChooserDescriptor descriptor = getChooserDescriptor(); final VirtualFile[] result = FileChooser.chooseFiles(descriptor, project, getValue()); return result.length == 1 ? createElement(result[0]) : null; }; } | getElementChooser |
255,628 | VirtualFileDiffElement (VirtualFile file) { if (file.getFileType() instanceof ArchiveFileType && file.getFileSystem() != JarFileSystem.getInstance()) { VirtualFile jar = JarFileSystem.getInstance().getJarRootForLocalFile(file); if (jar != null) { return new VirtualFileDiffElement(jar); } } return new VirtualFileDiffEle... | createElement |
255,629 | FileChooserDescriptor () { return new FileChooserDescriptor(true, true, true, true, false, false) { @Override public boolean isFileVisible(VirtualFile file, boolean showHiddenFiles) { return file.isDirectory() || file.getFileType() instanceof ArchiveFileType; } }; } | getChooserDescriptor |
255,630 | boolean (VirtualFile file, boolean showHiddenFiles) { return file.isDirectory() || file.getFileType() instanceof ArchiveFileType; } | isFileVisible |
255,631 | boolean () { return myFile.getFileSystem() instanceof LocalFileSystem; } | isOperationsEnabled |
255,632 | Charset () { return myFile.getCharset(); } | getCharset |
255,633 | FileType () { return myFile.getFileType(); } | getFileType |
255,634 | VirtualFileDiffElement (DiffElement<VirtualFile> container, String relativePath) { try { final File src = new File(myFile.getPath()); final File trg = new File(container.getValue().getPath() + relativePath + src.getName()); FileUtil.copy(src, trg); final VirtualFile virtualFile = LocalFileSystem.getInstance().refreshAn... | copyTo |
255,635 | boolean () { try { myFile.delete(this); } catch (IOException e) { return false; } return true; } | delete |
255,636 | void (boolean userInitiated) { refreshFile(userInitiated, myFile); } | refresh |
255,637 | void (boolean userInitiated, VirtualFile virtualFile) { if (userInitiated) { final List<Document> docsToSave = new ArrayList<>(); final FileDocumentManager manager = FileDocumentManager.getInstance(); for (Document document : manager.getUnsavedDocuments()) { VirtualFile file = manager.getFile(document); if (file != nul... | refreshFile |
255,638 | List<ChangesBlock<Unit>> (@NotNull Editor editor, @NotNull List<? extends Range> ranges, @NotNull Rectangle clip) { return new VisibleRangeMerger<>(editor, FlagsProvider.EMPTY).run(ranges, clip); } | merge |
255,639 | List<ChangesBlock<T>> (@NotNull List<? extends Range> ranges, @NotNull Rectangle clip) { int visibleLinesStart = EditorUtil.yToLogicalLineRange(myEditor, clip.y).intervalStart(); int visibleLinesEnd = EditorUtil.yToLogicalLineRange(myEditor, clip.y + Math.max(clip.height - 1, 0)).intervalEnd() + 1; for (Range range : r... | run |
255,640 | void (@NotNull Range range, int start, int end, byte type, @NotNull T flags) { Pair<@NotNull Interval, @Nullable Interval> pair1 = EditorUtil.logicalLineToYRange(myEditor, start); int visualStart = pair1.first.intervalStart(); int sharedPrefixHeight; if (pair1.second == null) { sharedPrefixHeight = pair1.first.interval... | processLine |
255,641 | void (@NotNull Range range, @NotNull ChangedLines<T> newChange) { ChangedLines<T> lastItem = ContainerUtil.getLastItem(myBlock.changes); if (lastItem != null && lastItem.y2 < newChange.y1) { finishBlock(); } List<ChangedLines<T>> changes = myBlock.changes; List<Range> ranges = myBlock.ranges; if (ContainerUtil.getLastI... | appendChange |
255,642 | void () { if (myBlock.changes.isEmpty()) return; myResult.add(myBlock); myBlock = new ChangesBlock<>(); } | finishBlock |
255,643 | byte (@NotNull ChangedLines<T> change1, @NotNull ChangedLines<T> change2) { return change1.type == change2.type ? change1.type : Range.MODIFIED; } | mergeTypes |
255,644 | Unit (@NotNull Range range) { return Unit.INSTANCE; } | getFlags |
255,645 | Unit (@NotNull Unit flags1, @NotNull Unit flags2) { return Unit.INSTANCE; } | mergeFlags |
255,646 | boolean (@NotNull Unit flag) { return true; } | shouldIgnoreInnerRanges |
255,647 | void (MouseEvent e) { transferEvent(e, editor); } | mousePressed |
255,648 | void (MouseEvent e) { transferEvent(e, editor); } | mouseClicked |
255,649 | void (MouseEvent e) { transferEvent(e, editor); } | mouseReleased |
255,650 | Editor () { return myEditor; } | getEditor |
255,651 | void (MouseEvent e, Editor editor) { editor.getContentComponent().dispatchEvent(SwingUtilities.convertMouseEvent(e.getComponent(), e, editor.getContentComponent())); } | transferEvent |
255,652 | int () { return createEditorFragmentBorder().getBorderInsets(myEditorComponent).left; } | getEditorTextOffset |
255,653 | Dimension () { int gap = JBUI.scale(10); Rectangle screenRectangle = ScreenUtil.getScreenRectangle(myEditor.getComponent()); Rectangle maxSize = new Rectangle(screenRectangle.width - gap, screenRectangle.height - gap); Dimension size = super.getPreferredSize(); if (size.width > maxSize.width) { size.width = maxSize.wid... | getPreferredSize |
255,654 | void (@NotNull Editor editor, @NotNull LineStatusMarkerPopupPanel panel, @Nullable Point mousePosition, @NotNull Disposable popupDisposable) { LightweightHint hint = new LightweightHint(panel); Disposer.register(popupDisposable, () -> UIUtil.invokeLaterIfNeeded(hint::hide)); hint.addHintListener(e -> Disposer.dispose(p... | showPopupAt |
255,655 | void (@NotNull Editor newEditor, @NotNull LightweightHint newHint, int flags, @NotNull HintHint hintInfo) { // Ex: if popup re-shown by ToggleByWordDiffAction if (newHint.getComponent() instanceof LineStatusMarkerPopupPanel newPopupPanel) { if (newPopupPanel.getEditor().equals(newEditor)) { hint.hide(); } } } | hintShown |
255,656 | EditorTextField (@NotNull Editor editor, @NotNull String content) { EditorTextField field = new EditorTextField(content); field.setBorder(null); field.setOneLineMode(false); field.ensureWillComputePreferredSize(); field.setFontInheritedFromLAF(false); field.addSettingsProvider(uEditor -> { uEditor.setVerticalScrollbarV... | createTextField |
255,657 | JComponent (@NotNull Editor editor, @NotNull JComponent popupEditor) { JPanel editorComponent = JBUI.Panels.simplePanel(popupEditor); editorComponent.setBorder(createEditorFragmentBorder()); editorComponent.setBackground(getEditorBackgroundColor(editor)); return editorComponent; } | createEditorComponent |
255,658 | Border () { Border outsideEditorBorder = JBUI.Borders.customLine(getBorderColor(), 1); Border insideEditorBorder = JBUI.Borders.empty(2); return BorderFactory.createCompoundBorder(outsideEditorBorder, insideEditorBorder); } | createEditorFragmentBorder |
255,659 | Color (@NotNull Editor editor) { Color color = editor.getColorsScheme().getColor(EditorColors.CHANGED_LINES_POPUP); return color != null ? color : EditorFragmentComponent.getBackgroundColor(editor); } | getEditorBackgroundColor |
255,660 | Color () { return JBColor.namedColor("VersionControl.MarkerPopup.borderColor", new JBColor(Gray._206, Gray._75)); } | getBorderColor |
255,661 | ActionToolbar (@NotNull Editor editor, @NotNull List<? extends AnAction> actions, @NotNull Disposable parentDisposable) { JComponent editorComponent = editor.getComponent(); for (AnAction action : actions) { DiffUtil.registerAction(action, editorComponent); } Disposer.register(parentDisposable, () -> ActionUtil.getActi... | buildToolbar |
255,662 | void (@Nullable Project project, @NotNull EditorTextField textField, @NotNull Document vcsDocument, TextRange vcsTextRange, @Nullable FileType fileType) { FileType type = fileType != null ? fileType : PlainTextFileType.INSTANCE; EditorHighlighter highlighter = EditorHighlighterFactory.getInstance().createEditorHighligh... | installBaseEditorSyntaxHighlighters |
255,663 | void (@NotNull EditorTextField textField, @Nullable List<? extends DiffFragment> wordDiff) { if (wordDiff == null) return; textField.addSettingsProvider(uEditor -> { installEditorDiffHighlighters(uEditor, wordDiff); }); } | installPopupEditorWordHighlighters |
255,664 | List<RangeHighlighter> (@NotNull Editor editor, @Nullable List<? extends DiffFragment> wordDiff) { if (wordDiff == null) return emptyList(); List<RangeHighlighter> highlighters = new ArrayList<>(); for (DiffFragment fragment : wordDiff) { int vcsStart = fragment.getStartOffset1(); int vcsEnd = fragment.getEndOffset1();... | installEditorDiffHighlighters |
255,665 | void (@NotNull Editor editor, int startLine, int endLine, @NotNull List<? extends DiffFragment> wordDiff, @NotNull Disposable parentDisposable) { TextRange currentTextRange = DiffUtil.getLinesRange(editor.getDocument(), startLine, endLine); DiffDrawUtil.setupLayeredRendering(editor, startLine, endLine, DiffDrawUtil.LAY... | installMasterEditorWordHighlighters |
255,666 | LineStatusMarkerPopupPanel (@NotNull Editor editor, @NotNull ActionToolbar toolbar, @Nullable JComponent editorComponent, @Nullable JComponent additionalInfo) { LineStatusMarkerPopupPanel panel = new LineStatusMarkerPopupPanel(editor, toolbar, editorComponent, additionalInfo); toolbar.setTargetComponent(panel); return ... | create |
255,667 | List<Range> (@NotNull List<? extends Range> ranges, @NotNull Editor editor, int y) { int lineHeight = editor.getLineHeight(); int triangleGap = lineHeight / 3; Rectangle clip = new Rectangle(0, y - lineHeight, editor.getComponent().getWidth(), lineHeight * 2); List<ChangesBlock<Unit>> blocks = VisibleRangeMerger.merge(... | getSelectedRanges |
255,668 | Rectangle (@NotNull List<? extends Range> ranges, @NotNull Editor editor, int lineNum) { int yStart = editor.visualLineToY(lineNum); Rectangle clip = new Rectangle(0, yStart, 0, editor.getLineHeight()); List<ChangesBlock<Unit>> blocks = VisibleRangeMerger.merge(editor, ranges, clip); if (blocks.isEmpty()) return null; ... | calcBounds |
255,669 | void (@NotNull Editor editor, @NotNull Graphics g, @NotNull List<? extends Range> ranges, @NotNull FlagsProvider<DefaultLineFlags> flagsProvider, int framingBorder) { paintDefault(editor, g, ranges, flagsProvider, LineStatusMarkerColorScheme.DEFAULT, framingBorder); } | paintDefault |
255,670 | void (@NotNull Editor editor, @NotNull Graphics g, @NotNull List<? extends Range> ranges, @NotNull FlagsProvider<DefaultLineFlags> flagsProvider, @NotNull LineStatusMarkerColorScheme colorScheme, int framingBorder) { List<ChangesBlock<DefaultLineFlags>> blocks = VisibleRangeMerger.merge(editor, ranges, flagsProvider, g... | paintDefault |
255,671 | void (@NotNull Graphics2D g, @NotNull Editor editor, @NotNull List<? extends ChangedLines<DefaultLineFlags>> block, int framingBorder) { paintChangedLines(g, editor, block, LineStatusMarkerColorScheme.DEFAULT, framingBorder); } | paintChangedLines |
255,672 | void (@NotNull Graphics2D g, @NotNull Editor editor, @NotNull List<? extends ChangedLines<DefaultLineFlags>> block, @NotNull LineStatusMarkerColorScheme colorScheme, int framingBorder) { Color borderColor = LineStatusMarkerColorScheme.DEFAULT.getBorderColor(editor); EditorGutterComponentEx gutter = ((EditorEx)editor).g... | paintChangedLines |
255,673 | boolean (@NotNull Editor editor, int line, int x, int start, int end) { return line != -1 && editor.xyToLogicalPosition(new Point(x, start)).line <= line && line < editor.xyToLogicalPosition(new Point(x, end)).line; } | isRangeHovered |
255,674 | void (@NotNull Graphics g, @NotNull Editor editor, @NotNull Range range, int framingBorder, boolean isIgnored) { FlagsProvider<DefaultLineFlags> flagsProvider = isIgnored ? DefaultFlagsProvider.ALL_IGNORED : DefaultFlagsProvider.DEFAULT; List<ChangesBlock<DefaultLineFlags>> blocks = VisibleRangeMerger.merge(editor, Col... | paintRange |
255,675 | void (@NotNull Graphics g, @NotNull Editor editor, int line1, int line2, @Nullable Color color) { IntPair horizontalArea = getGutterArea(editor); int x = horizontalArea.first; int endX = horizontalArea.second; int y = lineToY(editor, line1); int endY = lineToY(editor, line2); Color borderColor = LineStatusMarkerColorSc... | paintSimpleRange |
255,676 | IntPair (@NotNull Editor editor) { EditorGutterComponentEx gutter = ((EditorEx)editor).getGutterComponentEx(); int x = 1; // leave 1px for brace highlighters if (ExperimentalUI.isNewUI()) { x += gutter.getExtraLineMarkerFreePaintersAreaOffset(); x += 2; //IDEA-286352 return new IntPair(x, x + (int)(JBUIScale.scale(JBUI... | getGutterArea |
255,677 | boolean (@NotNull MouseEvent e) { final EditorGutterComponentEx gutter = (EditorGutterComponentEx)e.getComponent(); return gutter.isInsideMarkerArea(e); } | isInsideMarkerArea |
255,678 | void (@NotNull Graphics2D g, @Nullable Color color, @Nullable Color borderColor, int x1, int y1, int x2, int y2) { if (ExperimentalUI.isNewUI()) { if (color != null) { g.setColor(color); double width = x2 - x1; RectanglePainter2D.FILL.paint(g, x1, y1 + 1, width, y2 - y1 - 2, width); } else if (borderColor != null) { g.... | paintRect |
255,679 | void (@NotNull Graphics2D g, @NotNull Editor editor, @Nullable Color color, @Nullable Color borderColor, int x1, int x2, int y) { int size = (int)JBUIScale.scale(4 * getEditorScale(editor)); if (y < size) y = size; if (ExperimentalUI.isNewUI()) { if (color != null) { g.setColor(color); double width = x2 - x1; Rectangle... | paintTriangle |
255,680 | float (@NotNull Editor editor) { return editor instanceof EditorImpl ? ((EditorImpl)editor).getScale() : 1.0f; } | getEditorScale |
255,681 | Color (byte type) { return LineStatusMarkerColorScheme.DEFAULT.getErrorStripeColor(type); } | getErrorStripeColor |
255,682 | byte () { return myType; } | getType |
255,683 | Color () { return LineStatusMarkerDrawUtil.getErrorStripeColor(myType); } | getErrorStripeColor |
255,684 | DefaultLineFlags (@NotNull Range range) { return DefaultLineFlags.DEFAULT; } | getFlags |
255,685 | DefaultLineFlags (@NotNull Range range) { return DefaultLineFlags.IGNORED; } | getFlags |
255,686 | DefaultLineFlags (@NotNull DefaultLineFlags flags1, @NotNull DefaultLineFlags flags2) { return flags1.isIgnored && flags2.isIgnored ? DefaultLineFlags.IGNORED : DefaultLineFlags.DEFAULT; } | mergeFlags |
255,687 | boolean (@NotNull DefaultLineFlags flag) { return flag.isIgnored; } | shouldIgnoreInnerRanges |
255,688 | void (@NotNull AnActionEvent e) { DataContext context = e.getDataContext(); Project project = CommonDataKeys.PROJECT.getData(context); if (project == null) { e.getPresentation().setEnabled(false); return; } VirtualFile[] files = CommonDataKeys.VIRTUAL_FILE_ARRAY.getData(context); if (files == null || files.length != 3)... | update |
255,689 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
255,690 | void (@NotNull AnActionEvent e) { DataContext context = e.getDataContext(); VirtualFile[] files = CommonDataKeys.VIRTUAL_FILE_ARRAY.getData(context); if (files == null || files.length != 3) { return; } DiffRequestFactory diffRequestFactory = DiffRequestFactory.getInstance(); try { Project project = CommonDataKeys.PROJE... | actionPerformed |
255,691 | void (String key, Object value) { myGenericData.put(key, value); } | putData |
255,692 | Object (@NotNull String dataId) { Object data = myGenericData.get(dataId); if (data != null) return data; return myParentProvider != null ? myParentProvider.getData(dataId) : null; } | getData |
255,693 | EventLogGroup () { return GROUP; } | getGroup |
255,694 | void (@NotNull HighlightPolicy value, @Nullable @NonNls String place) { TOGGLE_HIGHLIGHT_POLICY.log(value, getPlaceName(place)); } | logToggleHighlightPolicy |
255,695 | void (@NotNull IgnorePolicy value, @Nullable @NonNls String place) { TOGGLE_IGNORE_POLICY.log(value, getPlaceName(place)); } | logToggleIgnorePolicy |
255,696 | void (@Nullable Project project, @NotNull DiffTool diffTool, @Nullable @NonNls String place) { TOGGLE_DIFF_TOOL.log(project, PluginInfoDetectorKt.getPluginInfo(diffTool.getClass()), diffTool.getName(), getPlaceName(place)); } | logToggleDiffTool |
255,697 | String (@NonNls @Nullable String place) { return StringUtil.notNullize(place, "unknown"); } | getPlaceName |
255,698 | Icon () { return myAction.getTemplatePresentation().getIcon(); } | getIcon |
255,699 | AnAction () { return myAction; } | getClickAction |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.