Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
257,500 | JBPopup (@NotNull AnActionEvent e) { return JBPopupFactory.getInstance().createListPopup(new MyListPopupStep()); } | createPopup |
257,501 | String (DiffRequestProducer value) { return value.getName(); } | getTextFor |
257,502 | boolean () { return true; } | isSpeedSearchEnabled |
257,503 | boolean () { return myTextSettings.isShowWhitespaces(); } | isSelected |
257,504 | void (boolean state) { myTextSettings.setShowWhitespaces(state); } | setSelected |
257,505 | void (@NotNull Editor editor, boolean value) { if (editor.getSettings().isWhitespacesShown() != value) { editor.getSettings().setWhitespacesShown(value); editor.getComponent().repaint(); } } | apply |
257,506 | boolean () { return myTextSettings.isShowLineNumbers(); } | isSelected |
257,507 | void (boolean state) { myTextSettings.setShowLineNumbers(state); } | setSelected |
257,508 | void (@NotNull Editor editor, boolean value) { if (editor.getSettings().isLineNumbersShown() != value) { editor.getSettings().setLineNumbersShown(value); editor.getComponent().repaint(); } } | apply |
257,509 | boolean () { return myTextSettings.isShowIndentLines(); } | isSelected |
257,510 | void (boolean state) { myTextSettings.setShowIndentLines(state); } | setSelected |
257,511 | void (@NotNull Editor editor, boolean value) { if (editor.getSettings().isIndentGuidesShown() != value) { editor.getSettings().setIndentGuidesShown(value); editor.getComponent().repaint(); } } | apply |
257,512 | boolean () { return myForcedSoftWrap || myTextSettings.isUseSoftWraps(); } | isSelected |
257,513 | void (boolean state) { myForcedSoftWrap = false; myTextSettings.setUseSoftWraps(state); } | setSelected |
257,514 | void (@NotNull Editor editor, boolean value) { if (editor.getSettings().isUseSoftWraps() == value) return; if (mySyncScrollSupport != null) mySyncScrollSupport.enterDisableScrollSection(); try { AbstractToggleUseSoftWrapsAction.toggleSoftWraps(editor, null, value); } finally { if (mySyncScrollSupport != null) mySyncScr... | apply |
257,515 | void (@NotNull List<? extends Editor> editors) { if (!myTextSettings.isUseSoftWraps()) { for (Editor editor : editors) { myForcedSoftWrap = myForcedSoftWrap || ((EditorImpl)editor).getSoftWrapModel().shouldSoftWrapsBeForced(); } } super.applyDefaults(editors); } | applyDefaults |
257,516 | void (@Nullable SyncScrollSupport.Support syncScrollSupport) { mySyncScrollSupport = syncScrollSupport; } | setSyncScrollSupport |
257,517 | void () { for (Editor editor : myEditors.get()) { ((EditorGutterComponentEx)editor.getGutter()).setGutterPopupGroup(this); } } | installGutterPopup |
257,518 | void () { for (AnAction action : myActions) { ((EditorSettingAction)action).applyDefaults(myEditors.get()); } } | applyDefaults |
257,519 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
257,520 | boolean (@NotNull AnActionEvent e) { return isSelected(); } | isSelected |
257,521 | void (@NotNull AnActionEvent e, boolean state) { setSelected(state); for (Editor editor : myEditors.get()) { apply(editor, state); } } | setSelected |
257,522 | void (@NotNull List<? extends Editor> editors) { for (Editor editor : editors) { apply(editor, isSelected()); } } | applyDefaults |
257,523 | void (@NotNull List<? extends Editor> editors) { apply(myTextSettings.getHighlightingLevel()); } | applyDefaults |
257,524 | void (@NotNull HighlightingLevel layer) { for (Editor editor : myEditors.get()) { if (editor instanceof EditorImpl) { ((EditorImpl)editor).setHighlightingPredicate(layer.getCondition()); } } } | apply |
257,525 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
257,526 | boolean (@NotNull AnActionEvent e) { return myTextSettings.getHighlightingLevel() == myLayer; } | isSelected |
257,527 | void (@NotNull AnActionEvent e, boolean state) { myTextSettings.setHighlightingLevel(myLayer); apply(myLayer); } | setSelected |
257,528 | void (@NotNull List<? extends Editor> editors) { } | applyDefaults |
257,529 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
257,530 | boolean (@NotNull AnActionEvent e) { return myTextSettings.getBreadcrumbsPlacement() == myOption; } | isSelected |
257,531 | void (@NotNull AnActionEvent e, boolean state) { myTextSettings.setBreadcrumbsPlacement(myOption); } | setSelected |
257,532 | void (@NotNull AnActionEvent e) { Project project = e.getData(CommonDataKeys.PROJECT); DiffRequest request = e.getData(DiffDataKeys.DIFF_REQUEST); e.getPresentation().setEnabledAndVisible(project != null && request != null); } | update |
257,533 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
257,534 | void (@NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); DiffRequest request = e.getRequiredData(DiffDataKeys.DIFF_REQUEST); DiffVirtualFile file = new SimpleDiffVirtualFile(request); FileEditorManager.getInstance(project).openFile(file, true); } | actionPerformed |
257,535 | Object (@NotNull DataProvider dataProvider) { final Navigatable element = DiffDataKeys.NAVIGATABLE.getData(dataProvider); if (element == null) { return null; } return new Navigatable[]{element}; } | getData |
257,536 | void (@NotNull AnActionEvent e) { if (!e.isFromActionToolbar()) { e.getPresentation().setEnabledAndVisible(true); return; } DiffRequest request = e.getData(DiffDataKeys.DIFF_REQUEST); DiffContext context = e.getData(DiffDataKeys.DIFF_CONTEXT); if (DiffUtil.isUserDataFlagSet(DiffUserDataKeys.GO_TO_SOURCE_DISABLE, reques... | update |
257,537 | void (@NotNull AnActionEvent e) { DiffRequest request = e.getData(DiffDataKeys.DIFF_REQUEST); DiffContext context = e.getData(DiffDataKeys.DIFF_CONTEXT); if (DiffUtil.isUserDataFlagSet(DiffUserDataKeys.GO_TO_SOURCE_DISABLE, request, context)) return; Project project = e.getProject(); if (project == null) return; Runnab... | actionPerformed |
257,538 | boolean (@NotNull Project project, @NotNull Navigatable navigatable, @Nullable Runnable callback) { return openEditor(project, new Navigatable[]{navigatable}, callback); } | openEditor |
257,539 | boolean (@NotNull Project project, Navigatable @NotNull [] navigatables, @Nullable Runnable callback) { FileNavigatorImpl fileNavigator = (FileNavigatorImpl)FileNavigator.getInstance(); boolean success = false; for (Navigatable navigatable : navigatables) { success |= fileNavigator.navigateIgnoringContextEditor(navigat... | openEditor |
257,540 | void (@NotNull List<? extends Editor> editors) { myEditors = editors; for (Editor editor : editors) { registerCustomShortcutSet(getShortcutSet(), (EditorGutterComponentEx)editor.getGutter()); } } | install |
257,541 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
257,542 | void (@NotNull AnActionEvent e) { InputEvent inputEvent = e.getInputEvent(); if (!(inputEvent instanceof MouseEvent)) { e.getPresentation().setEnabledAndVisible(false); return; } if (e.getProject() == null) { e.getPresentation().setEnabledAndVisible(false); return; } if (e.getData(DiffDataKeys.DIFF_CONTEXT) == null) { ... | update |
257,543 | void (@NotNull AnActionEvent e) { MouseEvent inputEvent = (MouseEvent)e.getInputEvent(); Project project = e.getRequiredData(CommonDataKeys.PROJECT); Runnable callback = e.getData(OpenInEditorAction.AFTER_NAVIGATE_CALLBACK); Component component = inputEvent.getComponent(); Point point = inputEvent.getPoint(); Component... | actionPerformed |
257,544 | Editor (@NotNull Component component) { for (Editor editor : myEditors) { if (editor != null && editor.getGutter() == component) { return editor; } } return null; } | getEditor |
257,545 | JComponent (@NotNull final DiffContext context) { return createComponent(myFileName, context); } | getComponent |
257,546 | JComponent (@Nullable String fileName, @Nullable DiffContext context) { String message = DiffBundle.message("error.cant.show.diff.for.unknown.file"); if (fileName == null) return DiffUtil.createMessagePanel(message); return ErrorDiffTool.createReloadMessagePanel(context, message, DiffBundle.message("button.associate.fi... | createComponent |
257,547 | String () { return myFileName; } | getFileName |
257,548 | String () { return myTitle; } | getTitle |
257,549 | void (@NotNull DiffContext context) { if (context instanceof DiffContextEx) ((DiffContextEx)context).reloadDiffRequest(); } | tryReloadRequest |
257,550 | DocumentContent () { return myOutput; } | getOutputContent |
257,551 | List<DocumentContent> () { return myContents; } | getContents |
257,552 | String () { return myTitle; } | getTitle |
257,553 | List<String> () { return myTitles; } | getContentTitles |
257,554 | void (@NotNull MergeResult result) { final CharSequence applyContent; switch (result) { case CANCEL -> applyContent = MergeUtil.shouldRestoreOriginalContentOnCancel(this) ? myOriginalContent : null; case LEFT -> { CharSequence leftContent = ThreeSide.LEFT.select(getContents()).getDocument().getImmutableCharSequence(); ... | applyResult |
257,555 | void (boolean assigned) { myOutput.onAssigned(assigned); for (DocumentContent content : myContents) { content.onAssigned(assigned); } } | onAssigned |
257,556 | FileContent () { return myFile; } | getOutputContent |
257,557 | List<DiffContent> () { return myContents; } | getContents |
257,558 | List<byte[]> () { return myByteContents; } | getByteContents |
257,559 | String () { return myTitle; } | getTitle |
257,560 | List<String> () { return myTitles; } | getContentTitles |
257,561 | void (@NotNull MergeResult result) { final byte[] applyContent = switch (result) { case CANCEL -> MergeUtil.shouldRestoreOriginalContentOnCancel(this) ? myOriginalContent : null; case LEFT -> ThreeSide.LEFT.select(myByteContents); case RIGHT -> ThreeSide.RIGHT.select(myByteContents); case RESOLVED -> null; }; if (apply... | applyResult |
257,562 | void (boolean assigned) { myFile.onAssigned(assigned); for (DiffContent content : myContents) { content.onAssigned(assigned); } } | onAssigned |
257,563 | boolean (@Nullable Project project, @NotNull DiffContent content) { if (project == null) return false; Language language = getLanguage(project, content); if (language == null) return false; return accepts(project, language); } | accepts |
257,564 | List<TextRange> (@Nullable Project project, @NotNull CharSequence text, @NotNull DiffContent content) { assert project != null; Language language = getLanguage(project, content); assert language != null; return computeIgnoredRanges(project, text, language); } | getIgnoredRanges |
257,565 | Language (@NotNull Project project, @NotNull DiffContent content) { Language language = content.getUserData(DiffUserDataKeys.LANGUAGE); if (language != null) return language; FileType fileType = content.getContentType(); VirtualFile file = content instanceof DocumentContent ? ((DocumentContent)content).getHighlightFile... | getLanguage |
257,566 | File (@NotNull String path, @Nullable String currentDirectory) { File file = new File(path); if (!file.isAbsolute() && currentDirectory != null) { file = new File(currentDirectory, path); } return file; } | getFile |
257,567 | List<VirtualFile> (@NotNull List<? extends VirtualFile> contents) { return ContainerUtil.map(contents, file -> file != null ? file : new LightVirtualFile(NULL_PATH, PlainTextFileType.INSTANCE, "")); } | replaceNullsWithEmptyFile |
257,568 | void () { super.onInit(); myModifierProvider.init(); } | onInit |
257,569 | void () { Disposer.dispose(myModel); myLineStatusTracker.release(); myInnerDiffWorker.disable(); super.onDispose(); } | onDispose |
257,570 | List<TextEditorHolder> (@NotNull EditorHolderFactory<TextEditorHolder> factory) { List<TextEditorHolder> holders = super.createEditorHolders(factory); ThreeSide.BASE.select(holders).getEditor().putUserData(DiffUserDataKeys.MERGE_EDITOR_FLAG, true); return holders; } | createEditorHolders |
257,571 | List<AnAction> () { List<AnAction> group = new ArrayList<>(); DefaultActionGroup diffGroup = DefaultActionGroup.createPopupGroup(() -> ActionsBundle.message("group.compare.contents.text")); diffGroup.getTemplatePresentation().setIcon(AllIcons.Actions.Diff); diffGroup.add(Separator.create(ActionsBundle.message("group.co... | createToolbarActions |
257,572 | List<AnAction> () { List<AnAction> group = new ArrayList<>(); group.add(new ApplySelectedChangesAction(Side.LEFT)); group.add(new ApplySelectedChangesAction(Side.RIGHT)); group.add(new ResolveSelectedChangesAction(Side.LEFT)); group.add(new ResolveSelectedChangesAction(Side.RIGHT)); group.add(new IgnoreSelectedChangesS... | createEditorPopupActions |
257,573 | List<AnAction> () { List<AnAction> group = new ArrayList<>(myTextDiffProvider.getPopupActions()); group.add(Separator.getInstance()); group.add(new MyToggleAutoScrollAction()); return group; } | createPopupActions |
257,574 | Action (@NotNull final MergeResult result) { String caption = MergeUtil.getResolveActionTitle(result, myMergeRequest, myMergeContext); return new AbstractAction(caption) { @Override public void actionPerformed(ActionEvent e) { if ((result == MergeResult.LEFT || result == MergeResult.RIGHT) && !MergeUtil.showConfirmDisc... | getResolveAction |
257,575 | void (ActionEvent e) { if ((result == MergeResult.LEFT || result == MergeResult.RIGHT) && !MergeUtil.showConfirmDiscardChangesDialog(myPanel.getRootPane(), result == MergeResult.LEFT ? DiffBundle.message("button.merge.resolve.accept.left") : DiffBundle.message("button.merge.resolve.accept.right"), myContentModified)) {... | actionPerformed |
257,576 | void (@NotNull final MergeResult result) { destroyChangedBlocks(); myMergeContext.finishMerge(result); } | doFinishMerge |
257,577 | void () { if (isDisposed()) return; if (myTextDiffProvider.getIgnorePolicy().equals(myCurrentIgnorePolicy)) return; if (!myInitialRediffFinished) { ApplicationManager.getApplication().invokeLater(() -> restartMergeResolveIfNeeded()); return; } if (myContentModified) { if (Messages.showYesNoDialog(myProject, DiffBundle.... | restartMergeResolveIfNeeded |
257,578 | boolean () { final Document baseDocument = ThreeSide.BASE.select(myMergeRequest.getContents()).getDocument(); final Document outputDocument = myMergeRequest.getOutputContent().getDocument(); return DiffUtil.executeWriteCommand(outputDocument, getProject(), DiffBundle.message("message.init.merge.content.command"), () ->... | setInitialOutputContent |
257,579 | void (boolean trySync) { if (myInitialRediffStarted) return; myInitialRediffStarted = true; assert myAllMergeChanges.isEmpty(); doRediff(); } | rediff |
257,580 | Runnable (@NotNull ProgressIndicator indicator) { throw new UnsupportedOperationException(); } | performRediff |
257,581 | void () { myStatusPanel.setBusy(true); myInnerDiffWorker.disable(); // This is made to reduce unwanted modifications before rediff is finished. // It could happen between this init() EDT chunk and invokeLater(). getEditor().setViewer(true); myLoadingPanel.startLoading(); myAcceptResolveAction.setEnabled(false); Backgro... | doRediff |
257,582 | Runnable (@NotNull ProgressIndicator indicator) { try { indicator.checkCanceled(); IgnorePolicy ignorePolicy = myTextDiffProvider.getIgnorePolicy(); List<DocumentContent> contents = myMergeRequest.getContents(); List<CharSequence> sequences = ReadAction.compute(() -> { indicator.checkCanceled(); return ContainerUtil.ma... | doPerformRediff |
257,583 | void (@NotNull List<? extends MergeLineFragment> fragments, @NotNull List<? extends MergeConflictType> conflictTypes, @Nullable FoldingModelSupport.Data foldingState, @NotNull IgnorePolicy ignorePolicy) { if (isDisposed()) return; myFoldingModel.updateContext(myRequest, getFoldingModelSettings()); clearDiffPresentation... | apply |
257,584 | void () { super.destroyChangedBlocks(); myInnerDiffWorker.stop(); for (TextMergeChange change : myAllMergeChanges) { change.destroy(); } myAllMergeChanges.clear(); myModel.setChanges(Collections.emptyList()); } | destroyChangedBlocks |
257,585 | Action (@NotNull MergeResult result) { return switch (result) { case CANCEL -> myCancelResolveAction; case LEFT -> myLeftResolveAction; case RIGHT -> myRightResolveAction; case RESOLVED -> myAcceptResolveAction; }; } | getLoadedResolveAction |
257,586 | boolean () { return myContentModified; } | isContentModified |
257,587 | void (@NotNull TextMergeChange change) { scheduleRediff(Collections.singletonList(change)); } | scheduleRediff |
257,588 | void (@NotNull Collection<? extends TextMergeChange> changes) { if (!myEnabled) return; putChanges(changes); schedule(); } | scheduleRediff |
257,589 | void () { boolean enabled = myTextDiffProvider.getHighlightPolicy() == HighlightPolicy.BY_WORD; if (myEnabled == enabled) return; myEnabled = enabled; rebuildEverything(); } | onSettingsChanged |
257,590 | void () { myEnabled = myTextDiffProvider.getHighlightPolicy() == HighlightPolicy.BY_WORD; rebuildEverything(); } | onEverythingChanged |
257,591 | void () { myEnabled = false; stop(); } | disable |
257,592 | void () { if (myProgress != null) myProgress.cancel(); myProgress = null; if (myEnabled) { putChanges(myAllMergeChanges); launchRediff(true); } else { myStatusPanel.setBusy(false); myScheduled.clear(); for (TextMergeChange change : myAllMergeChanges) { change.setInnerFragments(null); } } } | rebuildEverything |
257,593 | void () { if (myProgress != null) myProgress.cancel(); myProgress = null; myScheduled.clear(); myAlarm.cancelAllRequests(); } | stop |
257,594 | void (@NotNull Collection<? extends TextMergeChange> changes) { for (TextMergeChange change : changes) { if (change.isResolved()) continue; myScheduled.add(change); } } | putChanges |
257,595 | void () { if (myProgress != null) return; if (myScheduled.isEmpty()) return; myAlarm.cancelAllRequests(); myAlarm.addRequest(() -> launchRediff(false), ProgressIndicatorWithDelayedPresentation.DEFAULT_PROGRESS_DIALOG_POSTPONE_TIME_MILLIS); } | schedule |
257,596 | void (boolean trySync) { myStatusPanel.setBusy(true); final List<TextMergeChange> scheduled = new ArrayList<>(myScheduled); myScheduled.clear(); List<Document> documents = ThreeSide.map((side) -> getEditor(side).getDocument()); final List<InnerChunkData> data = ContainerUtil.map(scheduled, change -> new InnerChunkData(... | launchRediff |
257,597 | Runnable (@NotNull final List<? extends TextMergeChange> scheduled, @NotNull final List<? extends InnerChunkData> data, @NotNull final ProgressIndicator indicator) { ComparisonPolicy comparisonPolicy = myTextDiffProvider.getIgnorePolicy().getComparisonPolicy(); final List<MergeInnerDifferences> result = new ArrayList<>... | performRediff |
257,598 | void (@NotNull DocumentEvent e) { super.onBeforeDocumentChange(e); if (myInitialRediffFinished) myContentModified = true; } | onBeforeDocumentChange |
257,599 | void () { myContentPanel.repaintDividers(); } | repaintDividers |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.