Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
67,000
void () { super.init(); myFollowRemoteTarget = true; setTitle(message("dialog.title.select.target.for.external")); setOKButtonText(message("button.select")); getRepositoryBrowser().addChangeListener(e -> { final String selectedURL = getRepositoryBrowser().getSelectedURL(); if (myFollowRemoteTarget && selectedURL != nul...
init
67,001
void () { final String selectedURL = getRepositoryBrowser().getSelectedURL(); final String text = myFolderName.getText(); final boolean contains = myUsedNames.contains(text); final boolean enabled = selectedURL != null && !StringUtil.isEmptyOrSpaces(text) && !contains; if (contains) { setErrorText(message("dialog.messa...
checkEnabled
67,002
void () { mySelectedURL = getRepositoryBrowser().getSelectedURL(); super.doOKAction(); }
doOKAction
67,003
String () { return mySelectedURL; }
getSelectedURL
67,004
JPopupMenu (boolean toolWindow) { DefaultActionGroup group = new DefaultActionGroup(); DefaultActionGroup newGroup = DefaultActionGroup.createPopupGroup(ActionsBundle.messagePointer("group.NewGroup.text")); final RepositoryBrowserComponent browser = getRepositoryBrowser(); newGroup.add(new AddLocationAction(browser)); ...
createPopup
67,005
JComponent () { final JComponent repositoryPanel = super.createCenterPanel(); final JPanel wrapper = new JPanel(new GridBagLayout()); final GridBagConstraints gb = new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, JBUI.insets(1), 0, 0); gb.weightx = 1; gb.weighty = 1; gb.gr...
createCenterPanel
67,006
void (FocusEvent e) { myFollowRemoteTarget = false; myFolderName.removeFocusListener(this); }
focusGained
67,007
void (KeyEvent e) { }
keyTyped
67,008
void (KeyEvent e) { checkEnabled(); }
keyReleased
67,009
void (InputMethodEvent event) { checkEnabled(); }
inputMethodTextChanged
67,010
void (InputMethodEvent event) { }
caretPositionChanged
67,011
boolean () { return myCheckout; }
isCheckout
67,012
String () { return myFolderName.getText(); }
getLocalTarget
67,013
void () { Object[] objects = myLocalTargetList.getSelectedValues(); boolean disable = objects == null || objects.length != 1; setOKActionEnabled(! disable); }
validateTargetSelected
67,014
void (final File target) { final DefaultListModel listModel = new DefaultListModel(); final List<CheckoutStrategy> strategies = new ArrayList<>(); Collections.addAll(strategies, CheckoutStrategy.createAllStrategies(target, new File(myRelativePath), false)); strategies.add(new SvnTrunkCheckoutStrategy(target, new File(m...
fillTargetList
67,015
String () { return "svn4idea.checkout.options"; }
getDimensionServiceKey
67,016
File () { Object[] objects = myLocalTargetList.getSelectedValues(); return (objects == null) || (objects.length != 1) ? null : (File) objects[0]; }
getTarget
67,017
Depth () { return myDepthCombo.getDepth(); }
getDepth
67,018
boolean () { return !myExternalsCheckbox.isSelected(); }
isIgnoreExternals
67,019
JComponent () { return myTopPanel; }
createCenterPanel
67,020
void () { mySelectTarget = new FixedSizeButton(20); myDepthCombo = new DepthCombo(false); }
createUIComponents
67,021
void (final RepositoryTreeNode node) { myKeepingExpander.onBeforeRefresh(node); }
onBeforeRefresh
67,022
void (final RepositoryTreeNode node) { myKeepingExpander.onAfterRefresh(node); if (node.isLeaf()) { return; } final ExpandVariants expandVariant = expandNode(node.getURL()); if (ExpandVariants.DO_NOTHING.equals(expandVariant)) { return; } // then expanded myBrowser.expandNode(node); if (!ExpandVariants.EXPAND_AND_EXIT....
onAfterRefresh
67,023
void () { myBrowser.setLazyLoadingExpander(new KeepingExpandedExpander.Factory()); }
removeSelf
67,024
ExpandVariants (@NotNull Url url) { if (myUrl.equals(url)) { return ExpandVariants.EXPAND_AND_EXIT; } if (isAncestor(url, myUrl)) { return ExpandVariants.EXPAND_CONTINUE; } return ExpandVariants.DO_NOTHING; }
expandNode
67,025
boolean (@NotNull Url childUrl) { return isAncestor(childUrl, myUrl); }
checkChild
67,026
Expander (final RepositoryBrowserComponent repositoryBrowserComponent) { return new UrlOpeningExpander(repositoryBrowserComponent, myUrl, myUrl); }
fun
67,027
String () { return "svn4idea.import.options"; }
getDimensionServiceKey
67,028
File () { return new File(myPathField.getText()); }
getTarget
67,029
Depth () { return myDepth.getDepth(); }
getDepth
67,030
boolean () { return myIncludeIgnoredCheckbox.isSelected(); }
isIncludeIgnored
67,031
String () { return myCommitMessage.getText(); }
getCommitMessage
67,032
JComponent () { JPanel panel = new JPanel(new GridBagLayout()); GridBagConstraints gc = new GridBagConstraints(); gc.insets = JBUI.insets(2); gc.gridwidth = 1; gc.gridheight = 1; gc.gridx = 0; gc.gridy = 0; gc.anchor = GridBagConstraints.WEST; gc.fill = GridBagConstraints.NONE; gc.weightx = 0; gc.weighty = 0; panel.add...
createCenterPanel
67,033
JComponent () { return myCommitMessage; }
getPreferredFocusedComponent
67,034
void (ActionEvent e) { // choose directory here/ FileChooserDescriptor fcd = FileChooserDescriptorFactory.createSingleFolderDescriptor(); fcd.setShowFileSystemRoots(true); fcd.setTitle(message("checkout.directory.chooser.title")); fcd.setDescription(message("checkout.directory.chooser.prompt")); fcd.setHideIgnored(fals...
actionPerformed
67,035
File () { File path = getCvsPath(); if (path.getName().equalsIgnoreCase(TRUNK_NAME) && (path.getParent() != null)) { return new File(getSelectedLocation(), path.getParent()); } path = path.getParentFile(); if ((path != null) && path.getName().equalsIgnoreCase(BRANCHES_NAME) && (path.getParent() != null)) { return new F...
getResult
67,036
boolean () { return true; }
useAlternativeCheckoutLocation
67,037
File () { return getSelectedLocation(); }
getCheckoutDirectory
67,038
void (@NotNull final DocumentEvent e) { update(); }
textChanged
67,039
String () { return "svn4idea.diff.options"; }
getDimensionServiceKey
67,040
void () { super.dispose(); Disposer.dispose(myBrowser); }
dispose
67,041
Url () { return myURL; }
getSourceURL
67,042
boolean () { return myReverseDiffButton.isSelected(); }
isReverseDiff
67,043
Url () { if (getOKAction().isEnabled() && myBrowser.getSelectedNode() != null) { return myBrowser.getSelectedNode().getURL(); } return null; }
getTargetURL
67,044
File () { return new File(myFileBrowser.getText()); }
getTargetFile
67,045
boolean () { return myUnifiedDiffButton.isSelected(); }
isUnifiedDiff
67,046
JComponent () { update(); return myMainPanel; }
createCenterPanel
67,047
void () { RepositoryTreeNode baseNode = myBrowser.getSelectedNode(); if (baseNode == null) { myErrorLabel.setText(message("diff.options.no.url.error")); getOKAction().setEnabled(false); return; } if (myURL.equals(getTargetURL())) { myErrorLabel.setText(message("diff.options.same.url.error")); getOKAction().setEnabled(f...
update
67,048
JComponent () { return myBrowser; }
getPreferredFocusedComponent
67,049
File () { FileChooserDescriptor fcd = FileChooserDescriptorFactory.createSingleFileOrFolderDescriptor(); fcd.setShowFileSystemRoots(true); fcd.setTitle(message("dialog.title.save.unified.diff")); fcd.setDescription(message("label.select.file.to.save.unified.diff")); fcd.setHideIgnored(false); VirtualFile file = FileCho...
selectFile
67,050
void (ActionEvent e) { myFileBrowser.setEnabled(myUnifiedDiffButton.isSelected()); update(); }
actionPerformed
67,051
void () { myBrowser = new RepositoryBrowserComponent(SvnVcs.getInstance(myProject)); }
createUIComponents
67,052
ExpandVariants (@NotNull Url url) { if (pathElements.contains(url)) { if (myLongest.equals(url)) { return ExpandVariants.EXPAND_AND_EXIT; } return ExpandVariants.EXPAND_CONTINUE; } return ExpandVariants.DO_NOTHING; }
expandNode
67,053
boolean (@NotNull Url childUrl) { return pathElements.contains(childUrl); }
checkChild
67,054
Expander (final RepositoryBrowserComponent repositoryBrowserComponent) { return new OpeningExpander(myPath, repositoryBrowserComponent, mySelectionPath); }
fun
67,055
void (@NotNull DocumentEvent e) { update(); }
textChanged
67,056
ComboBox<String> (@NotNull Project project, @NotNull ComboBox<String> comboBox, @NotNull Consumer<? super String> messageConsumer) { List<String> messages = VcsConfiguration.getInstance(project).getRecentMessages(); Collections.reverse(messages); CollectionComboBoxModel<String> model = new CollectionComboBoxModel<>(mes...
configureRecentMessagesComponent
67,057
String (@NotNull String commitMessage) { return commitMessage.replace('\r', '|').replace('\n', '|'); }
getPresentableCommitMessage
67,058
void () { myMainPanel = simplePanel(); myBrowser = new RepositoryBrowserComponent(SvnVcs.getInstance(myProject)); DefaultActionGroup group = new DefaultActionGroup(); group.add(new RepositoryBrowserDialog.MkDirAction(myBrowser) { @Override public void update(@NotNull AnActionEvent e) { super.update(e); e.getPresentatio...
createUI
67,059
void (@NotNull AnActionEvent e) { super.update(e); e.getPresentation().setText(messagePointer("action.new.remote.folder.text")); }
update
67,060
JPanel () { myCommitMessage = new CommitMessage(myProject, false, false, true); Disposer.register(getDisposable(), myCommitMessage); return simplePanel(myCommitMessage).addToTop(new JBLabel(message("label.commit.message"))); }
createCommitMessageWrapper
67,061
JPanel () { JPanel wrapper = new JPanel(new GridBagLayout()); GridBag gridBag = new GridBag().setDefaultAnchor(GridBagConstraints.NORTHWEST).setDefaultFill(GridBagConstraints.NONE).setDefaultInsets(insets(1)) .setDefaultWeightX(1).setDefaultWeightY(0); gridBag.nextLine().next().weightx(0); wrapper.add(new JBLabel(messa...
createBrowserPartWrapper
67,062
String () { return "svn4idea.copy.options"; }
getDimensionServiceKey
67,063
String () { return myCommitMessage.getComment(); }
getCommitMessage
67,064
Url () { return myURL; }
getSourceURL
67,065
String () { return myNameField.getText(); }
getName
67,066
Url () { return myTargetUrl; }
getTargetURL
67,067
RepositoryTreeNode () { return myBrowser.getSelectedNode(); }
getTargetParentNode
67,068
JComponent () { return myMainPanel; }
createCenterPanel
67,069
void () { myTargetUrl = buildTargetUrl(); myTargetURLLabel.setText(myTargetUrl != null ? myTargetUrl.toDecodedString() : ""); getOKAction().setEnabled(myTargetUrl != null && !myURL.equals(myTargetUrl)); }
update
67,070
JComponent () { return myNameField; }
getPreferredFocusedComponent
67,071
void (@NotNull final DocumentEvent e) { Url newUrl = getNewFolderUrl(); myURLLabel.setText(notNull(newUrl, myOriginalURL).toDecodedString()); getOKAction().setEnabled(newUrl != null); }
textChanged
67,072
String () { return "svn4idea.mkdir.options"; }
getDimensionServiceKey
67,073
String () { return myCommitMessage.getText(); }
getCommitMessage
67,074
Url () { if (getOKAction().isEnabled()) { try { return createUrl(myURLLabel.getText(), false); } catch (SvnBindException ignore) { } } return null; }
getURL
67,075
String () { return myNameField.getText(); }
getName
67,076
JComponent () { return myMainPanel; }
createCenterPanel
67,077
JComponent () { return myNameField; }
getPreferredFocusedComponent
67,078
String () { return "svn4idea.export.options"; }
getDimensionServiceKey
67,079
File () { return new File(myPathField.getText()); }
getTarget
67,080
Depth () { return myDepth.getDepth(); }
getDepth
67,081
boolean () { return myForceCheckbox.isSelected(); }
isForce
67,082
boolean () { return !myExternalsCheckbox.isSelected(); }
isIgnoreExternals
67,083
String () { LineSeparator separator = myLineSeparatorComboBoxModel.getSelected(); return separator != null ? separator.name() : null; }
getEOLStyle
67,084
JComponent () { JPanel panel = new JPanel(new GridBagLayout()); GridBagConstraints gc = new GridBagConstraints(); gc.insets = JBUI.insets(2); gc.gridwidth = 1; gc.gridheight = 1; gc.gridx = 0; gc.gridy = 0; gc.anchor = GridBagConstraints.WEST; gc.fill = GridBagConstraints.NONE; gc.weightx = 0; gc.weighty = 0; panel.add...
createCenterPanel
67,085
ComboBox<LineSeparator> () { ComboBox<LineSeparator> comboBox = new ComboBox<>(myLineSeparatorComboBoxModel); comboBox.setRenderer(SimpleListCellRenderer.create(message("combobox.crlf.none"), separator -> ApplicationBundle.message(switch (separator) { case LF -> "combobox.crlf.unix"; case CRLF -> "combobox.crlf.windows...
createLineSeparatorComboBox
67,086
void (ActionEvent e) { // choose directory here/ FileChooserDescriptor fcd = FileChooserDescriptorFactory.createSingleFolderDescriptor(); fcd.setShowFileSystemRoots(true); fcd.setTitle(message("dialog.title.export.directory")); fcd.setDescription(message("label.select.directory.to.export.from.subversion")); fcd.setHide...
actionPerformed
67,087
String () { return "svn4idea.delete.options"; }
getDimensionServiceKey
67,088
String () { return myCommitMessage.getText(); }
getCommitMessage
67,089
JComponent () { JPanel panel = new JPanel(new GridBagLayout()); GridBagConstraints gc = new GridBagConstraints(); gc.insets = JBUI.insets(2); gc.gridwidth = 1; gc.gridheight = 1; gc.gridx = 0; gc.gridy = 0; gc.anchor = GridBagConstraints.WEST; gc.weightx = 0; gc.weighty = 0; gc.weightx = 0; gc.gridwidth = 3; gc.fill = ...
createCenterPanel
67,090
JComponent () { return myCommitMessage; }
getPreferredFocusedComponent
67,091
void (final RepositoryTreeNode node) { mySelectionPath = myTree.getSelectionPath(); }
onBeforeRefresh
67,092
void (final RepositoryTreeNode node) { if (mySelectionPath == null) { return; } setSelection(mySelectionPath.getPath(), 1, (TreeNode) myTree.getModel().getRoot()); }
onAfterRefresh
67,093
boolean (final Object[] oldSelectionPath, final int idx, final TreeNode node) { if (idx >= oldSelectionPath.length) { return false; } if ((oldSelectionPath[idx] != null) && (oldSelectionPath[idx].toString() != null)) { final Enumeration children = node.children(); while (children.hasMoreElements()) { final TreeNode chi...
setSelection
67,094
void () { final Url parentUrl; try { parentUrl = removePathTail(myUrl); } catch (SvnBindException e) { return; } final List<DirectoryEntry> children = myCache.getChildren(parentUrl); if (children == null) { return; } for (Iterator<DirectoryEntry> iterator = children.iterator(); iterator.hasNext(); ) { final DirectoryEn...
removeSelf
67,095
void (final Url newUrl, final Url repositoryUrl, final String name, final boolean isDir) { final List<DirectoryEntry> children = myCache.getChildren(myUrl); if (children == null) { return; } children.add(createSyntheticEntry(newUrl, repositoryUrl, name, isDir)); children.sort(DirectoryEntry.CASE_INSENSITIVE_ORDER); myC...
addSyntheticChildToSelf
67,096
void (final RepositoryTreeNode node) { try { node.doOnSubtree(new Adder(removePathTail(node.getURL()).toString().length(), myUrl)); } catch (SvnBindException ignored) { } }
copyTreeToSelf
67,097
void (final RepositoryTreeNode node) { node.doOnSubtree(new Remover()); }
removeTreeOf
67,098
DirectoryEntry (final Url newUrl, final Url repositoryUrl, final String name, final boolean isDir) { return new DirectoryEntry(newUrl, repositoryUrl, name, NodeKind.from(isDir), CommitInfo.EMPTY, null); }
createSyntheticEntry
67,099
Object (final RepositoryTreeNode repositoryTreeNode) { myCache.remove(repositoryTreeNode.getURL()); return Boolean.FALSE; }
fun