Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
68,200 | boolean () { return DiffUtil.isFocusedComponentInWindow(myPropertiesViewer.getComponent()); } | isFocusedInWindow |
68,201 | void () { DiffUtil.requestFocusInWindow(myPropertiesViewer.getPreferredFocusedComponent()); } | requestFocusInWindow |
68,202 | void (FocusEvent e) { myPropertiesViewerFocused = myValue; } | focusGained |
68,203 | Divider () { return new DividerImpl() { @Override public void setOrientation(boolean isVerticalSplit) { if (!isVertical()) LOG.warn("unsupported state: splitter should be vertical"); removeAll(); setCursor(Cursor.getPredefinedCursor(Cursor.N_RESIZE_CURSOR)); JLabel label = new JLabel(myLabelText); label.setFont(UIUtil.... | createDivider |
68,204 | void (boolean isVerticalSplit) { if (!isVertical()) LOG.warn("unsupported state: splitter should be vertical"); removeAll(); setCursor(Cursor.getPredefinedCursor(Cursor.N_RESIZE_CURSOR)); JLabel label = new JLabel(myLabelText); label.setFont(UIUtil.getOptionPaneMessageFont()); label.setForeground(UIUtil.getLabelForegro... | setOrientation |
68,205 | void (Graphics g) { super.paintComponent(g); g.setColor(JBColor.border()); LinePainter2D.paint((Graphics2D)g, 0, 0, getWidth(), 0); } | paintComponent |
68,206 | ThreeState (@NotNull Change change1, @NotNull Change change2) { Change layer1 = getSvnChangeLayer(change1); Change layer2 = getSvnChangeLayer(change2); if (layer1 != null || layer2 != null) { if (layer1 == null || layer2 == null) return ThreeState.NO; } return ThreeState.UNSURE; } | isEquals |
68,207 | boolean (@Nullable Project project, @NotNull Change change) { return getSvnChangeLayer(change) != null; // TODO: do not show, if no properties are set in both revisions ? } | canCreate |
68,208 | Change (@NotNull Change change) { for (Map.Entry<String, Change> entry : change.getOtherLayers().entrySet()) { if (SvnChangeProvider.PROPERTY_LAYER.equals(entry.getKey())) { if (change.getOtherLayers().size() != 1) LOG.warn("Some of change layers ignored"); return entry.getValue(); } } return null; } | getSvnChangeLayer |
68,209 | ThreeState (@NotNull Change change1, @NotNull Change change2) { return ThreeState.UNSURE; } | isEquals |
68,210 | boolean (@Nullable Project project, @NotNull Change change) { return change instanceof ConflictedSvnChange && ((ConflictedSvnChange)change).isPhantom(); } | canCreate |
68,211 | String () { return ChangeDiffRequestProducer.getRequestTitle(myChange); } | getTitle |
68,212 | String () { return message("svn.phantom.changes.viewer"); } | getName |
68,213 | boolean (@NotNull DiffContext context, @NotNull DiffRequest request) { return request instanceof SvnPhantomDiffRequest; } | canShow |
68,214 | DiffViewer (@NotNull DiffContext context, @NotNull DiffRequest request) { return new DiffViewer() { @NotNull @Override public JComponent getComponent() { return UIVcsUtil.infoPanel(message("label.svn.phantom.change"), message("text.svn.phantom.change")); } @Nullable @Override public JComponent getPreferredFocusedCompon... | createComponent |
68,215 | JComponent () { return UIVcsUtil.infoPanel(message("label.svn.phantom.change"), message("text.svn.phantom.change")); } | getComponent |
68,216 | JComponent () { return null; } | getPreferredFocusedComponent |
68,217 | ToolbarComponents () { return new ToolbarComponents(); } | init |
68,218 | void () { } | dispose |
68,219 | DiffViewer (@NotNull DiffContext context, @NotNull DiffRequest request, @NotNull DiffViewer wrappedViewer) { return new SvnDiffViewer(context, myPropertyRequest, wrappedViewer); } | createComponent |
68,220 | ThreeState (@NotNull Change change1, @NotNull Change change2) { if (change1 instanceof ConflictedSvnChange conflict1 && change2 instanceof ConflictedSvnChange conflict2) { if (!conflict1.isTreeConflict() && !conflict2.isTreeConflict()) return ThreeState.UNSURE; if (!conflict1.isTreeConflict() || !conflict2.isTreeConfli... | isEquals |
68,221 | boolean (@Nullable Project project, @NotNull Change change) { return change instanceof ConflictedSvnChange && ((ConflictedSvnChange)change).getConflictState().isTree(); } | canCreate |
68,222 | ConflictedSvnChange () { return myChange; } | getChange |
68,223 | String () { return ChangeDiffRequestProducer.getRequestTitle(myChange); } | getTitle |
68,224 | String () { return message("svn.tree.conflict.viewer"); } | getName |
68,225 | boolean (@NotNull DiffContext context, @NotNull DiffRequest request) { return request instanceof SvnTreeConflictDiffRequest; } | canShow |
68,226 | DiffViewer (@NotNull DiffContext context, @NotNull DiffRequest request) { return new SvnTreeConflictDiffViewer(context, (SvnTreeConflictDiffRequest)request); } | createComponent |
68,227 | JComponent () { return myPanel; } | getComponent |
68,228 | JComponent () { return myPanel; } | getPreferredFocusedComponent |
68,229 | void () { myQueue.clear(); Disposer.dispose(myDelegate); } | dispose |
68,230 | DiffContent (@Nullable List<PropertyData> content) { if (content == null) return new EmptyContent(); return new PropertyContent(content); } | createContent |
68,231 | String () { return message("dialog.title.svn.properties.diff"); } | getTitle |
68,232 | List<String> () { return myContentTitles; } | getContentTitles |
68,233 | List<DiffContent> () { return myContents; } | getContents |
68,234 | List<PropertyData> () { return myProperties; } | getProperties |
68,235 | FileType () { return null; } | getContentType |
68,236 | SvnPropertiesDiffViewer (@NotNull DiffContext context, @NotNull SvnPropertiesDiffRequest request) { return create(context, request, false); } | create |
68,237 | SvnPropertiesDiffViewer (@NotNull DiffContext context, @NotNull SvnPropertiesDiffRequest request, boolean embedded) { Pair<ContentDiffRequest, List<DiffChange>> pair = convertRequest(request, embedded); return new SvnPropertiesDiffViewer(context, pair.first, pair.second); } | create |
68,238 | void () { super.onInit(); myContentPanel.setPainter(new MyDividerPainter()); } | onInit |
68,239 | Runnable (@NotNull ProgressIndicator indicator) { if (!myFirstRediff) return new EmptyRunnable(); myFirstRediff = false; for (DiffChange change : myDiffChanges) { PropertyRecord record = change.getRecord(); String before = record.getBefore(); String after = record.getAfter(); assert before != null || after != null; if ... | performRediff |
68,240 | void (@NotNull DiffChange change, @NotNull Side side) { List<? extends LineFragment> fragments = change.getFragments(); assert fragments != null; EditorEx editor = getEditor(side); DocumentEx document = editor.getDocument(); int changeStartLine = change.getStartLine(side); for (LineFragment fragment : fragments) { List... | setupHighlighting |
68,241 | void (@NotNull Graphics g, @NotNull JComponent divider) { ReadAction.run(() -> { Graphics2D gg = DiffDividerDrawUtil.getDividerGraphics(g, divider, getEditor1().getComponent()); Rectangle clip = gg.getClipBounds(); if (clip == null) return; gg.setColor(DiffDrawUtil.getDividerColor()); gg.fill(clip); EditorEx editor1 = ... | paint |
68,242 | void (@NotNull Handler handler) { for (DiffChange diffChange : myDiffChanges) { TextDiffType type = getDiffType(diffChange); if (type == null) continue; int shift1 = diffChange.getStartLine(Side.LEFT); int shift2 = diffChange.getStartLine(Side.RIGHT); List<? extends LineFragment> fragments = diffChange.getFragments(); ... | process |
68,243 | Color (@NotNull DiffChange change) { TextDiffType type = getDiffType(change); if (type == TextDiffType.INSERTED) return FileStatus.ADDED.getColor(); if (type == TextDiffType.DELETED) return FileStatus.DELETED.getColor(); if (type == TextDiffType.MODIFIED) return FileStatus.MODIFIED.getColor(); return JBColor.black; // ... | getRecordTitleColor |
68,244 | TextDiffType (@NotNull DiffChange change) { if (change.getRecord().getBefore() == null) return TextDiffType.INSERTED; if (change.getRecord().getAfter() == null) return TextDiffType.DELETED; if (change.getFragments() != null && !change.getFragments().isEmpty()) return TextDiffType.MODIFIED; return null; // unchanged } | getDiffType |
68,245 | void (@NotNull DocumentEvent event) { LOG.warn("Document changes are not supported"); } | onDocumentChange |
68,246 | boolean () { return true; } | isSyncScrollEnabled |
68,247 | int (@NotNull Side side, int line) { return line; } | transfer |
68,248 | Range (@NotNull Side baseSide, int line) { return BaseSyncScrollable.idRange(line); } | getRange |
68,249 | Object (@NotNull @NonNls String dataId) { if (PlatformCoreDataKeys.HELP_ID.is(dataId)) return HELP_ID; return super.getData(dataId); } | getData |
68,250 | List<PropertyRecord> (@NotNull SvnPropertiesDiffRequest request) { List<DiffContent> originalContents = request.getContents(); List<PropertyData> properties1 = getProperties(originalContents.get(0)); List<PropertyData> properties2 = getProperties(originalContents.get(1)); Map<String, PropertyValue> before = new HashMap... | collectRecords |
68,251 | List<PropertyData> (@NotNull DiffContent content) { if (content instanceof SvnPropertiesDiffRequest.PropertyContent) { return ((SvnPropertiesDiffRequest.PropertyContent)content).getProperties(); } return null; } | getProperties |
68,252 | PropertyRecord (@NotNull String name, @Nullable PropertyValue value1, @Nullable PropertyValue value2) { assert value1 != null || value2 != null; String text1 = value1 != null ? value1.toString() : null; String text2 = value2 != null ? value2.toString() : null; // TODO: show differences in line separators ? if (text1 !=... | createRecord |
68,253 | String () { return myBefore; } | getBefore |
68,254 | String () { return myAfter; } | getAfter |
68,255 | PropertyRecord () { return myRecord; } | getRecord |
68,256 | int (@NotNull Side side) { return side.select(myStartLine1, myStartLine2); } | getStartLine |
68,257 | int (@NotNull Side side) { return side.select(myEndLine1, myEndLine2); } | getEndLine |
68,258 | void (@Nullable List<? extends LineFragment> fragments) { myFragments = fragments; } | setFragments |
68,259 | String () { return message("svn.properties.viewer"); } | getName |
68,260 | boolean (@NotNull DiffContext context, @NotNull DiffRequest request) { return request instanceof SvnPropertiesDiffRequest; } | canShow |
68,261 | DiffViewer (@NotNull DiffContext context, @NotNull DiffRequest request) { return SvnPropertiesDiffViewer.create(context, (SvnPropertiesDiffRequest)request); } | createComponent |
68,262 | String () { return message("action.Subversion.Copy.text"); } | getActionName |
68,263 | boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { return SvnStatusUtil.isUnderControl(vcs, file); } | isEnabled |
68,264 | void (long revision, @NotNull Project project) { if (revision > 0) { StatusBar statusBar = WindowManager.getInstance().getStatusBar(project); if (statusBar != null) { statusBar.setInfo(message("status.text.committed.revision", revision)); } } } | updateStatusBar |
68,265 | void (@NotNull SvnVcs vcs, VirtualFile @NotNull [] files, @NotNull DataContext context) { } | batchPerform |
68,266 | boolean () { return false; } | isBatchAction |
68,267 | SvnBranchConfigurationNew (@NotNull Project project, @NotNull VirtualFile root) { SvnBranchConfigurationNew result = null; SvnVcs vcs = SvnVcs.getInstance(project); Url rootUrl = SvnUtil.getUrl(vcs, VfsUtilCore.virtualToIoFile(root)); if (rootUrl != null) { try { result = detect(vcs, rootUrl); } catch (VcsException e) ... | detect |
68,268 | boolean (@NotNull Url url) { return StringUtil.isEmpty(url.getTail()); } | hasEmptyName |
68,269 | boolean (@NotNull Url url) { String name = url.getTail(); return name.equalsIgnoreCase(TRUNK_NAME) || name.equalsIgnoreCase(BRANCHES_NAME) || name.equalsIgnoreCase(TAGS_NAME); } | hasDefaultName |
68,270 | DirectoryEntryConsumer (@NotNull final SvnBranchConfigurationNew result, @NotNull final Url rootPath) { return entry -> { if (entry.isDirectory()) { Url childUrl = append(rootPath, entry.getName()); if (StringUtil.endsWithIgnoreCase(entry.getName(), TRUNK_NAME)) { result.setTrunk(childUrl); } else { result.addBranches(... | createHandler |
68,271 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
68,272 | void (@NotNull AnActionEvent e) { Project project = e.getProject(); Presentation presentation = e.getPresentation(); if (project == null) { presentation.setEnabledAndVisible(false); return; } presentation.setVisible(true); ChangeList[] changeLists = e.getData(VcsDataKeys.CHANGE_LISTS); presentation.setEnabled(!isEmpty(... | update |
68,273 | void (@NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); ChangeList[] changeLists = e.getRequiredData(VcsDataKeys.CHANGE_LISTS); SvnChangeList svnList = (SvnChangeList)changeLists[0]; BranchConfigurationDialog.configureBranches(project, svnList.getRoot()); } | actionPerformed |
68,274 | void () { try { List<SvnBranchItem> branches = loadBranches(); myBunch.updateBranches(myRoot, myUrl, new InfoStorage<>(branches, myInfoReliability)); } catch (VcsException e) { showError(e); } } | run |
68,275 | void (Exception e) { // already logged inside if (InfoReliability.setByUser.equals(myInfoReliability)) { showOverChangesView(myProject, message("notification.content.branches.load.error", e.getMessage()), MessageType.ERROR); } } | showError |
68,276 | DirectoryEntryConsumer (@NotNull final List<SvnBranchItem> result) { return entry -> { if (entry.getDate() != null) { result.add(new SvnBranchItem(entry.getUrl(), entry.getDate().getTime(), entry.getRevision())); } }; } | createConsumer |
68,277 | void (@NotNull Project project, @NotNull VirtualFile file, @NotNull BranchSelectedCallback callback, @PopupTitle @Nullable String title) { show(project, file, callback, title, null); } | show |
68,278 | void (@NotNull Project project, @NotNull VirtualFile file, @NotNull BranchSelectedCallback callback, @PopupTitle @Nullable String title, @Nullable Component component) { SvnFileUrlMapping urlMapping = SvnVcs.getInstance(project).getSvnFileUrlMapping(); Url svnurl = urlMapping.getUrlForFile(virtualToIoFile(file)); if (s... | show |
68,279 | void (@NotNull Project project, @NotNull VirtualFile vcsRoot, @NotNull BranchSelectedCallback callback, @PopupTitle @Nullable String title) { showForBranchRoot(project, vcsRoot, callback, title, null); } | showForBranchRoot |
68,280 | void (@NotNull Project project, @NotNull VirtualFile vcsRoot, @NotNull BranchSelectedCallback callback, @PopupTitle @Nullable String title, @Nullable Component component) { SvnBranchConfigurationNew configuration = SvnBranchConfigurationManager.getInstance(project).get(vcsRoot); List<Object> items = new ArrayList<>(); ... | showForBranchRoot |
68,281 | ListSeparator (Object value) { return getConfigureMessage().equals(value) ? new ListSeparator("") : null; } | getSeparatorAbove |
68,282 | String (@NotNull Object value) { if (value instanceof Url url) { String suffix = url.equals(myConfiguration.getTrunk()) ? " (" + TRUNK_NAME + ")" : ELLIPSIS; return url.getTail() + suffix; } return String.valueOf(value); } | getTextFor |
68,283 | PopupStep (Object selectedValue, boolean finalChoice) { if (getConfigureMessage().equals(selectedValue)) { return doFinalStep(() -> BranchConfigurationDialog.configureBranches(myProject, myVcsRoot)); } Url url = (Url)selectedValue; if (url.equals(myConfiguration.getTrunk())) { return doFinalStep(() -> myCallback.branch... | onChosen |
68,284 | void (@NotNull Url branchLocation, @NotNull Runnable runnable) { new Task.Backgroundable(myProject, SvnBundle.message("progress.title.loading.branches"), true) { @Override public void onFinished() { runnable.run(); } @Override public void run(@NotNull ProgressIndicator indicator) { NewRootBunch manager = SvnBranchConfi... | loadBranches |
68,285 | void () { runnable.run(); } | onFinished |
68,286 | void (@NotNull ProgressIndicator indicator) { NewRootBunch manager = SvnBranchConfigurationManager.getInstance(myProject).getSvnBranchConfigManager(); manager.reloadBranches(myVcsRoot, branchLocation, InfoReliability.setByUser, false); } | run |
68,287 | void (@NotNull Url branchLocation) { List<SvnBranchItem> branches = myConfiguration.getBranches(branchLocation); List<Object> items = new ArrayList<>(branches); items.add(getRefreshMessage()); JBPopup popup = JBPopupFactory.getInstance().createPopupChooserBuilder(items) .setTitle(branchLocation.getTail()) .setRenderer(... | showBranchPopup |
68,288 | void (@NotNull JBPopup listPopup) { if (myComponent == null) { listPopup.showCenteredInCurrentWindow(myProject); } else { listPopup.showInCenterOf(myComponent); } } | showPopupAt |
68,289 | String () { return SvnBundle.message("refresh.branches.item"); } | getRefreshMessage |
68,290 | Component (JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { if (isSelected || cellHasFocus) { setBackground(UIUtil.getListSelectionBackground(true)); Color selectedForegroundColor = NamedColorUtil.getListSelectionForeground(true); myUrlLabel.setForeground(selectedForegroundColor); myDate... | getListCellRendererComponent |
68,291 | String () { return SvnBundle.message("action.Subversion.ConfigureBranches.text"); } | getConfigureMessage |
68,292 | void (@NotNull final DocumentEvent e) { updateSwitchOnCreate(); updateControls(); } | textChanged |
68,293 | void (@NotNull final DocumentEvent e) { updateToURL(); } | textChanged |
68,294 | void (@NotNull final DocumentEvent e) { updateToURL(); } | textChanged |
68,295 | void () { myBranchConfiguration = SvnBranchConfigurationManager.getInstance(myProject).get(mySrcVirtualFile); List<Url> branchLocations = myBranchConfiguration.getBranchLocations(); myBranchTagBaseModel.replaceAll(branchLocations); myBranchTagBaseModel.setSelectedItem(getFirstItem(branchLocations)); } | updateBranchTagBases |
68,296 | void () { if (myBranchConfiguration == null) { return; } Url url = myWorkingCopyRadioButton.isSelected() ? mySrcURL : getRepositoryFieldUrl(); String relativeUrl = url != null ? myBranchConfiguration.getRelativeUrl(url) : null; Url selectedBranch = myBranchTagBaseModel.getSelected(); if (relativeUrl != null && selected... | updateToURL |
68,297 | void () { mySwitchOnCreate.setText(message("checkbox.switch.to.newly.created.branch.or.tag", getSourceFile())); } | updateSwitchOnCreate |
68,298 | void () { myWorkingCopyField.setEnabled(myWorkingCopyRadioButton.isSelected()); myRepositoryField.setEnabled(myRepositoryRadioButton.isSelected()); myRevisionPanel.setEnabled(myRepositoryRadioButton.isSelected()); myProjectButton.setEnabled(myRepositoryRadioButton.isSelected()); myBranchTagBaseComboBox.setEnabled(myBra... | updateControls |
68,299 | String () { return HELP_ID; } | getHelpId |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.