Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
262,800 | UpdateOrStatusOptionsDialog (Project project, LinkedHashMap<Configurable, AbstractVcs> envToConfMap, String scopeName) { return new UpdateOrStatusOptionsDialog(project, VcsBundle.message("action.display.name.check.scope.status", scopeName), envToConfMap) { @Override protected String getActionNameForDimensions() { retur... | createOptionsDialog |
262,801 | String () { return "status"; } | getActionNameForDimensions |
262,802 | boolean () { return ProjectLevelVcsManagerEx.getInstanceEx(project).getOptions(VcsConfiguration.StandardOption.STATUS).getValue(); } | isToBeShown |
262,803 | void (boolean value, boolean onOk) { if (onOk) { ProjectLevelVcsManagerEx.getInstanceEx(project).getOptions(VcsConfiguration.StandardOption.STATUS).setValue(value); } } | setToBeShown |
262,804 | String () { return VcsBundle.message("action.name.check.status"); } | getActionName |
262,805 | String (String scopeName) { return VcsBundle.message("action.name.check.scope.status", scopeName); } | getActionName |
262,806 | String (FileGroup fileGroup) { return fileGroup.getStatusName(); } | getGroupName |
262,807 | boolean () { return false; } | canGroupByChangelist |
262,808 | boolean () { return true; } | canChangeFileStatus |
262,809 | boolean (Project project) { return true; } | showOptions |
262,810 | UpdateEnvironment (AbstractVcs vcs) { return vcs.getIntegrateEnvironment(); } | getEnvironment |
262,811 | UpdateOrStatusOptionsDialog (Project project, LinkedHashMap<Configurable, AbstractVcs> envToConfMap, String scopeName) { return new UpdateOrStatusOptionsDialog(project, VcsBundle.message("action.display.name.integrate.scope", scopeName), envToConfMap) { @Override @NlsSafe protected String getActionNameForDimensions() {... | createOptionsDialog |
262,812 | String () { return "integrate"; } | getActionNameForDimensions |
262,813 | boolean () { return false; } | canBeHidden |
262,814 | boolean () { return true; } | isToBeShown |
262,815 | void (boolean value, boolean onOk) { } | setToBeShown |
262,816 | boolean () { return true; } | canChangeFileStatus |
262,817 | String (String scopeName) { return VcsBundle.message("action.name.integrate.scope", scopeName); } | getActionName |
262,818 | String () { return VcsBundle.message("action.name.integrate"); } | getActionName |
262,819 | String (FileGroup fileGroup) { return fileGroup.getUpdateName(); } | getGroupName |
262,820 | boolean () { return false; } | canGroupByChangelist |
262,821 | void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { AbstractTreeNode treeNode = (AbstractTreeNode)value; append(treeNode.getText(), treeNode.getAttributes()); final String errorText = treeNode.getErrorText(); if (errorText != null) { append(" - ", Simp... | customizeCellRenderer |
262,822 | int () { int result = 0; for (int i = 0; i < getChildCount(); i++){ result += ((FileOrDirectoryTreeNode)getChildAt(i)).getItemsCount(); } return result; } | getItemsCount |
262,823 | boolean () { return true; } | showStatistics |
262,824 | Icon (boolean expanded) { return AllIcons.Nodes.Folder; } | getIcon |
262,825 | Collection<VirtualFile> () { Collection<VirtualFile> result = new ArrayList<>(); for (int i = 0; i < getChildCount(); i++){ FileOrDirectoryTreeNode child = (FileOrDirectoryTreeNode)getChildAt(i); result.addAll(child.getVirtualFiles()); } return result; } | getVirtualFiles |
262,826 | Collection<File> () { Collection<File> result = new ArrayList<>(); for (int i = 0; i < getChildCount(); i++){ FileOrDirectoryTreeNode child = (FileOrDirectoryTreeNode)getChildAt(i); result.addAll(child.getFiles()); } return result; } | getFiles |
262,827 | void (JTree tree) { myTree = tree; if (children == null) return; for (Object aChildren : children) { AbstractTreeNode node = (AbstractTreeNode)aChildren; node.setTree(tree); } } | setTree |
262,828 | void (DefaultTreeModel treeModel) { myTreeModel = treeModel; if (children == null) return; for (Object aChildren : children) { AbstractTreeNode node = (AbstractTreeNode)aChildren; node.setTreeModel(treeModel); } } | setTreeModel |
262,829 | void (@Nls String errorText) { myErrorText = errorText; } | setErrorText |
262,830 | String () { return myErrorText; } | getErrorText |
262,831 | boolean (@Nullable Pair<PackageSetBase, NamedScopesHolder> filter, boolean showOnlyFilteredItems) { boolean apply = false; if (children != null && filter != null) { for (Iterator it = children.iterator(); it.hasNext(); ) { AbstractTreeNode node = (AbstractTreeNode)it.next(); if (node.acceptFilter(filter, showOnlyFilter... | acceptFilter |
262,832 | void (boolean apply) { myFilterAttributes = apply ? SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES : null; } | applyFilter |
262,833 | DefaultTreeModel () { return myTreeModel; } | getTreeModel |
262,834 | JTree () { return myTree; } | getTree |
262,835 | String () { @Nls StringBuilder result = new StringBuilder(); result.append(getName()); if (showStatistics()) { result.append(" ("); result.append(getStatistics(getItemsCount())); result.append(")"); } return result.toString(); } | getText |
262,836 | String (int itemsCount) { return VcsBundle.message("update.tree.node.size.statistics", itemsCount); } | getStatistics |
262,837 | void (List<? extends FileGroup> groups, AbstractTreeNode owner, ActionInfo actionInfo) { for (FileGroup fileGroup : groups) { GroupTreeNode node = addFileGroup(fileGroup, owner, actionInfo); if (node != null) { addGroupsToNode(fileGroup.getChildren(), node, actionInfo); } } } | addGroupsToNode |
262,838 | GroupTreeNode (FileGroup fileGroup, AbstractTreeNode parent, ActionInfo actionInfo) { if (fileGroup.isEmpty()) { return null; } GroupTreeNode group = new GroupTreeNode(actionInfo.getGroupName(fileGroup), fileGroup.getSupportsDeletion(), fileGroup.getInvalidAttributes(), myProject, fileGroup.getErrorsMap(), fileGroup.ge... | addFileGroup |
262,839 | boolean () { return false; } | getSupportsDeletion |
262,840 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
262,841 | boolean (@NotNull AnActionEvent e) { return isVisible(e.getDataContext()); } | isActive |
262,842 | void (@NotNull AnActionEvent e) { final DataContext dc = e.getDataContext(); final Presentation presentation = e.getPresentation(); presentation.setDescription(VcsBundle.messagePointer("action.presentation.ShowUpdatedDiffActionProvider.description")); //presentation.setVisible(isVisible(dc)); presentation.setEnabled(is... | update |
262,843 | boolean (final DataContext dc) { final Project project = CommonDataKeys.PROJECT.getData(dc); return (project != null) && (UpdateInfoTree.LABEL_BEFORE.getData(dc) != null) && (UpdateInfoTree.LABEL_AFTER.getData(dc) != null); } | isVisible |
262,844 | boolean (final DataContext dc) { final Iterable<Pair<FilePath, FileStatus>> iterable = UpdateInfoTree.UPDATE_VIEW_FILES_ITERABLE.getData(dc); return iterable != null; } | isEnabled |
262,845 | void (@NotNull AnActionEvent e) { final DataContext dc = e.getDataContext(); if ((!isVisible(dc)) || (!isEnabled(dc))) return; final Project project = CommonDataKeys.PROJECT.getData(dc); final Iterable<Pair<FilePath, FileStatus>> iterable = e.getRequiredData(UpdateInfoTree.UPDATE_VIEW_FILES_ITERABLE); final Label befor... | actionPerformed |
262,846 | ChangeDiffRequestChain (@Nullable Project project, @NotNull Label before, @NotNull Label after, @NotNull Iterable<? extends Pair<FilePath, FileStatus>> iterable, @Nullable FilePath selectedPath) { List<MyDiffRequestProducer> requests = new ArrayList<>(); int selected = -1; for (Pair<FilePath, FileStatus> pair : iterabl... | createDiffRequestChain |
262,847 | String () { return myFilePath.getPresentableUrl(); } | getName |
262,848 | FilePath () { return myFilePath; } | getFilePath |
262,849 | FileStatus () { return myFileStatus; } | getFileStatus |
262,850 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MyDiffRequestProducer producer = (MyDiffRequestProducer)o; return myBefore.equals(producer.myBefore) && myAfter.equals(producer.myAfter) && myFileStatus.equals(producer.myFileStatus) && myFilePath.equals(producer... | equals |
262,851 | int () { return Objects.hash(myBefore, myAfter, myFileStatus, myFilePath); } | hashCode |
262,852 | void () { for (File oldRoot : new ArrayList<>(myRoots)) { File newRoot = splitRoot(oldRoot); if (!oldRoot.equals(newRoot)) replaceRoot(oldRoot, newRoot); } } | splitRoots |
262,853 | void (File oldRoot, File newRoot) { myRoots.remove(oldRoot); myRoots.add(newRoot); } | replaceRoot |
262,854 | File (@NotNull File oldRoot) { List<File> children = getChildren(oldRoot); if (children.size() == 1) { return splitRoot(children.get(0)); } return oldRoot; } | splitRoot |
262,855 | void (@NotNull final File file) { File f; File parent = file.getParentFile(); for (f = file; parent != null; f = parent, parent = parent.getParentFile()) { Collection<File> files = myParentToChildrenMap.get(parent); if (files == null) { myParentToChildrenMap.put(parent, files = new HashSet<>()); } files.add(f); } myRoo... | process |
262,856 | List<File> () { return new ArrayList<>(myRoots); } | getRoots |
262,857 | List<File> (File file) { Collection<File> collection = myParentToChildrenMap.get(file); if (collection == null) { return ContainerUtil.emptyList(); } return new ArrayList<>(collection); } | getChildren |
262,858 | EditorColorsScheme (EditorEx editor) { boolean isLaFDark = ColorUtil.isDark(UIUtil.getPanelBackground()); boolean isEditorDark = EditorColorsManager.getInstance().isDarkEditor(); EditorColorsScheme colorsScheme = isLaFDark == isEditorDark ? EditorColorsManager.getInstance().getGlobalScheme() : EditorColorsManager.getIn... | getCommitMessageColorScheme |
262,859 | void () { myLoadingPanel.stopLoading(); myEditorField.setEnabled(true); myEditorField.setPlaceholder(myMessagePlaceholder); } | stopLoading |
262,860 | void () { myEditorField.setEnabled(false); myEditorField.setPlaceholder(null); myLoadingPanel.startLoading(); } | startLoading |
262,861 | void (@NotNull Project project) { project.getMessageBus().connect(this).subscribe(CommitMessageInspectionProfile.TOPIC, () -> { Editor editor = myEditorField.getEditor(); if (editor instanceof EditorEx) RightMarginCustomization.customize(project, (EditorEx)editor); }); } | updateOnInspectionProfileChanged |
262,862 | void () { super.updateUI(); //noinspection ConstantValue - called from super.<init> Editor editor = myEditorField != null ? myEditorField.getEditor() : null; if (editor instanceof EditorEx) COLOR_SCHEME_FOR_CURRENT_UI_THEME_CUSTOMIZATION.customize((EditorEx)editor); } | updateUI |
262,863 | JComponent (boolean horizontal) { ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar("CommitMessage", getToolbarActions(), horizontal); toolbar.setReservePlaceAutoPopupIcon(false); toolbar.getComponent().setBorder(createEmptyBorder()); toolbar.setTargetComponent(this); return toolbar.getComponent()... | createToolbar |
262,864 | Object (@NotNull @NonNls String dataId) { if (VcsDataKeys.COMMIT_MESSAGE_CONTROL.is(dataId)) { return this; } if (VcsDataKeys.COMMIT_MESSAGE_DOCUMENT.is(dataId)) { Editor editor = myEditorField.getEditor(); if (editor == null) return null; return editor.getDocument(); } return null; } | getData |
262,865 | void (@NotNull @NlsContexts.Separator String text) { if (mySeparator != null) { mySeparator.setText(text); } } | setSeparatorText |
262,866 | void (@Nullable String currentDescription) { setText(currentDescription); } | setCommitMessage |
262,867 | EditorTextField (@NotNull Project project, boolean runInspections) { Set<EditorCustomization> features = new HashSet<>(); features.add(new RightMarginCustomization(project)); features.add(SoftWrapsEditorCustomization.ENABLED); features.add(AdditionalPageAtBottomEditorCustomization.DISABLED); features.add(COLOR_SCHEME_F... | createCommitMessageEditor |
262,868 | boolean (@NotNull PsiElement element) { Document document = PsiDocumentManager.getInstance(element.getProject()).getDocument(element.getContainingFile()); return document != null && document.getUserData(DATA_KEY) != null; } | isCommitMessage |
262,869 | Editor (@NotNull Document document) { CommitMessage commitMessage = document.getUserData(DATA_KEY); return commitMessage != null ? commitMessage.getEditorField().getEditor() : null; } | getEditor |
262,870 | ActionGroup () { return (ActionGroup)ActionManager.getInstance().getAction("Vcs.MessageActionGroup"); } | getToolbarActions |
262,871 | EditorTextField () { return myEditorField; } | getEditorField |
262,872 | String () { return getComment(); } | getText |
262,873 | void (@Nullable String initialMessage) { myEditorField.setText(initialMessage == null ? "" : convertLineSeparators(initialMessage)); } | setText |
262,874 | void () { requestFocusInMessage(); } | focus |
262,875 | String () { return trimTrailing(myEditorField.getDocument().getCharsSequence().toString()); } | getComment |
262,876 | void () { IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown( () -> IdeFocusManager.getGlobalInstance().requestFocus(myEditorField, true)); myEditorField.selectAll(); } | requestFocusInMessage |
262,877 | void (@NotNull Supplier<Iterable<Change>> changesSupplier) { ThreadingAssertions.assertEventDispatchThread(); myEditorField.getDocument().putUserData(CHANGES_SUPPLIER_KEY, changesSupplier); } | setChangesSupplier |
262,878 | void () { removeAll(); myEditorField.getDocument().putUserData(DATA_KEY, null); myEditorField.getDocument().putUserData(CHANGES_SUPPLIER_KEY, null); } | dispose |
262,879 | void (@NotNull EditorEx editor) { customize(myProject, editor); } | customize |
262,880 | void (@NotNull Project project, @NotNull EditorEx editor) { BodyLimitSettings settings = getBodyLimitSettings(project); editor.getSettings().setRightMargin(settings.getRightMargin()); editor.getSettings().setRightMarginShown(settings.isShowRightMargin()); editor.getSettings().setWrapWhenTypingReachesRightMargin(setting... | customize |
262,881 | void (@NotNull EditorEx editor) { PsiFile file = PsiDocumentManager.getInstance(myProject).getPsiFile(editor.getDocument()); if (file != null) { InspectionProfileWrapper.setCustomInspectionProfileWrapperTemporarily(file, profile -> new InspectionProfileWrapper(CommitMessageInspectionProfile.getInstance(myProject))); } ... | customize |
262,882 | void (@Nullable EditorMarkupModelImpl editorMarkupModel) { super.refresh(editorMarkupModel); if (editorMarkupModel != null) { editorMarkupModel.setTrafficLightIconVisible(hasHighSeverities(getErrorCounts())); } } | refresh |
262,883 | boolean (int @NotNull [] errorCounts) { HighlightSeverity minSeverity = notNull(HighlightDisplayLevel.find("TYPO"), HighlightDisplayLevel.DO_NOT_SHOW).getSeverity(); for (int i = 0; i < errorCounts.length; i++) { if (errorCounts[i] > 0 && getSeverityRegistrar().compare(getSeverityRegistrar().getSeverityByIndex(i), minS... | hasHighSeverities |
262,884 | boolean (@NotNull Point point) { JList list = myPopup.getList(); int index = myPopup.getList().locationToIndex(point); Rectangle bounds = myPopup.getList().getCellBounds(index, index); Component renderer = getListCellRendererComponent(list, list.getSelectedValue(), index, true, true); renderer.setBounds(bounds); render... | isIconAt |
262,885 | void (JList<?> list, Object value, boolean isSelected) { super.customizeComponent(list, value, isSelected); myIconLabel.setIcon(isSelected ? IconUtil.wrapToSelectionAwareIcon(myDescriptor.getSelectedIconFor(value)) : myDescriptor.getIconFor(value)); } | customizeComponent |
262,886 | void (Icon icon, Icon disabledIcon) { myIconLabel.setIcon(icon); myIconLabel.setDisabledIcon(disabledIcon); } | setComponentIcon |
262,887 | JComponent () { myTextLabel = new ErrorLabel(); myTextLabel.setOpaque(true); myTextLabel.setBorder(JBUI.Borders.empty(1)); myIconLabel = new IconComponent(); JPanel panel = new OpaquePanel(new BorderLayout(), JBColor.WHITE); panel.add(myIconLabel, BorderLayout.WEST); panel.add(myTextLabel, BorderLayout.CENTER); return ... | createItemComponent |
262,888 | boolean (Object value) { if (!super.shouldBeShowing(value)) return false; if (!(value instanceof PopupFactoryImpl.ActionItem)) return true; return shouldBeShowing(((PopupFactoryImpl.ActionItem)value).getAction()); } | shouldBeShowing |
262,889 | boolean (@NotNull AnAction action) { return getSpeedSearch().isHoldingFilter() || !isSpeedsearchAction(action); } | shouldBeShowing |
262,890 | AnAction (@NotNull AnAction child) { return new MySpeedSearchAction(child); } | createSpeedSearchWrapper |
262,891 | ActionGroup (@NotNull ActionGroup child) { return new MySpeedSearchActionGroup(child); } | createSpeedSearchActionGroupWrapper |
262,892 | boolean (@NotNull AnAction action) { return action instanceof SpeedsearchAction; } | isSpeedsearchAction |
262,893 | void (CustomizableActionGroupRegistrar registrar) { registrar.addCustomizableActionGroup(VcsActions.VCS_OPERATIONS_POPUP, VcsBundle.message("vcs.operations.popup")); registrar.addCustomizableActionGroup(ActionPlaces.CHANGES_VIEW_TOOLBAR, VcsBundle.message("vcs.local.changes.toolbar")); } | registerGroups |
262,894 | void (@NotNull final Project project, @NotificationContent @NotNull final String message, final MessageType type, final NamedRunnable... notificationListener) { show(project, message, type, notificationListener); } | showOverChangesView |
262,895 | void (@NotNull final Project project, @NotificationContent @NotNull String message, final MessageType type) { show(project, message, type, null); } | showOverVersionControlView |
262,896 | void (final Project project, @NotificationContent final String message, final MessageType type, final NamedRunnable @Nullable [] notificationListener) { final Application application = ApplicationManager.getApplication(); if (application.isHeadlessEnvironment()) return; final Runnable showErrorAction = () -> new VcsBal... | show |
262,897 | void () { final Notification notification; if (myNotificationListener != null && myNotificationListener.length > 0) { @Nls StringBuilder sb = new StringBuilder(myMessage); for (NamedRunnable runnable : myNotificationListener) { final String name = runnable.toString(); sb.append("<br/><a href=\"").append(name).append("\... | run |
262,898 | String (@NotNull @Nls String input) { Font font = StartupUiUtil.getLabelFont(); return getHtmlWithFonts(input, font.getStyle(), font); } | getHtmlWithFonts |
262,899 | String (@NotNull @Nls String input, int style, @NotNull Font baseFont) { int start = baseFont.canDisplayUpTo(input); if (start == -1) return input; @Nls StringBuilder result = new StringBuilder(); FontFallbackIterator it = new FontFallbackIterator(); it.setPreferredFont(baseFont.getFamily(), baseFont.getSize()); it.set... | getHtmlWithFonts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.