Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
259,100 | void (@NotNull @Nls String title, @NotNull List<? extends Change> changes) { VcsDiffUtil.showChangesDialog(myProject, title, changes); } | showChangesDialog |
259,101 | void (@NotNull VcsException e, @NotNull @Nls String logMessage) { LOG.info(logMessage, e); VcsBalloonProblemNotifier.showOverVersionControlView(myProject, e.getMessage(), MessageType.ERROR); } | showError |
259,102 | String (@NotNull final FilePath path, @NotNull final T rev1, @Nullable final T rev2) { String rev1Title = getPresentableName(rev1); if (rev2 == null) { return VcsBundle.message("file.history.diff.handler.paths.diff.with.local.title", rev1Title, path.getName()); } String rev2Title = getPresentableName(rev2); return VcsB... | getChangesBetweenRevisionsDialogTitle |
259,103 | String (@NotNull final FilePath path, @NotNull final T rev) { return VcsBundle.message("file.history.diff.handler.affected.changes.title", getPresentableName(rev), path.getName()); } | getAffectedChangesDialogTitle |
259,104 | void (@NotNull ProgressIndicator indicator) { try { myChanges = getChanges(); } catch (VcsException e) { showError(e, VcsBundle.message("file.history.diff.handler.process.error", getDialogTitle())); } } | run |
259,105 | void () { showChangesDialog(getDialogTitle(), ContainerUtil.notNullize(myChanges)); } | onSuccess |
259,106 | Comparator<TreeNodeOnVcsRevision> () { final Comparator<VcsFileRevision> comparator = myBaseColumn.getComparator(); if (comparator == null) return null; return (o1, o2) -> { if (o1 == null) return -1; if (o2 == null) return 1; VcsFileRevision revision1 = o1.getRevision(); VcsFileRevision revision2 = o2.getRevision(); r... | getComparator |
259,107 | String () { return myBaseColumn.getName(); } | getName |
259,108 | void (String s) { myBaseColumn.setName(s); } | setName |
259,109 | Class () { return myBaseColumn.getColumnClass(); } | getColumnClass |
259,110 | boolean (TreeNodeOnVcsRevision o) { return myBaseColumn.isCellEditable(o.getRevision()); } | isCellEditable |
259,111 | void (TreeNodeOnVcsRevision o, T aValue) { myBaseColumn.setValue(o.getRevision(), aValue); } | setValue |
259,112 | TableCellRenderer (TreeNodeOnVcsRevision p0) { return myBaseColumn.getRenderer(p0.getRevision()); } | getRenderer |
259,113 | TableCellEditor (TreeNodeOnVcsRevision item) { return myBaseColumn.getEditor(item.getRevision()); } | getEditor |
259,114 | String () { final String superValue = myBaseColumn.getMaxStringValue(); if (superValue != null) return superValue; return getMaxValue(myBaseColumn.getName()); } | getMaxStringValue |
259,115 | String (@NotNull String columnHeader) { TableView table = getDualView().getFlatView(); if (table.getRowCount() == 0) return null; final Enumeration<TableColumn> columns = table.getColumnModel().getColumns(); int idx = 0; while (columns.hasMoreElements()) { TableColumn column = columns.nextElement(); if (columnHeader.eq... | getMaxValue |
259,116 | int () { return myBaseColumn.getAdditionalWidth(); } | getAdditionalWidth |
259,117 | int (JTable table) { return myBaseColumn.getWidth(table); } | getWidth |
259,118 | boolean () { return true; } | shouldBeShownIsTheTree |
259,119 | boolean () { return true; } | shouldBeShownIsTheTable |
259,120 | T (TreeNodeOnVcsRevision o) { return myBaseColumn.valueOf(o.getRevision()); } | valueOf |
259,121 | void (@NotNull AnActionEvent e, @NotNull Project project, @NotNull FilePath filePath, @NotNull VcsFileRevision previousRevision, @NotNull VcsFileRevision revision) { VcsHistoryUtil.showDifferencesInBackground(project, filePath, previousRevision, revision); } | showDiffForOne |
259,122 | void (@NotNull Project project, @NotNull FilePath filePath, @NotNull VcsFileRevision revision1, @NotNull VcsFileRevision revision2) { VcsHistoryUtil.showDifferencesInBackground(project, filePath, revision1, revision2); } | showDiffForTwo |
259,123 | void () { VcsConfiguration configuration = VcsConfiguration.getInstance(myProject); myLimit = configuration.LIMIT_HISTORY ? configuration.MAXIMUM_HISTORY_ROWS : -1; myCount = 0; } | init |
259,124 | void () { if (myLimit <= 0) return; ++myCount; if (isOver()) { if (!myWarningShown) { String settingPath = isMac ? VcsBundle.message("vcs.settings.path.mac") : VcsBundle.message("vcs.settings.path"); String message = VcsBundle.message("file.history.exceeded.limit.message", myLimit, myFilePath, settingPath); VcsBalloonP... | checkNumber |
259,125 | void () { init(); } | reset |
259,126 | boolean () { return isOver(myCount); } | isOver |
259,127 | boolean (int count) { return myLimit > 0 && myLimit < count; } | isOver |
259,128 | void (@NotNull FilePath filePath, @Nullable VcsRevisionNumber startRevisionNumber, @NotNull VcsKey vcsKey, @NotNull BackgroundableActionLock lock, @NotNull VcsHistorySessionConsumer partner, boolean canUseCache) { if (lock.isLocked()) return; lock.lock(); ProgressManager.getInstance().run(new Task.Backgroundable(myProj... | reportHistoryInBackground |
259,129 | void (@NotNull ProgressIndicator indicator) { indicator.setText(VcsUtil.getPathForProgressPresentation(filePath.getIOFile())); indicator.setIndeterminate(true); reportHistory(filePath, startRevisionNumber, vcsKey, partner, canUseCache); } | run |
259,130 | void () { lock.unlock(); } | onFinished |
259,131 | void (@NotNull FilePath filePath, @Nullable VcsRevisionNumber startRevisionNumber, @NotNull VcsKey vcsKey, @NotNull VcsHistorySessionConsumer partner, boolean canUseCache) { try { if (startRevisionNumber == null) { partner = wrapPartnerToCachingPartner(vcsKey, filePath, partner); } VcsAbstractHistorySession cachedSessi... | reportHistory |
259,132 | VcsHistoryCache () { return myVcsHistoryCache; } | getHistoryCache |
259,133 | VcsHistorySessionConsumer (@NotNull VcsKey vcsKey, @NotNull FilePath filePath, @NotNull VcsHistorySessionConsumer partner) { // this is what needs to be done to put computed file history in cache // we can not retrieve a session from a partner in any other way VcsCacheableHistorySessionFactory<Serializable, VcsAbstract... | wrapPartnerToCachingPartner |
259,134 | VcsAbstractHistorySession (@NotNull FilePath filePath, @NotNull VcsKey vcsKey, @NotNull VcsCacheableHistorySessionFactory<Serializable, VcsAbstractHistorySession> cacheableFactory) { ProgressIndicator indicator = ProgressManager.getInstance().getProgressIndicator(); if (indicator != null) { indicator.setText2(VcsBundle... | getSessionFromCacheWithLastRevisionCheck |
259,135 | void (@NotNull AbstractVcs vcs, @NotNull FilePath filePath, @NotNull VcsBackgroundableActions actionKey, @NotNull com.intellij.util.Consumer<? super VcsHistorySession> consumer) { VcsCachingHistory history = new VcsCachingHistory(vcs, Objects.requireNonNull(vcs.getVcsHistoryProvider()), vcs.getDiffProvider()); Collecti... | collectInBackground |
259,136 | void (@NotNull AbstractVcs vcs, @NotNull FilePath filePath, @NotNull VcsHistorySessionConsumer partner, boolean canUseCache) { VcsCachingHistory history = new VcsCachingHistory(vcs, Objects.requireNonNull(vcs.getVcsHistoryProvider()), vcs.getDiffProvider()); BackgroundableActionLock lock = getHistorySessionLock(vcs, fi... | collectInBackground |
259,137 | void (@NotNull AbstractVcs vcs, @NotNull FilePath filePath, @NotNull VcsRevisionNumber startRevisionNumber, @NotNull VcsHistorySessionConsumer partner) { if (!(vcs.getVcsHistoryProvider() instanceof VcsHistoryProviderEx)) throw new UnsupportedOperationException(); BackgroundableActionLock lock = getHistorySessionLock(v... | collectInBackground |
259,138 | boolean (@NotNull AbstractVcs vcs, @NotNull FilePath filePath, @NotNull VcsHistorySessionConsumer partner) { VcsCachingHistory history = new VcsCachingHistory(vcs, Objects.requireNonNull(vcs.getVcsHistoryProvider()), vcs.getDiffProvider()); VcsCacheableHistorySessionFactory<Serializable, VcsAbstractHistorySession> cach... | collectFromCache |
259,139 | void (@NotNull ProgressIndicator indicator) { partner.reportCreatedEmptySession(session); partner.finished(); } | run |
259,140 | BackgroundableActionLock (@NotNull AbstractVcs vcs, @NotNull FilePath filePath, @Nullable VcsRevisionNumber startRevisionNumber) { return getHistoryLock(vcs, VcsBackgroundableActions.CREATE_HISTORY_SESSION, filePath, startRevisionNumber); } | getHistorySessionLock |
259,141 | BackgroundableActionLock (@NotNull AbstractVcs vcs, @NotNull VcsBackgroundableActions actionKey, @NotNull FilePath filePath, @Nullable VcsRevisionNumber startRevisionNumber) { if (startRevisionNumber != null) { return getLock(vcs.getProject(), actionKey, filePath.getPath(), startRevisionNumber.asString()); } return get... | getHistoryLock |
259,142 | void (VcsAbstractHistorySession session) { List<VcsFileRevision> revisionList = session.getRevisionList(); while (myCheck.isOver(revisionList.size())) revisionList.remove(revisionList.size() - 1); mySession = session; } | reportCreatedEmptySession |
259,143 | void (VcsFileRevision revision) { myCheck.checkNumber(); mySession.appendRevision(revision); } | acceptRevision |
259,144 | void (VcsException exception) { AbstractVcsHelper.getInstance(myProject).showError(exception, VcsBundle.message("message.title.could.not.load.file.history")); } | reportException |
259,145 | void () { if (mySession != null) { ApplicationManager.getApplication().invokeLater(() -> myContinuation.accept(mySession), ModalityState.defaultModalityState()); } } | finished |
259,146 | void (VcsAbstractHistorySession session) { myCopy = (VcsAbstractHistorySession)session.copy(); myPartner.reportCreatedEmptySession(session); } | reportCreatedEmptySession |
259,147 | void (VcsFileRevision revision) { myCopy.appendRevision(revision); myPartner.acceptRevision(revision); } | acceptRevision |
259,148 | void (VcsException exception) { myPartner.reportException(exception); } | reportException |
259,149 | void () { myPartner.finished(); myFinish.accept(myCopy); } | finished |
259,150 | void (final VcsRevisionNumber revisionNumber, final FilePath filePath, final VcsAnnotation vcsAnnotation) { BackgroundTaskUtil.executeOnPooledThread(myVcs.getProject(), () -> { try { getHistory(revisionNumber, filePath, myVcs.getVcsHistoryProvider(), vcsAnnotation.getFirstRevision()); } catch (VcsException e) { LOG.inf... | loadHistoryInBackgroundToCache |
259,151 | boolean (@NotNull VcsFileRevision rev) { return myAnnotationProvider.isAnnotationValid(rev); } | isAnnotationValid |
259,152 | void (VcsAbstractHistorySession session) { result[0] = session; } | reportCreatedEmptySession |
259,153 | void (VcsFileRevision revision) { result[0].appendRevision(revision); if (firstNumber.equals(revision.getRevisionNumber())) throw new ProcessCanceledException(); } | acceptRevision |
259,154 | void (VcsException exception) { exc[0] = exception; } | reportException |
259,155 | String (@NotNull @NlsSafe String revision, boolean localMark) { return revision + (localMark ? " (" + VcsBundle.message("diff.title.local") + ")" : ""); } | getRevisionTitle |
259,156 | String (@NotNull @NlsSafe String revision, @Nullable FilePath file, @Nullable FilePath baseFile) { boolean needFileName = file != null && !VcsFileUtil.CASE_SENSITIVE_FILE_PATH_HASHING_STRATEGY.equals(baseFile, file); if (!needFileName) return revision; String fileName = getRelativeFileName(baseFile, file); return revis... | getRevisionTitle |
259,157 | void (@NotNull Change change, @NotNull Map<Key<?>, Object> context) { ContentRevision afterRevision = change.getAfterRevision(); ContentRevision beforeRevision = change.getBeforeRevision(); FilePath aFile = afterRevision == null ? null : afterRevision.getFile(); FilePath bFile = beforeRevision == null ? null : beforeRe... | putFilePathsIntoChangeContext |
259,158 | String (@Nullable ContentRevision revision, @Nullable FilePath file, @Nullable FilePath baseFile) { return getRevisionTitle(getShortHash(revision), file, baseFile); } | getRevisionTitle |
259,159 | String (@Nullable ContentRevision revision) { if (revision == null) return ""; VcsRevisionNumber revisionNumber = revision.getRevisionNumber(); if (revisionNumber instanceof ShortVcsRevisionNumber) return ((ShortVcsRevisionNumber)revisionNumber).toShortString(); return revisionNumber.asString(); } | getShortHash |
259,160 | String (@Nullable FilePath baseFile, @NotNull FilePath file) { if (baseFile == null || !baseFile.getName().equals(file.getName())) return file.getName(); FilePath aParentPath = baseFile.getParentPath(); if (aParentPath == null) return file.getName(); return VcsFileUtil.relativePath(aParentPath.getIOFile(), file.getIOFi... | getRelativeFileName |
259,161 | void (@NotNull Project project, @NotNull @NlsContexts.DialogTitle String title, @NotNull List<? extends Change> changes) { DialogBuilder dialogBuilder = new DialogBuilder(project); dialogBuilder.setTitle(title); dialogBuilder.setActionDescriptors(new DialogBuilder.CloseDialogAction()); final SimpleAsyncChangesBrowser c... | showChangesDialog |
259,162 | List<Change> (@NotNull FilePath filePath, @Nullable ContentRevision beforeContentRevision) { return Collections.singletonList(new Change(beforeContentRevision, CurrentContentRevision.create(filePath))); } | createChangesWithCurrentContentForFile |
259,163 | void (@NotNull final Project project, @NotNull final VirtualFile file, @NotNull final VcsRevisionNumber targetRevNumber, @NotNull DiffProvider provider) { String revNumTitle1 = getRevisionTitle(getShortRevisionString(targetRevNumber), false); String revNumTitle2 = VcsBundle.message("diff.title.local"); String dialogTit... | showChangesWithWorkingDirLater |
259,164 | void (Component component) { if (component instanceof JComponent jComponent) { Font font = jComponent.getFont(); if (font != null) { jComponent.setFont(font.deriveFont(Font.BOLD)); } } else if (component instanceof Container container) { for (int i = 0; i < container.getComponentCount(); i++) { makeBold(container.getCo... | makeBold |
259,165 | String (@NotNull VcsFileRevision revision, boolean withMessage) { // implementation reflected by com.intellij.vcs.log.ui.frame.VcsLogGraphTable.getPresentableText() @Nls StringBuilder sb = new StringBuilder(); long time = revision.getRevisionDate().getTime(); sb.append(VcsBundle.message("file.history.details.hash.autho... | getPresentableText |
259,166 | boolean (@NotNull FileHistoryPanelImpl historyPanel, @NotNull FilePath filePath2, @Nullable VcsRevisionNumber startingRevision2) { return sameHistories(historyPanel.myFilePath, historyPanel.myStartingRevision, filePath2, startingRevision2); } | sameHistories |
259,167 | boolean (@NotNull FilePath filePath1, @Nullable VcsRevisionNumber startingRevision1, @NotNull FilePath filePath2, @Nullable VcsRevisionNumber startingRevision2) { String existingRevision = startingRevision1 == null ? null : startingRevision1.asString(); String newRevision = startingRevision2 == null ? null : startingRe... | sameHistories |
259,168 | void (@NotNull VcsHistorySession session) { if (myTargetSelection == null) { myTargetSelection = myDualView.getFlatView().getSelectedObjects(); } myHistorySession = session; refreshRevisionsOrder(); HistoryAsTreeProvider treeHistoryProvider = session.getHistoryAsTreeProvider(); if (myHistorySession.getRevisionList().is... | setHistorySession |
259,169 | void () { if (myHistorySession.getHistoryAsTreeProvider() != null) { // scroll tree view to most recent change final TreeTableView treeView = myDualView.getTreeView(); final int lastRow = treeView.getRowCount() - 1; if (lastRow >= 0) { treeView.scrollRectToVisible(treeView.getCellRect(lastRow, 0, true)); } } myTargetSe... | finishRefresh |
259,170 | void () { VirtualFile virtualFile = myFilePath.getVirtualFile(); if ((virtualFile == null || !virtualFile.isValid()) && !myFilePath.getIOFile().exists()) { myDualView.setEmptyText(VcsBundle.message("history.file.not.found", myFilePath.getName())); } else if (VcsCachingHistory.getHistoryLock(myVcs, VcsBackgroundableActi... | adjustEmptyText |
259,171 | void (@NotNull DefaultActionGroup group) { myDualView.setShowGrid(true); PopupHandler.installPopupMenu(myDualView.getTreeView(), group, ActionPlaces.UPDATE_POPUP); PopupHandler.installPopupMenu(myDualView.getFlatView(), group, ActionPlaces.UPDATE_POPUP); IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> ... | setupDualView |
259,172 | void () { //noinspection unchecked List<TreeNodeOnVcsRevision> selection = (List<TreeNodeOnVcsRevision>)myDualView.getSelection(); myDetails.update(selection); if (selection.isEmpty()) { return; } if (myRevisionSelectionListener != null) { myRevisionSelectionListener.consume(selection.get(0).getRevision()); } } | updateMessage |
259,173 | JComponent () { mySplitter = new OnePixelSplitter(true, "vcs.history.splitter.proportion", 0.6f); mySplitter.setFirstComponent(myDualView); JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(myDetails); scrollPane.setBorder(IdeBorderFactory.createBorder(SideBorder.LEFT)); myDetailsSplitter = new OnePixelSplitt... | createCenterPanel |
259,174 | void () { boolean showDetails = !myIsStaticAndEmbedded && VcsConfiguration.getInstance(myVcs.getProject()).SHOW_FILE_HISTORY_DETAILS; myDualView.setViewBorder(IdeBorderFactory.createBorder(SideBorder.LEFT)); mySplitter.setSecondComponent(showDetails ? myDetailsSplitter : null); } | setupDetails |
259,175 | void () { if (VcsConfiguration.getInstance(myVcs.getProject()).SHOW_FILE_HISTORY_AS_TREE) { myDualView.switchToTheTreeMode(); } else { myDualView.switchToTheFlatMode(); } } | chooseView |
259,176 | DefaultActionGroup (boolean popup, DefaultActionGroup result) { if (popup) { result.add(ActionManager.getInstance().getAction(IdeActions.ACTION_EDIT_SOURCE)); } result.add(ActionManager.getInstance().getAction(popup ? VCS_HISTORY_POPUP_ACTION_GROUP : VCS_HISTORY_TOOLBAR_ACTION_GROUP)); AnAction[] additionalActions = my... | fillActionGroup |
259,177 | Object (@NotNull String dataId) { if (CommonDataKeys.NAVIGATABLE.is(dataId)) { VcsFileRevision[] selectedRevisions = getSelectedRevisions(); if (selectedRevisions.length != 1) return null; VcsFileRevision firstSelectedRevision = ArrayUtil.getFirstElement(selectedRevisions); if (!myHistorySession.isContentAvailable(firs... | getData |
259,178 | VirtualFile (VcsFileRevision revision) { if (!myRevisionToVirtualFile.containsKey(revision)) { FilePath filePath = (revision instanceof VcsFileRevisionEx ? ((VcsFileRevisionEx)revision).getPath() : myFilePath); myRevisionToVirtualFile.put(revision, filePath.isDirectory() ? new VcsVirtualFolder(filePath.getPath(), null,... | createVirtualFileForRevision |
259,179 | void () { myDualView.dispose(); } | dispose |
259,180 | void () { final List<VcsFileRevision> list = myHistorySession.getRevisionList(); myRevisionsOrder.clear(); int cnt = 0; for (VcsFileRevision revision : list) { myRevisionsOrder.put(revision.getRevisionNumber(), cnt); ++cnt; } } | refreshRevisionsOrder |
259,181 | void (boolean isStaticAndEmbedded) { myIsStaticAndEmbedded = isStaticAndEmbedded; myDualView.setZipByHeight(isStaticAndEmbedded); myDualView.getFlatView().updateColumnSizes(); if (myIsStaticAndEmbedded) { myDualView.getFlatView().getTableHeader().setBorder(IdeBorderFactory.createBorder(SideBorder.TOP)); myDualView.getT... | setIsStaticAndEmbedded |
259,182 | void (VcsFileRevision bottomRevisionForShowDiff) { myBottomRevisionForShowDiff = bottomRevisionForShowDiff; } | setBottomRevisionForShowDiff |
259,183 | boolean (Object obj) { return obj instanceof FileHistoryPanelImpl && sameHistories((FileHistoryPanelImpl)obj, myFilePath, myStartingRevision); } | equals |
259,184 | int () { int result = myFilePath.hashCode(); result = 31 * result + (myStartingRevision != null ? myStartingRevision.asString().hashCode() : 0); // NB: asString to conform to equals return result; } | hashCode |
259,185 | void (@NotNull DataContext dataContext) { String text = StringUtil.join(getSelectedRevisions(), revision -> getPresentableText(revision, true), "\n"); CopyPasteManager.getInstance().setContents(new StringSelection(text)); } | performCopy |
259,186 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
259,187 | boolean (@NotNull DataContext dataContext) { //noinspection unchecked return !((List<TreeNodeOnVcsRevision>)myDualView.getSelection()).isEmpty(); } | isCopyEnabled |
259,188 | boolean (@NotNull DataContext dataContext) { return true; } | isCopyVisible |
259,189 | void (EditorColorsScheme scheme) { updateMessage(); } | globalSchemeChange |
259,190 | DualView () { return myDualView; } | getDualView |
259,191 | TableCellRenderer (TreeNodeOnVcsRevision revision, @Nullable TableCellRenderer renderer) { if (renderer instanceof BaseHistoryCellRenderer) { ((BaseHistoryCellRenderer)renderer) .setCurrentRevision(myHistorySession.isCurrentRevision(revision.getRevision().getRevisionNumber())); } return renderer; } | getCustomizedRenderer |
259,192 | SimpleTextAttributes () { return myIsCurrentRevision ? SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES : SimpleTextAttributes.REGULAR_ATTRIBUTES; } | getDefaultAttributes |
259,193 | void (boolean currentRevision) { myIsCurrentRevision = currentRevision; } | setCurrentRevision |
259,194 | void (@NotNull JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) { setOpaque(selected); append(VcsUtil.getShortRevisionString((VcsRevisionNumber)value), getDefaultAttributes()); SpeedSearchUtil.applySpeedSearchHighlighting(table, this, false, selected); } | customizeCellRenderer |
259,195 | VcsRevisionNumber (VcsFileRevision revision) { return revision.getRevisionNumber(); } | valueOf |
259,196 | Comparator<VcsFileRevision> () { return myComparator; } | getComparator |
259,197 | String () { return StringUtil.repeatSymbol('m', 10); } | getPreferredStringValue |
259,198 | TableCellRenderer (VcsFileRevision revision) { return myRenderer; } | getRenderer |
259,199 | void (@NotNull JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) { setOpaque(selected); Date date = (Date)value; if (date != null) { append(JBDateFormat.getFormatter().formatPrettyDateTime(date), getDefaultAttributes()); } SpeedSearchUtil.applySpeedSearchHighlighting(table, this, fals... | customizeCellRenderer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.