Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
66,600 | void (boolean hasErrors) { NotificationsManager manager = NotificationsManager.getNotificationsManager(); ErrorsFoundNotification[] notifications = manager.getNotificationsOfType(ErrorsFoundNotification.class, myProject); if (hasErrors) { // do not show notification if it is already shown if (notifications.length == 0)... | showErrorNotification |
66,601 | String () { return HELP_ID; } | getHelpId |
66,602 | JComponent () { return myPropertyNameBox; } | getPreferredFocusedComponent |
66,603 | String () { return (String)myPropertyNameBox.getEditor().getItem(); } | getPropertyName |
66,604 | String () { if (myDeletePropertyButton.isSelected()) { return null; } return myValueText.getText(); } | getPropertyValue |
66,605 | boolean () { return myRecursiveButton.isSelected(); } | isRecursive |
66,606 | boolean () { return true; } | shouldCloseOnCross |
66,607 | String () { return "svn.propertyDialog"; } | getDimensionServiceKey |
66,608 | void () { super.init(); if (myPropertyName != null) { updatePropertyValue(myPropertyName); } else { myPropertyNameBox.getEditor().setItem(""); } myPropertyNameBox.addItemListener(e -> { if (e.getStateChange() == ItemEvent.SELECTED) { String name = getPropertyName(); updatePropertyValue(name); getOKAction().setEnabled(n... | init |
66,609 | void (@NotNull DocumentEvent e) { String name = getPropertyName(); updatePropertyValue(name); getOKAction().setEnabled(name != null && !name.trim().isEmpty()); } | textChanged |
66,610 | void (String name) { if (myFiles.length != 1) { return; } File file = myFiles[0]; PropertyValue property = !StringUtil.isEmpty(name) ? getProperty(file, name) : null; if (property != null) { myValueText.setText(property.toString()); myValueText.selectAll(); } else { myValueText.setText(""); } } | updatePropertyValue |
66,611 | PropertyValue (@NotNull File file, @NotNull String name) { PropertyValue result; try { PropertyClient client = myVCS.getFactory(file).createPropertyClient(); result = client.getProperty(Target.on(file, Revision.WORKING), name, false, Revision.WORKING); } catch (SvnBindException e) { LOG.info(e); result = null; } return... | getProperty |
66,612 | JComponent () { for (@NlsSafe String name : getPropertyNames(myFiles)) { myPropertyNameBox.addItem(name); } if (myPropertyName != null) { myPropertyNameBox.getEditor().setItem(myPropertyName); myPropertyNameBox.getEditor().selectAll(); } mySetPropertyButton.addChangeListener(e -> { if (mySetPropertyButton.isSelected())... | createCenterPanel |
66,613 | void (File path, PropertyData property) { names.add(property.getName()); } | handleProperty |
66,614 | JComponent () { return myMainPanel; } | createCenterPanel |
66,615 | String () { return myFromURLTextField.getText(); } | getBeforeURL |
66,616 | String () { return myToURLTextField.getText(); } | getAfterURL |
66,617 | Depth () { return myStickyDepth; } | getStickyDepth |
66,618 | VirtualFile () { return null; } | getVcsRoot |
66,619 | Url () { return myRootInfo.getUrl(); } | getUrl |
66,620 | Url () { return myRootInfo.getRepositoryUrl(); } | getRepoUrl |
66,621 | RootUrlInfo () { return myRootInfo; } | getRootInfo |
66,622 | boolean () { return getRootInfo().getNode().hasError(); } | hasError |
66,623 | WorkingCopyFormat () { return myRootInfo.getFormat(); } | getFormat |
66,624 | boolean () { return myIsWcRoot; } | isIsWcRoot |
66,625 | boolean (final Object o) { if (this == o) return true; if (!(o instanceof WCInfo wcInfo)) return false; return getPath().equals(wcInfo.getPath()); } | equals |
66,626 | int () { return getPath().hashCode(); } | hashCode |
66,627 | NestedCopyType () { return myRootInfo.getType(); } | getType |
66,628 | boolean () { return myIsError; } | isError |
66,629 | JComponent () { return myCombo; } | getPreferredFocusedComponent |
66,630 | JComponent () { JLabel selectText = new JLabel(message("repository.browser.add.location.prompt")); selectText.setUI(new MultiLineLabelUI()); JPanel mainPanel = new JPanel(new GridBagLayout()); GridBagConstraints gb = new GridBagConstraints(0, 0, 1, 1, 1, 0, NORTHWEST, NONE, insets(5), 0, 0); mainPanel.add(selectText, g... | createCenterPanel |
66,631 | ValidationInfo () { try { mySelected = createUrl(myComboField.getText().trim(), false); return null; } catch (SvnBindException e) { return new ValidationInfo(message("dialog.message.could.not.parse.url"), myCombo); } } | doValidate |
66,632 | Url () { return mySelected; } | getSelected |
66,633 | void (@NotNull Url url) { myComboField.setText(url.toDecodedString()); } | setSelected |
66,634 | void (Url url) { RepositoryTreeNode rootNode = new RepositoryTreeNode(myModel, this, url, url); Disposer.register(this, rootNode); myChildren.add(rootNode); myChildren.sort((o1, o2) -> Collator.getInstance().compare(o1.toString(), o2.toString())); myModel.nodesWereInserted(this, new int[]{myChildren.indexOf(rootNode)})... | addRoot |
66,635 | void (TreeNode node) { int index = getIndex(node); myChildren.remove(node); myModel.nodesWereRemoved(this, new int[]{index}, new Object[]{node}); } | remove |
66,636 | Enumeration () { return Collections.enumeration(myChildren); } | children |
66,637 | boolean () { return true; } | getAllowsChildren |
66,638 | TreeNode (int childIndex) { return myChildren.get(childIndex); } | getChildAt |
66,639 | int () { return myChildren.size(); } | getChildCount |
66,640 | int (TreeNode node) { return myChildren.indexOf(node); } | getIndex |
66,641 | TreeNode () { return null; } | getParent |
66,642 | boolean () { return false; } | isLeaf |
66,643 | void () { } | dispose |
66,644 | void () { register(myPasswordChoice, SvnConfiguration.SshConnectionType.PASSWORD); register(myPrivateKeyChoice, SvnConfiguration.SshConnectionType.PRIVATE_KEY); register(mySubversionConfigChoice, SvnConfiguration.SshConnectionType.SUBVERSION_CONFIG); ItemListener connectionTypeChangedListener = e -> { if (e.getStateCha... | init |
66,645 | void (@NotNull DocumentEvent e) { updateSshTunnelDependentValues(mySshTunnelField.getText()); } | textChanged |
66,646 | void (@NotNull TextFieldWithBrowseButton component, @NlsContexts.DialogTitle @NotNull String dialogTitle) { component.addBrowseFolderListener(dialogTitle, null, mySvnConfiguration.getProject(), FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor()); } | registerBrowseDialog |
66,647 | void (Object source) { UIUtil.setEnabled(myCommonOptions, !mySubversionConfigChoice.equals(source), true); UIUtil.setEnabled(myPrivateKeyOptions, myPrivateKeyChoice.equals(source), true); UIUtil.setEnabled(mySubversionConfigOptions, mySubversionConfigChoice.equals(source), true); mySvnSshVariableField.setEditable(false... | enableOptions |
66,648 | void (@NotNull SvnConfiguration settings) { SvnConfigurationState state = settings.getState(); setConnectionChoice(state.sshConnectionType); myExecutablePathField.setText(state.sshExecutablePath); myUserNameField.setText(state.sshUserName); myPortField.setNumber(state.sshPort); myPrivateKeyPathField.setText(state.sshPr... | reset |
66,649 | boolean (@NotNull SvnConfiguration settings) { SvnConfigurationState state = settings.getState(); return !state.sshConnectionType.equals(getConnectionChoice()) || !StringUtil.equals(state.sshExecutablePath, myExecutablePathField.getText()) || !StringUtil.equals(state.sshUserName, myUserNameField.getText()) || state.ssh... | isModified |
66,650 | void (@NotNull SvnConfiguration settings) { SvnConfigurationState state = settings.getState(); state.sshConnectionType = getConnectionChoice(); state.sshExecutablePath = myExecutablePathField.getText(); state.sshUserName = myUserNameField.getText(); state.sshPort = myPortField.getNumber(); state.sshPrivateKeyPath = myP... | apply |
66,651 | JComponent () { return myMainPanel; } | getComponent |
66,652 | void () { } | dispose |
66,653 | void (@NotNull SvnConfiguration.SshConnectionType value) { setSelected(myPasswordChoice, value); setSelected(myPrivateKeyChoice, value); setSelected(mySubversionConfigChoice, value); } | setConnectionChoice |
66,654 | void (@NotNull String tunnelSetting) { mySshTunnelFromConfig = tunnelSetting; mySshTunnelField.setText(tunnelSetting); updateSshTunnelDependentValues(tunnelSetting); } | setSshTunnelSetting |
66,655 | void (@NlsSafe @Nullable String tunnelSetting) { String svnSshVariableName = SshTunnelRuntimeModule.getSvnSshVariableName( !StringUtil.isEmpty(tunnelSetting) ? tunnelSetting : SshTunnelRuntimeModule.DEFAULT_SSH_TUNNEL_VALUE); String svnSshVariableValue = StringUtil.notNullize(EnvironmentUtil.getValue(svnSshVariableName... | updateSshTunnelDependentValues |
66,656 | void (@Nullable String tunnelSetting) { myUpdateTunnelButton.setEnabled(!StringUtil.equals(tunnelSetting, mySshTunnelFromConfig)); } | setUpdateTunnelButtonEnabled |
66,657 | void (@NotNull JBRadioButton choice, @NotNull SvnConfiguration.SshConnectionType value) { choice.putClientProperty("value", value); } | register |
66,658 | void (@NotNull JBRadioButton choice, @NotNull SvnConfiguration.SshConnectionType value) { choice.setSelected(value.equals(choice.getClientProperty("value"))); } | setSelected |
66,659 | void () { myExecutablePathTextField = new JBTextField(); myExecutablePathField = new TextFieldWithBrowseButton(myExecutablePathTextField, null, this); myPrivateKeyPathField = new TextFieldWithBrowseButton(null, this); } | createUIComponents |
66,660 | IterationResultHolder (final TreeNode node) { if ((! (node instanceof RepositoryTreeNode)) || (node.isLeaf())) { return IterationResultHolder.RESULT; } return IterationResultHolder.DO_NOTHING; } | doChecks |
66,661 | JTree () { return myRepositoryTree; } | getRepositoryTree |
66,662 | Project () { return myVCS.getProject(); } | getProject |
66,663 | void (Url[] urls, final boolean showFiles) { setRepositoryURLs(urls, showFiles, null, false); } | setRepositoryURLs |
66,664 | void (Url[] urls, final boolean showFiles, @Nullable NotNullFunction<RepositoryBrowserComponent, Expander> defaultExpanderFactory, boolean expandFirst) { RepositoryTreeModel model = new RepositoryTreeModel(myVCS, showFiles, this); if (defaultExpanderFactory != null) { model.setDefaultExpanderFactory(defaultExpanderFact... | setRepositoryURLs |
66,665 | void (Url url, boolean showFiles, final NotNullFunction<RepositoryBrowserComponent, Expander> defaultExpanderFactory) { RepositoryTreeModel model = new RepositoryTreeModel(myVCS, showFiles, this); model.setDefaultExpanderFactory(defaultExpanderFactory); model.setSingleRoot(url); Disposer.register(this, model); myReposi... | setRepositoryURL |
66,666 | void (Url url, boolean showFiles) { RepositoryTreeModel model = new RepositoryTreeModel(myVCS, showFiles, this); model.setSingleRoot(url); Disposer.register(this, model); myRepositoryTree.setModel(model); myRepositoryTree.setRootVisible(true); myRepositoryTree.setSelectionRow(0); } | setRepositoryURL |
66,667 | void (@NotNull final TreeNode treeNode) { final TreeNode[] pathToNode = ((RepositoryTreeModel)myRepositoryTree.getModel()).getPathToRoot(treeNode); if ((pathToNode != null) && (pathToNode.length > 0)) { final TreePath treePath = new TreePath(pathToNode); myRepositoryTree.expandPath(treePath); } } | expandNode |
66,668 | Collection<TreeNode> (@NotNull final TreeNode treeNode) { final TreeNode[] pathToNode = ((RepositoryTreeModel)myRepositoryTree.getModel()).getPathToRoot(treeNode); final Enumeration<TreePath> expanded = myRepositoryTree.getExpandedDescendants(new TreePath(pathToNode)); final List<TreeNode> result = new ArrayList<>(); i... | getExpandedSubTree |
66,669 | boolean (@NotNull final TreeNode treeNode) { final TreeNode[] pathToNode = ((RepositoryTreeModel)myRepositoryTree.getModel()).getPathToRoot(treeNode); return (pathToNode != null) && (pathToNode.length > 0) && myRepositoryTree.isExpanded(new TreePath(pathToNode)); } | isExpanded |
66,670 | void (@NotNull Url url) { ((RepositoryTreeModel)myRepositoryTree.getModel()).addRoot(url); } | addURL |
66,671 | void (@NotNull Url url) { ((RepositoryTreeModel)myRepositoryTree.getModel()).removeRoot(url); } | removeURL |
66,672 | DirectoryEntry () { TreePath selection = myRepositoryTree.getSelectionPath(); if (selection == null) { return null; } Object element = selection.getLastPathComponent(); if (element instanceof RepositoryTreeNode node) { return node.getSVNDirEntry(); } return null; } | getSelectedEntry |
66,673 | String () { Url selectedUrl = getSelectedSVNURL(); return selectedUrl == null ? null : selectedUrl.toString(); } | getSelectedURL |
66,674 | Url () { TreePath selection = myRepositoryTree.getSelectionPath(); if (selection == null) { return null; } Object element = selection.getLastPathComponent(); if (element instanceof RepositoryTreeNode node) { return node.getURL(); } return null; } | getSelectedSVNURL |
66,675 | void (TreeSelectionListener l) { myRepositoryTree.addTreeSelectionListener(l); } | addChangeListener |
66,676 | void (TreeSelectionListener l) { myRepositoryTree.removeTreeSelectionListener(l); } | removeChangeListener |
66,677 | Component () { return myRepositoryTree; } | getPreferredFocusedComponent |
66,678 | void () { setLayout(new BorderLayout()); myRepositoryTree = new Tree(); myRepositoryTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); myRepositoryTree.setRootVisible(false); myRepositoryTree.setShowsRootHandles(true); JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(myRepos... | createComponent |
66,679 | RepositoryTreeNode () { TreePath selection = myRepositoryTree.getSelectionPath(); if (selection != null && selection.getLastPathComponent() instanceof RepositoryTreeNode) { return (RepositoryTreeNode)selection.getLastPathComponent(); } return null; } | getSelectedNode |
66,680 | void (@NotNull final TreeNode node) { final TreeNode[] pathNodes = ((RepositoryTreeModel)myRepositoryTree.getModel()).getPathToRoot(node); myRepositoryTree.setSelectionPath(new TreePath(pathNodes)); } | setSelectedNode |
66,681 | VirtualFile () { final RepositoryTreeNode node = getSelectedNode(); if (node == null) return null; DirectoryEntry entry = node.getSVNDirEntry(); if (entry == null || !entry.isFile()) { return null; } String name = entry.getName(); FileTypeManager manager = FileTypeManager.getInstance(); if (entry.getName().lastIndexOf(... | getSelectedVcsFile |
66,682 | Object (@NotNull @NonNls String dataId) { if (CommonDataKeys.NAVIGATABLE.is(dataId)) { final Project project = myVCS.getProject(); if (project.isDefault()) { return null; } final VirtualFile vcsFile = getSelectedVcsFile(); // do not return OpenFileDescriptor instance here as in that case SelectInAction will be enabled ... | getData |
66,683 | void (boolean requestFocus) { navigate(project, vcsFile, requestFocus); } | navigate |
66,684 | void () { } | dispose |
66,685 | void (final NotNullFunction<RepositoryBrowserComponent, Expander> expanderFactory) { ((RepositoryTreeModel)myRepositoryTree.getModel()).setDefaultExpanderFactory(expanderFactory); } | setLazyLoadingExpander |
66,686 | StatusText () { return myRepositoryTree.getEmptyText(); } | getStatusText |
66,687 | TreeNode () { if (myKey != null) { for (final TreeNode node : myChildren) { final IterationResultHolder checkResult = doChecks(node); if (IterationResultHolder.RESULT.equals(checkResult)) { return node; } else if (IterationResultHolder.SKIP.equals(checkResult)) { continue; } if (myKey.compareTo(node.toString()) <= 0) {... | getNextSelectedByKey |
66,688 | void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { setIcon(null); if (value instanceof RepositoryTreeNode) { RepositoryTreeNode node = (RepositoryTreeNode) value; if (node.getSVNDirEntry() == null) { append(node.getURL().toDecodedString(), SimpleTextA... | customizeCellRenderer |
66,689 | void (boolean state) { myIsShowDetails = state; } | setShowDetails |
66,690 | Url (Project project, @NotNull Url url) { SelectLocationDialog dialog = openDialog(project, url, null, null, true, null); return dialog == null || !dialog.isOK() ? null : dialog.getSelectedURL(); } | selectLocation |
66,691 | SelectLocationDialog (Project project, @NotNull Url url, @NlsContexts.Label @Nullable String dstLabel, String dstName, boolean showFiles, @NlsContexts.DialogMessage @Nullable String errorMessage) { try { final Url repositoryUrl = initRoot(project, url); if (repositoryUrl == null) { Messages.showErrorDialog(project, mes... | openDialog |
66,692 | String () { return HELP_ID; } | getHelpId |
66,693 | String () { return "svn.repositoryBrowser"; } | getDimensionServiceKey |
66,694 | void () { super.init(); if (myAllowActions) { // initialize repo browser this way - to make actions work correctly myRepositoryBrowser.setRepositoryURLs(new Url[]{myURL}, myIsShowFiles, new UrlOpeningExpander.Factory(myURL), true); } else { myRepositoryBrowser.setRepositoryURL(myURL, myIsShowFiles, new UrlOpeningExpand... | init |
66,695 | void () { super.dispose(); Disposer.dispose(myRepositoryBrowser); } | dispose |
66,696 | JComponent () { JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); JPanel browserPanel = new JPanel(); browserPanel.setLayout(new GridBagLayout()); GridBagConstraints gc = new GridBagConstraints(); gc.insets = JBUI.insets(2); gc.gridwidth = 2; gc.gridheight = 1; gc.gridx = 0; gc.gridy = 0; gc.anchor = Gr... | createCenterPanel |
66,697 | void (DocumentEvent e) { getOKAction().setEnabled(isOKActionEnabled()); } | insertUpdate |
66,698 | void (DocumentEvent e) { getOKAction().setEnabled(isOKActionEnabled()); } | removeUpdate |
66,699 | void (DocumentEvent e) { getOKAction().setEnabled(isOKActionEnabled()); } | changedUpdate |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.