Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
50,500 | String (PsiFile psiFile) { return psiFile.getFileType().getName(); } | extractInfo |
50,501 | String (PsiFile psiFile) { return psiFile.getName(); } | extractInfo |
50,502 | String () { return switch (getScopeType()) { case PROJECT -> "Project"; case MODULE -> "Module '" + getModuleName() + "'"; case DIRECTORY -> "Directory '" + getPath() + "'"; case CUSTOM -> getScopeName(); }; } | getName |
50,503 | ScopeType () { return myScopeType; } | getScopeType |
50,504 | void (ScopeType scopeType) { myScopeType = scopeType; } | setScopeType |
50,505 | String () { return myModuleName; } | getModuleName |
50,506 | void (String moduleName) { myModuleName = moduleName; } | setModuleName |
50,507 | String () { return myScopeName; } | getScopeName |
50,508 | void (String scopeName) { myScopeName = scopeName; } | setScopeName |
50,509 | String () { return myPath; } | getPath |
50,510 | void (String path) { myPath = path; } | setPath |
50,511 | boolean () { return myRecursive; } | isRecursive |
50,512 | void (boolean recursive) { myRecursive = recursive; } | setRecursive |
50,513 | boolean () { final String dirName = getPath(); final String moduleName = getModuleName(); return switch (getScopeType()) { case MODULE -> moduleName != null && !moduleName.isEmpty(); case DIRECTORY -> dirName != null && !dirName.isEmpty() && findFile(dirName) != null; case CUSTOM -> myCustomScope != null; case PROJECT ... | isValid |
50,514 | boolean (Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SearchScope scope = (SearchScope)o; return myRecursive == scope.myRecursive && Comparing.equal(myCustomScope, scope.myCustomScope) && Objects.equals(myModuleName, scope.myModuleName) && Objects.equals(myP... | equals |
50,515 | int () { int result = myScopeType != null ? myScopeType.hashCode() : 0; result = 31 * result + (myModuleName != null ? myModuleName.hashCode() : 0); result = 31 * result + (myPath != null ? myPath.hashCode() : 0); result = 31 * result + (myRecursive ? 1 : 0); result = 31 * result + (myScopeName != null ? myScopeName.ha... | hashCode |
50,516 | VirtualFile (String dirName) { return LocalFileSystem.getInstance().findFileByPath(dirName.replace('\\', '/')); } | findFile |
50,517 | void (VirtualFile virtualFile, final Processor<? super VirtualFile> processor, boolean recursive) { VfsUtilCore.visitChildrenRecursively(virtualFile, new VirtualFileVisitor<Void>(recursive ? null : VirtualFileVisitor.ONE_LEVEL_DEEP) { @Override public boolean visitFile(@NotNull VirtualFile file) { if (!file.isDirectory... | iterateRecursively |
50,518 | boolean (@NotNull VirtualFile file) { if (!file.isDirectory()) { processor.process(file); } return true; } | visitFile |
50,519 | boolean (@NotNull VirtualFile fileOrDir) { if (!fileOrDir.isDirectory() && myCondition.value(fileOrDir)) { myProcessor.process(fileOrDir); } return true; } | processFile |
50,520 | void () { final ToolWindow findWindow = ToolWindowManager.getInstance(myProject).getToolWindow(ToolWindowId.FIND); final boolean available = findWindow != null && findWindow.isAvailable(); myForm.getNewTabCheckbox().setEnabled(available); myForm.getNewTabCheckbox().setSelected(FindSettings.getInstance().isShowResultsIn... | init |
50,521 | void (PropertyChangeEvent evt) { updateOkAction(); } | propertyChange |
50,522 | void (Mode mode) { myForm.getOptionsPanel().setVisible(mode == Mode.ADVANCED); super.setModeImpl(mode); } | setModeImpl |
50,523 | boolean () { return myForm.getScope().isValid() && super.isOkEnabled(); } | isOkEnabled |
50,524 | void () { if (myForm.getNewTabCheckbox().isEnabled()) { FindSettings.getInstance().setShowResultsInSeparateView(myForm.getNewTabCheckbox().isSelected()); } super.doOKAction(); } | doOKAction |
50,525 | String () { return "XPathView.FindDialog.DIMENSION_SERVICE_KEY"; } | getPrivateDimensionServiceKey |
50,526 | SearchScope () { return myForm.getScopePanel().getSearchScope(); } | getScope |
50,527 | boolean () { return myForm.getMatchEachNode().isSelected(); } | isMatchRecursively |
50,528 | boolean (VirtualFile t) { myIndicator.checkCanceled(); final FileType fileType = t.getFileType(); if (fileType instanceof XmlLikeFileType) { processXmlFile(t); } return true; } | process |
50,529 | void (@NotNull AnActionEvent e) { final Project project = e.getProject(); e.getPresentation().setEnabled(project != null); } | update |
50,530 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
50,531 | void (@NotNull AnActionEvent e) { final Project project = e.getProject(); final Module module = e.getData(PlatformCoreDataKeys.MODULE); if (project != null) { executeSearch(project, module); } } | actionPerformed |
50,532 | void (@NotNull final Project project, final Module module) { final Config settings = XPathAppComponent.getInstance().getConfig(); final XPathProjectComponent projectComponent = XPathProjectComponent.getInstance(project); final FindByExpressionDialog dlg = new FindByExpressionDialog(project, settings, projectComponent.g... | executeSearch |
50,533 | void (@NotNull UsageView usageView) { usageView.addButtonToLowerPane(new MyEditExpressionAction(project, module), XPathBundle.message("button.edit.expression.with.mnemonic")); } | usageViewCreated |
50,534 | void (UsageView usageView) { } | findingUsagesFinished |
50,535 | void () { executeSearch(myProject, myModule); } | execute |
50,536 | boolean (Project project, String expression) { try { XPathSupport.getInstance().createXPath(null, expression, Collections.emptyList()); return true; } catch (XPathSyntaxException e) { Messages.showErrorDialog(project, e.getMultilineMessage(), XPathBundle.message("dialog.title.xpath.syntax.error")); //NON-NLS } catch (J... | validateExpression |
50,537 | void (@NotNull final Processor<? super Usage> processor) { Runnable runnable = () -> { myIndicator.setIndeterminate(true); //noinspection DialogTitleCapitalization myIndicator.setText2(FindBundle.message("find.searching.for.string.in.file.occurrences.progress", 0)); final CountProcessor counter = new CountProcessor(); ... | generate |
50,538 | void (VirtualFile t) { myIndicator.setText( FindBundle.message("find.searching.for.string.in.file.progress", myExpression.expression, t.getPresentableUrl())); final PsiFile psiFile = myManager.findFile(t); if (psiFile instanceof XmlFile t1) { final XmlDocument document; FileViewProvider fileViewProvider = t1.getViewPro... | processXmlFile |
50,539 | void (XmlDocument t) { try { final XmlFile psiFile = (XmlFile)t.getContainingFile(); final XPath searchPath; final Pattern pattern; final Context context; if (myMatchRecursively) { searchPath = mySupport.createXPath(psiFile, "//*"); searchPath.setVariableContext(new CachedVariableContext(myExpression.variables, searchP... | process |
50,540 | void () { Object[] args = new Object[]{++myMatchCount}; //noinspection DialogTitleCapitalization myIndicator.setText2(FindBundle.message("find.searching.for.string.in.file.occurrences.progress", args)); } | matchFound |
50,541 | void (VirtualFile t) { myFileCount++; } | processXmlFile |
50,542 | int () { return myFileCount; } | getFileCount |
50,543 | void (@Nullable Module currentModule, final SearchScope scope) { final ItemListener stateListener = new ItemListener() { @Override public void itemStateChanged(ItemEvent e) { myModuleSelection.setEnabled(myModuleScope.isSelected()); myDirectory.setEnabled(myDirectoryScope.isSelected()); myRecursive.setEnabled(myDirecto... | initComponent |
50,544 | void (ItemEvent e) { myModuleSelection.setEnabled(myModuleScope.isSelected()); myDirectory.setEnabled(myDirectoryScope.isSelected()); myRecursive.setEnabled(myDirectoryScope.isSelected()); myCustomScopeSelection.setEnabled(myCustomScope.isSelected()); if (e.getStateChange() == ItemEvent.SELECTED) { firePropertyChange("... | itemStateChanged |
50,545 | void (ItemEvent e) { if (e.getStateChange() == ItemEvent.SELECTED) { firePropertyChange("scope", null, getSelectedScope()); } } | itemStateChanged |
50,546 | void (@NotNull DocumentEvent e) { firePropertyChange("scope", null, getSelectedScope()); } | textChanged |
50,547 | ComboBoxModel (Object[] elements) { return new DefaultComboBoxModel(new Vector(Arrays.asList(elements))); } | createModel |
50,548 | void () { myRoot = this; myCustomScopeSelection = new ScopeChooserCombo(); } | createUIComponents |
50,549 | String () { final String s = myDirectory.getText(); return s.length() > 0 ? s : null; } | getDirectoryName |
50,550 | String () { final Module module = myModuleSelection.getSelectedModule(); return module != null ? module.getName() : null; } | getModuleName |
50,551 | SearchScope () { final SearchScope scope = getSelectedScope(); scope.setCustomScope(((ScopeChooserCombo)myCustomScopeSelection).getSelectedScope()); return scope; } | getSearchScope |
50,552 | void () { Disposer.dispose(myCustomScopeSelection); } | dispose |
50,553 | void () { myRoot = this; myScopePanel = new ScopePanel(myProject); } | createUIComponents |
50,554 | JComponent () { return this; } | getComponent |
50,555 | SearchScope () { return myScopePanel.getSearchScope(); } | getScope |
50,556 | JLabel () { return myInputPanel.getIcon(); } | getIcon |
50,557 | JButton () { return myInputPanel.getEditContextButton(); } | getEditContextButton |
50,558 | JPanel () { return myInputPanel.getEditorPanel(); } | getEditorPanel |
50,559 | JCheckBox () { return myNewTabCheckbox; } | getNewTabCheckbox |
50,560 | JRadioButton () { return myMatchRootNode; } | getMatchRootNode |
50,561 | JRadioButton () { return myMatchEachNode; } | getMatchEachNode |
50,562 | ScopePanel () { return myScopePanel; } | getScopePanel |
50,563 | JPanel () { return myOptionsPanel; } | getOptionsPanel |
50,564 | void () { Disposer.dispose(myScopePanel); } | dispose |
50,565 | void () { final ToolWindow findWindow = ToolWindowManager.getInstance(myProject).getToolWindow(ToolWindowId.FIND); final boolean available = findWindow != null && findWindow.isAvailable(); myForm.getNewTabCheckbox().setEnabled(available); myForm.getNewTabCheckbox().setSelected(FindSettings.getInstance().isShowResultsIn... | init |
50,566 | void (ItemEvent e) { updateOkAction(); } | itemStateChanged |
50,567 | void (ItemEvent e) { myForm.getNewTabCheckbox().setEnabled(available && myForm.getUsageViewCheckbox().isSelected()); updateOkAction(); } | itemStateChanged |
50,568 | boolean () { final EvalFormPanel form = getForm(); final boolean b = form.getHighlightCheckbox().isSelected() || form.getUsageViewCheckbox().isSelected(); return b & super.isOkEnabled(); } | isOkEnabled |
50,569 | void () { final EvalFormPanel form = getForm(); if (form.getNewTabCheckbox().isEnabled()) { FindSettings.getInstance().setShowResultsInSeparateView(form.getNewTabCheckbox().isSelected()); } mySettings.HIGHLIGHT_RESULTS = form.getHighlightCheckbox().isSelected(); mySettings.SHOW_USAGE_VIEW = form.getUsageViewCheckbox().... | doOKAction |
50,570 | String () { return "XPathView.InputDialog.DIMENSION_SERVICE_KEY"; } | getPrivateDimensionServiceKey |
50,571 | void () { myRoot = this; } | createUIComponents |
50,572 | JComponent () { return this; } | getComponent |
50,573 | JLabel () { return myInputPanel.getIcon(); } | getIcon |
50,574 | JButton () { return myInputPanel.getEditContextButton(); } | getEditContextButton |
50,575 | JPanel () { return myInputPanel.getEditorPanel(); } | getEditorPanel |
50,576 | JCheckBox () { return myNewTabCheckbox; } | getNewTabCheckbox |
50,577 | JCheckBox () { return myHighlightCheckbox; } | getHighlightCheckbox |
50,578 | JCheckBox () { return myUsageViewCheckbox; } | getUsageViewCheckbox |
50,579 | void () {} | dispose |
50,580 | void (ListDataEvent e) { } | intervalAdded |
50,581 | void (ListDataEvent e) { } | intervalRemoved |
50,582 | void (ListDataEvent e) { final HistoryElement item = myModel.getSelectedItem(); if (item != null) { myContextProvider.getNamespaceContext().setMap(asMap(item.namespaces)); if (myXPathFile != null) { analyzer.restart(myXPathFile); } } } | contentsChanged |
50,583 | void (@NotNull DocumentEvent e) { updateOkAction(); } | documentChanged |
50,584 | void () { myForm.getIcon().setText(null); myForm.getIcon().setIcon(Messages.getQuestionIcon()); myForm.getEditContextButton().addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { final HistoryElement selectedItem = myModel.getSelectedItem(); final Collection<Namespace> n; fina... | init |
50,585 | void (ActionEvent e) { final HistoryElement selectedItem = myModel.getSelectedItem(); final Collection<Namespace> n; final Collection<Variable> v; if (selectedItem != null) { n = selectedItem.namespaces; v = selectedItem.variables; } else { n = Collections.emptySet(); v = Collections.emptySet(); } // FIXME final Collec... | actionPerformed |
50,586 | Set<String> () { final Set<String> prefixes = new HashSet<>(); myXPathFile.accept(new PsiRecursiveElementVisitor(){ @Override public void visitElement(@NotNull PsiElement element) { if (element instanceof QNameElement) { final PsiReference[] references = element.getReferences(); for (PsiReference reference : references... | findUnresolvedPrefixes |
50,587 | void (@NotNull PsiElement element) { if (element instanceof QNameElement) { final PsiReference[] references = element.getReferences(); for (PsiReference reference : references) { if (reference instanceof PrefixReference prefixReference) { if (prefixReference.isUnresolved()) { prefixes.add(prefixReference.getPrefix()); ... | visitElement |
50,588 | FormType () { return myForm; } | getForm |
50,589 | JComponent () { return myForm.getComponent(); } | createCenterPanel |
50,590 | void () { getOKAction().setEnabled(isOkEnabled()); } | updateOkAction |
50,591 | boolean () { return myEditor.getField().getDocument().getTextLength() > 0; } | isOkEnabled |
50,592 | Editor () { if (getMode() == Mode.ADVANCED) { return myEditor.getField().getEditor(); } else { return myComboBox.getEditorEx(); } } | getEditor |
50,593 | void (Mode mode) { // mySettingsPanel.setVisible(mode == Mode.ADVANCED); myForm.getEditContextButton().setVisible(mode == Mode.ADVANCED); if (mode == Mode.ADVANCED) { setEditor(myEditor, GridConstraints.SIZEPOLICY_WANT_GROW); myEditor.getField().selectAll(); } else { setEditor(myComboBox, GridConstraints.SIZEPOLICY_FIX... | setModeImpl |
50,594 | void (JComponent editor, int vSizePolicy) { if (myEditorComponent != null) { myForm.getEditorPanel().remove(myEditorComponent); } final GridConstraints gridConstraints = new GridConstraints(); gridConstraints.setFill(vSizePolicy == GridConstraints.SIZEPOLICY_WANT_GROW ? GridConstraints.FILL_BOTH : GridConstraints.FILL_... | setEditor |
50,595 | Document (Project project, HistoryElement historyElement) { final String expression = historyElement != null ? historyElement.expression : ""; final PsiFile file = PsiFileFactory.getInstance(project).createFileFromText("DummyFile.xpath", XPathFileType.XPATH, expression, LocalTimeCounter.currentTime(), true); final Docu... | createXPathDocument |
50,596 | boolean (XmlElement contextElement) { prepareShow(contextElement); show(); return isOK(); } | show |
50,597 | void (XmlElement contextElement) { final NamespaceCollector.CollectedInfo collectedInfo; if (contextElement != null) { collectedInfo = NamespaceCollector.collectInfo((XmlFile)contextElement.getContainingFile()); myNamespaceCache = collectedInfo.namespaces; } else { collectedInfo = NamespaceCollector.empty(); myNamespac... | prepareShow |
50,598 | Collection<Namespace> (Collection<Namespace> namespaces, Collection<Namespace> cache, boolean merge) { if (cache == null) return namespaces; final Set<Namespace> n; if (merge) { n = new HashSet<>(cache); n.removeAll(namespaces); n.addAll(namespaces); } else { n = new HashSet<>(namespaces); for (Namespace namespace : n)... | merge |
50,599 | JComponent () { final Editor editor = getEditor(); if (editor != null) { return editor.getContentComponent(); } else { return null; } } | getPreferredFocusedComponent |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.