Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
66,900 | boolean () { return myUserObject instanceof DirectoryEntry && ((DirectoryEntry)myUserObject).isFile(); } | isLeaf |
66,901 | TreeNode () { return myParentNode; } | getParent |
66,902 | void (final boolean removeCurrentChildren) { // todo lazyLoading as explicit: keeping... reload(removeCurrentChildren ? myModel.getSelectionKeepingExpander() : myModel.getLazyLoadingExpander(), removeCurrentChildren); } | reload |
66,903 | TreeNode (final String key, final boolean isFolder) { final ByKeySelectedSearcher searcher = (isFolder) ? new FolderByKeySelectedSearcher(key, myChildren) : new FileByKeySelectedSearcher(key, myChildren); return searcher.getNextSelectedByKey(); } | getNextChildByKey |
66,904 | String () { if (myParentNode instanceof RepositoryTreeRootNode) { return myURL.toString(); } return myURL.getTail(); } | toString |
66,905 | void (@NotNull Expander expander, boolean removeCurrentChildren) { ThreadingAssertions.assertEventDispatchThread(); if (removeCurrentChildren || NodeLoadState.EMPTY.equals(myChildrenLoadState)) { initChildren(); } myModel.getCacheLoader().load(this, expander); } | reload |
66,906 | void () { myChildren.clear(); myChildren.add(new SimpleTextNode(CommonBundle.getLoadingTreeNodeText())); myChildrenLoadState = NodeLoadState.LOADING; } | initChildren |
66,907 | List () { ThreadingAssertions.assertEventDispatchThread(); if (NodeLoadState.EMPTY.equals(myChildrenLoadState)) { initChildren(); myModel.getCacheLoader().load(this, myModel.getLazyLoadingExpander()); } return myChildren; } | getChildren |
66,908 | Url () { return myURL; } | getURL |
66,909 | DirectoryEntry () { return myUserObject instanceof DirectoryEntry ? (DirectoryEntry)myUserObject : null; } | getSVNDirEntry |
66,910 | void () { } | dispose |
66,911 | TreeNode[] () { return myModel.getPathToRoot(this); } | getSelfPath |
66,912 | boolean () { return ! (myUserObject instanceof DirectoryEntry); } | isRepositoryRoot |
66,913 | List<TreeNode> () { return new ArrayList<>(myChildren); } | getAllAlreadyLoadedChildren |
66,914 | List<RepositoryTreeNode> () { return ContainerUtil.filterIsInstance(myChildren, RepositoryTreeNode.class); } | getAlreadyLoadedChildren |
66,915 | boolean () { return myModel.isDisposed(); } | isDisposed |
66,916 | void (@NotNull List<DirectoryEntry> children, @NotNull NodeLoadState state) { final List<TreeNode> nodes = new ArrayList<>(); for (final DirectoryEntry entry : children) { if (!myModel.isShowFiles() && !entry.isDirectory()) { continue; } nodes.add(new RepositoryTreeNode(myModel, this, entry.getUrl(), entry, state)); } ... | setChildren |
66,917 | void (final TreeNode parentNode) { myParentNode = parentNode; } | setParentNode |
66,918 | void (final List<TreeNode> children, final NodeLoadState oldState) { myChildren.clear(); for (TreeNode child : children) { if (child instanceof RepositoryTreeNode) { ((RepositoryTreeNode) child).setParentNode(this); myChildren.add(child); myChildrenLoadState = oldState; } else if (child instanceof SimpleTextNode node) ... | setAlienChildren |
66,919 | void (@NlsContexts.Label @NotNull String text) { myChildren.clear(); myChildren.add(new SimpleTextNode(text, true)); myChildrenLoadState = NodeLoadState.ERROR; myModel.reload(this); } | setErrorNode |
66,920 | SvnVcs () { return myModel.getVCS(); } | getVcs |
66,921 | boolean () { return NodeLoadState.CACHED.equals(myLoadState); } | isCached |
66,922 | RepositoryTreeNode () { return myModel.findByUrl(this); } | getNodeWithSamePathUnderModelRoot |
66,923 | NodeLoadState () { return myChildrenLoadState; } | getChildrenLoadState |
66,924 | void (@NotNull NotNullFunction<RepositoryTreeNode, Object> function) { new SubTreeWalker(this, function).execute(); } | doOnSubtree |
66,925 | void () { executeImpl(myNode); } | execute |
66,926 | void (final RepositoryTreeNode node) { myFunction.fun(node); for (RepositoryTreeNode child : node.getAlreadyLoadedChildren()) { myFunction.fun(child); } } | executeImpl |
66,927 | void () { super.init(); setTitle(SvnBundle.message("import.dialog.title")); setOKButtonText(SvnBundle.message("import.dialog.button")); getRepositoryBrowser().addChangeListener(e -> updateOKAction()); updateOKAction(); } | init |
66,928 | String () { return "vcs.subversion.import"; } | getHelpId |
66,929 | void () { getOKAction().setEnabled(getRepositoryBrowser().getSelectedURL() != null); } | updateOKAction |
66,930 | void () { if (doImport()) { super.doOKAction(); } } | doOKAction |
66,931 | boolean () { return false; } | showImportAction |
66,932 | boolean () { return ! myWcInfos.isEmpty(); } | haveStuffToConvert |
66,933 | void () { onSuccess(); } | onCancel |
66,934 | void () { if (myProject.isDisposed()) { return; } if (! myExceptions.isEmpty()) { final List<String> messages = new ArrayList<>(); for (Throwable exception : myExceptions) { messages.add(exception.getMessage()); } AbstractVcsHelper.getInstance(myProject) .showErrors(Collections.singletonList(new VcsException(messages))... | onSuccess |
66,935 | void (@NotNull final ProgressIndicator indicator) { ProjectLevelVcsManager.getInstance(myProject).startBackgroundVcsOperation(); indicator.setIndeterminate(true); final boolean supportsChangelists = myNewFormat.supportsChangelists(); if (supportsChangelists) { myBeforeChangeLists = ChangeListManager.getInstance(myProje... | run |
66,936 | ProgressTracker (@NotNull ProgressIndicator indicator, @NotNull File path, @NotNull WorkingCopyFormat format) { return new ProgressTracker() { @Override public void consume(ProgressEvent event) { if (event.getFile() != null) { if (EventAction.UPGRADED_PATH.equals(event.getAction())) { indicator.setText2(message("progre... | createUpgradeHandler |
66,937 | void (ProgressEvent event) { if (event.getFile() != null) { if (EventAction.UPGRADED_PATH.equals(event.getAction())) { indicator.setText2(message("progress.details.upgraded.path", VcsUtil.getPathForProgressPresentation(event.getFile()))); } // fake event indicating cleanup start if (EventAction.UPDATE_STARTED.equals(ev... | consume |
66,938 | String () { List<JCheckBox> selectedKeywords = ContainerUtil.filter(myKeywordOptions, keywordOption -> keywordOption.isSelected()); return StringUtil.nullize(StringUtil.join(selectedKeywords, keywordOption -> keywordOption.getText(), " ")); } | getKeywords |
66,939 | JComponent () { JPanel panel = new JPanel(new BorderLayout()); panel.add(new JBLabel(message("label.select.keywords.to.set")), BorderLayout.NORTH); JPanel buttonsPanel = new JPanel(new GridLayout(5, 1)); for (@NlsSafe String keyword : KNOWN_KEYWORDS) { JCheckBox keywordOption = new JCheckBox(keyword); myKeywordOptions.... | createCenterPanel |
66,940 | void () { super.init(); updateKeywordOptions(); } | init |
66,941 | void () { Set<String> keywords = parseKeywords(myKeywordsValue); for (JCheckBox keywordOption : myKeywordOptions) { keywordOption.setSelected(keywords.contains(keywordOption.getText())); } } | updateKeywordOptions |
66,942 | Set<String> (@Nullable PropertyValue keywordsValue) { Set<String> result = new HashSet<>(); if (keywordsValue != null) { for (String keyword : StringUtil.split(PropertyValue.toString(keywordsValue), " ")) { result.add(ObjectUtils.notNull(KNOWN_KEYWORD_ALIASES.get(keyword), keyword)); } } return result; } | parseKeywords |
66,943 | IterationResultHolder (final TreeNode node) { if (! (node instanceof RepositoryTreeNode)) { return IterationResultHolder.RESULT; } if (! node.isLeaf()) { // folder. folders come first return IterationResultHolder.SKIP; } return IterationResultHolder.DO_NOTHING; } | doChecks |
66,944 | String () { return getPath(); } | toString |
66,945 | VirtualFile () { return myRoot; } | getVcsRoot |
66,946 | List<Branch> () { return myBranches; } | getBranches |
66,947 | VirtualFile () { return myRoot; } | getRoot |
66,948 | Branch () { return myCurrentBranch; } | getCurrentBranch |
66,949 | String () { return myUrl.getTail(); } | getName |
66,950 | Url () { return myUrl; } | getUrl |
66,951 | String () { return getName(); } | toString |
66,952 | boolean (final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Branch branch = (Branch)o; return myUrl.equals(branch.myUrl); } | equals |
66,953 | int () { return myUrl.hashCode(); } | hashCode |
66,954 | BorderLayoutPanel (@NotNull JLabel label, @NotNull JTree tree) { BorderLayoutPanel panel = JBUI.Panels.simplePanel(); panel.setBackground(UIUtil.getTextFieldBackground()); panel.addToTop(label).addToCenter(tree); new EditSourceAction().registerCustomShortcutSet(CommonShortcuts.getEditSource(), panel); DataManager.regis... | createPanel |
66,955 | SimpleTree () { SimpleTree tree = new SimpleTree(TreeModelBuilder.buildFromFilePaths(myProject, NoneChangesGroupingFactory.INSTANCE, myFiles)) { @Override protected void configureUiHelper(@NotNull TreeUIHelper helper) { super.configureUiHelper(helper); helper.installEditSourceOnDoubleClick(this); helper.installEditSour... | createTree |
66,956 | void (@NotNull TreeUIHelper helper) { super.configureUiHelper(helper); helper.installEditSourceOnDoubleClick(this); helper.installEditSourceOnEnterKeyHandler(this); } | configureUiHelper |
66,957 | JBLabel () { JBLabel label = new JBLabel(message("label.merge.local.changes.intersection")) { @Override public Dimension getPreferredSize() { Dimension size = super.getPreferredSize(); return new Dimension(size.width, (int)(size.height * 1.7)); } }; label.setUI(new MultiLineLabelUI()); label.setBackground(UIUtil.getTex... | createLabel |
66,958 | Dimension () { Dimension size = super.getPreferredSize(); return new Dimension(size.width, (int)(size.height * 1.7)); } | getPreferredSize |
66,959 | void (@NotNull Project project, @TabTitle @NotNull String title, @NotNull List<? extends FilePath> files) { IntersectingLocalChangesPanel intersectingPanel = new IntersectingLocalChangesPanel(project, files); Content content = ContentFactory.getInstance().createContent(intersectingPanel.myPanel, title, true); ToolWindo... | showInVersionControlToolWindow |
66,960 | void () { setLayout(new BorderLayout()); myTextArea = new JTextArea(0, 0); myTextArea.setEditable(false); JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(myTable); mySplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true, scrollPane, ScrollPaneFactory.createScrollPane(myTextArea)); add(mySplitPane, Bord... | init |
66,961 | void (SvnVcs vcs, File file) { boolean firstTime = myFile == null; if (file != null) { myFile = file; myVcs = vcs; } myTable.setProperties(file != null ? collectProperties(vcs, file) : emptyList()); if (firstTime) { mySplitPane.setDividerLocation(.5); } if (myTable.getRowCount() > 0) { myTable.getSelectionModel().setSe... | setFile |
66,962 | List<PropertyData> (@NotNull SvnVcs vcs, @NotNull File file) { try { List<PropertyData> properties = new ArrayList<>(); PropertyConsumer handler = new PropertyConsumer() { @Override public void handleProperty(File path, PropertyData property) { properties.add(property); } }; vcs.getFactory(file).createPropertyClient().... | collectProperties |
66,963 | void (File path, PropertyData property) { properties.add(property); } | handleProperty |
66,964 | JComponent () { DefaultActionGroup group = new DefaultActionGroup(); group.add(new AddPropertyAction()); group.add(new EditPropertyAction()); group.add(new DeletePropertyAction()); group.addSeparator(); group.add(new SetKeywordsAction()); group.addSeparator(); group.add(new FollowSelectionAction()); group.add(myRefresh... | createToolbar |
66,965 | DefaultActionGroup () { DefaultActionGroup group = new DefaultActionGroup(); group.add(new AddPropertyAction()); group.add(new EditPropertyAction()); group.add(new DeletePropertyAction()); group.addSeparator(); group.add(new SetKeywordsAction()); group.addSeparator(); group.add(myRefreshAction); return group; } | createPopup |
66,966 | String () { PropertyData property = myTable.getSelectedObject(); return property != null ? property.getName() : null; } | getSelectedPropertyName |
66,967 | void (boolean recursive) { if (myFile != null && myVcs != null) { String url = "file://" + myFile.getPath().replace(File.separatorChar, '/'); VirtualFile file = VirtualFileManager.getInstance().findFileByUrl(url); if (file != null) { VcsDirtyScopeManager dirtyScopeManager = VcsDirtyScopeManager.getInstance(myVcs.getPro... | updateFileStatus |
66,968 | void (@NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(ID); if (toolWindow != null) toolWindow.remove(); } | actionPerformed |
66,969 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
66,970 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(myFile != null); } | update |
66,971 | void (@NotNull AnActionEvent e) { setFile(myVcs, myFile); updateFileStatus(false); } | actionPerformed |
66,972 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
66,973 | void (@Nullable String property, @Nullable String value, boolean recursive, boolean force) { if (!StringUtil.isEmpty(property)) { try { myVcs.getFactory(myFile).createPropertyClient() .setProperty(myFile, property, PropertyValue.create(value), Depth.allOrEmpty(recursive), force); } catch (VcsException error) { VcsBallo... | setProperty |
66,974 | void (boolean recursive) { setFile(myVcs, myFile); updateFileStatus(recursive); } | updateFileView |
66,975 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(myFile != null && myFile.isFile()); } | update |
66,976 | void (@NotNull AnActionEvent e) { Project project = e.getProject(); PropertyValue propValue = null; try { propValue = myVcs.getFactory(myFile).createPropertyClient() .getProperty(Target.on(myFile), SvnPropertyKeys.SVN_KEYWORDS, false, Revision.WORKING); } catch (VcsException ignored) { } SetKeywordsDialog dialog = new ... | actionPerformed |
66,977 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(myFile != null && getSelectedPropertyName() != null); } | update |
66,978 | void (@NotNull AnActionEvent e) { setProperty(getSelectedPropertyName(), null, false, true); updateFileView(false); } | actionPerformed |
66,979 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(myFile != null); } | update |
66,980 | void (@NotNull AnActionEvent e) { Project project = e.getProject(); SetPropertyDialog dialog = new SetPropertyDialog(project, new File[]{myFile}, null, myFile.isDirectory()); boolean recursive = false; if (dialog.showAndGet()) { recursive = dialog.isRecursive(); setProperty(dialog.getPropertyName(), dialog.getPropertyV... | actionPerformed |
66,981 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(myFile != null && getSelectedPropertyName() != null); } | update |
66,982 | void (@NotNull AnActionEvent e) { Project project = e.getProject(); SetPropertyDialog dialog = new SetPropertyDialog(project, new File[]{myFile}, getSelectedPropertyName(), myFile.isDirectory()); boolean recursive = false; if (dialog.showAndGet()) { recursive = dialog.isRecursive(); setProperty(dialog.getPropertyName()... | actionPerformed |
66,983 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
66,984 | boolean (@NotNull AnActionEvent e) { return myIsFollowSelection; } | isSelected |
66,985 | void (@NotNull AnActionEvent e, boolean state) { if (state && !myIsFollowSelection) { updateSelection(e); } myIsFollowSelection = state; } | setSelected |
66,986 | void (@NotNull final AnActionEvent e) { super.update(e); // change file if (myIsFollowSelection) { updateSelection(e); } } | update |
66,987 | void (AnActionEvent e) { if (myVcs == null) return; VirtualFile vf = e.getData(CommonDataKeys.VIRTUAL_FILE); if (vf == null) return; File f = virtualToIoFile(vf); if (!filesEqual(f, myFile)) { setFile(myVcs, f); ToolWindow toolWindow = ToolWindowManager.getInstance(myVcs.getProject()).getToolWindow(ID); if (toolWindow ... | updateSelection |
66,988 | String () { return "svn.sslCredentialsDialog"; } | getDimensionServiceKey |
66,989 | void (final String authRealm, final boolean authSaveAllowed) { myPanel = new JPanel(new GridBagLayout()); final GridBagConstraints gb = new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, JBUI.insets(1), 0, 0); gb.fill = GridBagConstraints.HORIZONTAL; gb.gridwidth = 2; gb.weightx ... | initUI |
66,990 | JComponent () { return StringUtil.isEmptyOrSpaces(myCertificatePath.getText()) ? myCertificatePath : myCertificatePassword; } | getPreferredFocusedComponent |
66,991 | String () { return myCertificatePath.getText(); } | getCertificatePath |
66,992 | char[] () { return myCertificatePassword.getPassword(); } | getCertificatePassword |
66,993 | boolean () { return mySaveAuth.isSelected(); } | getSaveAuth |
66,994 | JComponent () { return myPanel; } | createNorthPanel |
66,995 | JComponent () { return null; } | createCenterPanel |
66,996 | void (@NotNull String file) { myCertificatePath.setText(file); } | setFile |
66,997 | void () { super.init(); setTitle(SvnBundle.message("checkout.dialog.title")); setOKButtonText(SvnBundle.message("checkout.dialog.button")); getRepositoryBrowser().addChangeListener(e -> { getOKAction().setEnabled(getRepositoryBrowser().getSelectedURL() != null); }); getOKAction().setEnabled(getRepositoryBrowser().getSe... | init |
66,998 | String () { return "vcs.subversion.browseSVN"; } | getHelpId |
66,999 | void () { final RepositoryTreeNode selectedNode = getSelectedNode(); close(OK_EXIT_CODE); doCheckout(myListener, selectedNode); } | doOKAction |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.