Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
49,400 | JCheckBox () { return getForm().myReplaceAll; } | getReplaceAll |
49,401 | JLabel () { return getForm().myTypeLabel; } | getTypeLabel |
49,402 | TextFieldWithHistory () { return getForm().myNameField; } | getNameField |
49,403 | JComponent () { return getForm().myNameField; } | getPreferredFocusedComponent |
49,404 | String () { return getNameField().getText(); } | getName |
49,405 | String () { return XPathBundle.message("dialog.title.introduce.variable"); } | getRefactoringName |
49,406 | String () { return XPathBundle.message("command.name.introduce.xslt.variable"); } | getCommandName |
49,407 | boolean (XPathExpression expression, Set<XPathExpression> matchingExpressions, List<XmlTag> otherMatches, IntroduceVariableOptions dlg) { final XmlAttribute attribute = PsiTreeUtil.getContextOfType(expression, XmlAttribute.class, true); assert attribute != null; try { final String name = dlg.getName(); final XmlTag ins... | extractImpl |
49,408 | IntroduceVariableOptions (XPathExpression expression, Set<XPathExpression> matchingExpressions) { final IntroduceVariableDialog dlg = new IntroduceVariableDialog(expression, matchingExpressions.size() + 1); dlg.show(); return dlg; } | getSettings |
49,409 | JComponent () { return myContentPane; } | createCenterPanel |
49,410 | boolean () { return myForm.isReplaceAll(); } | isReplaceAll |
49,411 | BaseIntroduceForm () { return myForm; } | getForm |
49,412 | UsageViewDescriptor (UsageInfo @NotNull [] usageInfos) { return new MyUsageViewDescriptorAdapter(); } | createUsageViewDescriptor |
49,413 | void (UsageInfo @NotNull [] usageInfos) { XmlTag tag; if (myTemplate != null) { tag = myTemplate.getTag(); } else if ((tag = XsltCodeInsightUtil.getTemplateTag(myExpression, true, false)) == null) { final XmlDocument document = PsiTreeUtil.getContextOfType(myExpression, XmlDocument.class, true); assert document != null... | performRefactoring |
49,414 | String () { return XPathBundle.message("command.name.introduce.xslt.parameter"); } | getCommandName |
49,415 | String () { return XPathBundle.message("header.adding.parameter.to.template"); } | getProcessedElementsHeader |
49,416 | void (PropertyChangeEvent evt) { if (evt.getPropertyName().equals("enabled")) { myPreviewAction.setEnabled(((Boolean)evt.getNewValue()) && !myCreateWithDefault.isSelected()); } } | propertyChange |
49,417 | void (ItemEvent e) { myPreviewAction.setEnabled(getOKAction().isEnabled() && !myCreateWithDefault.isSelected()); } | itemStateChanged |
49,418 | Action () { return myPreviewAction; } | getPreviewAction |
49,419 | JComponent () { return myContentPane; } | createCenterPanel |
49,420 | boolean () { return myCreateWithDefault.isSelected(); } | isCreateDefault |
49,421 | boolean () { return myForm.isReplaceAll(); } | isReplaceAll |
49,422 | boolean () { return myIsPreview; } | isPreview |
49,423 | BaseIntroduceForm () { return myForm; } | getForm |
49,424 | void (ActionEvent e) { myIsPreview = true; doOKAction(); } | actionPerformed |
49,425 | XmlAttribute () { return PsiTreeUtil.getContextOfType(myExpression, XmlAttribute.class, true); } | getAttribute |
49,426 | XPathExpression () { return myExpression; } | getExpression |
49,427 | XPathUsageInfo (XPathExpression expression) { final TextRange range = XsltCodeInsightUtil.getRangeInsideHost(expression); return new XPathUsageInfo(expression, range.getStartOffset(), range.getEndOffset()); } | create |
49,428 | String () { return XPathBundle.message("dialog.title.introduce.parameter"); } | getRefactoringName |
49,429 | String () { return XPathBundle.message("command.name.introduce.xslt.parameter"); } | getCommandName |
49,430 | IntroduceParameterOptions (XPathExpression expression, Set<XPathExpression> matchingExpressions) { final boolean forceDefault = XsltCodeInsightUtil.getTemplateTag(expression, true, true) == null; final IntroduceParameterDialog dialog = new IntroduceParameterDialog(expression, matchingExpressions.size() + 1, forceDefaul... | getSettings |
49,431 | boolean (XPathExpression expression, Set<XPathExpression> matchingExpressions, List<XmlTag> otherMatches, IntroduceParameterOptions settings) { new IntroduceParameterProcessor(expression.getProject(), expression, matchingExpressions, settings).run(); return false; } | extractImpl |
49,432 | String () { return XPathBundle.message("dialog.title.extract.template"); } | getRefactoringName |
49,433 | void (@NotNull Project project, Editor editor, PsiFile file, DataContext dataContext) { if (!invokeImpl(editor, file)) { super.invoke(project, editor, file, dataContext); } } | invoke |
49,434 | boolean (Editor editor, PsiFile file) { return invokeImpl(editor, file, null); } | invokeImpl |
49,435 | boolean (Editor editor, PsiFile file, String newName) { final SelectionModel selectionModel = editor.getSelectionModel(); if (!selectionModel.hasSelection()) { return false; } int startOffset = selectionModel.getSelectionStart(); PsiElement start = file.findElementAt(startOffset); if (start instanceof PsiWhiteSpace) { ... | invokeImpl |
49,436 | boolean (final @NotNull PsiElement start, final PsiElement end, String newName) { final XmlTag outerTemplate = XsltCodeInsightUtil.getTemplateTag(start, false); if (outerTemplate == null) { return false; } final XmlTag parentScope = PsiTreeUtil.getParentOfType(start, XmlTag.class, true); if (parentScope == null) { retu... | extractFrom |
49,437 | boolean (PsiFile file, Editor editor, XmlAttribute context, int offset) { return false; } | actionPerformedImpl |
49,438 | String (Editor editor, PsiFile file, XmlAttribute context) { if (!editor.getSelectionModel().hasSelection()) { return XPathBundle.message("notification.content.please.select.code.that.should.be.extracted"); } return null; } | getErrorMessage |
49,439 | boolean (@NotNull XsltRunConfiguration configuration, @NotNull ConfigurationContext context, @NotNull Ref<PsiElement> sourceElement) { XmlFile file = getXsltFile(context); if (file == null) { return false; } configuration.initFromFile(file); return true; } | setupConfigurationFromContext |
49,440 | boolean (@NotNull XsltRunConfiguration configuration, @NotNull ConfigurationContext context) { XmlFile file = getXsltFile(context); return file != null && file.getVirtualFile().getPath().replace('/', File.separatorChar).equals(configuration.getXsltFile()); } | isConfigurationFromContext |
49,441 | XmlFile (ConfigurationContext context) { final XmlFile file = PsiTreeUtil.getParentOfType(context.getPsiLocation(), XmlFile.class, false); if (file != null && file.isPhysical() && XsltSupport.isXsltFile(file)) { return file; } return null; } | getXsltFile |
49,442 | ConfigurationFactory () { return XsltRunConfigType.getInstance().getConfigurationFactories()[0]; } | getConfigurationFactory |
49,443 | JComponent () { return null; } | getSearchComponent |
49,444 | ActionGroup () { return null; } | getToolbarActions |
49,445 | JComponent () { return null; } | getToolbarContextComponent |
49,446 | String () { return null; } | getToolbarPlace |
49,447 | boolean () { return true; } | isContentBuiltIn |
49,448 | EditorEx () { return (EditorEx)((DataProvider)myConsole).getData(LangDataKeys.EDITOR.getName()); } | getEditor |
49,449 | JComponent () { return myConsoleComponent; } | getPreferredFocusableComponent |
49,450 | Object (@NotNull @NonNls String dataId) { if (LangDataKeys.EDITOR.is(dataId)) { return getEditor(); } return null; } | getData |
49,451 | String () { return XPathBundle.message("tab.title.xslt.output"); } | getTabTitle |
49,452 | void () { Disposer.dispose(myConsole); } | dispose |
49,453 | ConsoleView () { return myConsole; } | getConsole |
49,454 | RunConfiguration (@NotNull final Project project) { return new XsltRunConfiguration(project, this); } | createTemplateConfiguration |
49,455 | String () { return "XSLT"; } | getId |
49,456 | XsltRunConfigType () { return ConfigurationTypeUtil.findConfigurationType(XsltRunConfigType.class); } | getInstance |
49,457 | String () { return getId(); } | getDisplayName |
49,458 | String () { return XPathBundle.message("run.configuration.description.xslt.script"); } | getConfigurationTypeDescription |
49,459 | Icon () { return XpathIcons.Xslt; } | getIcon |
49,460 | ConfigurationFactory[] () { return new ConfigurationFactory[]{myFactory}; } | getConfigurationFactories |
49,461 | String () { return "reference.dialogs.rundebug.XSLT"; } | getHelpTopic |
49,462 | List<XsltRunnerExtension> (XsltRunConfiguration config, boolean debugger) { final List<XsltRunnerExtension> extensions = EXTENSION_POINT_NAME.getExtensionList(); final ArrayList<XsltRunnerExtension> list = new ArrayList<>(extensions.size()); for (XsltRunnerExtension extension : extensions) { if (extension.supports(conf... | getExtensions |
49,463 | void (@NotNull ProcessEvent event) { final XsltCommandLineState state = event.getProcessHandler().getUserData(XsltCommandLineState.STATE); if (state != null) { attachOutputConsole(state.getPort()); } } | startNotified |
49,464 | void (final int port) { ApplicationManager.getApplication().executeOnPooledThread(new Runnable() { @Override public void run() { try { final InputStream stream; if ((stream = connect(port)) == null) { // process terminated prematurely return; } final InputStreamReader reader = new InputStreamReader(stream, StandardChar... | attachOutputConsole |
49,465 | void () { try { final InputStream stream; if ((stream = connect(port)) == null) { // process terminated prematurely return; } final InputStreamReader reader = new InputStreamReader(stream, StandardCharsets.UTF_8); final HighlightingProcessHandler process = new HighlightingProcessHandler(reader) { private boolean mySele... | run |
49,466 | void (@NotNull String text, @NotNull Key outputType) { super.notifyTextAvailable(text, outputType); if (mySelectionChanged) { return; } mySelectionChanged = true; myConsole.selectOutputTab(); } | notifyTextAvailable |
49,467 | boolean () { return myIsDebugger; } | isDebugger |
49,468 | String (String path, Module module, Project project) { path = PathMacroManager.getInstance(project).expandPath(path); if (module != null) { path = PathMacroManager.getInstance(module).expandPath(path); } return path; } | expandPath |
49,469 | int () { return myPort; } | getPort |
49,470 | UserDataHolder () { return myExtensionData; } | getExtensionData |
49,471 | void (@NotNull ProcessEvent event) { if (myXsltRunConfiguration.isSaveToFile()) { ApplicationManager.getApplication().invokeLater(() -> ApplicationManager.getApplication().runWriteAction(() -> { if (event.getExitCode() == 0) { if (myXsltRunConfiguration.myOpenInBrowser) { BrowserUtil.browse(myXsltRunConfiguration.myOut... | processTerminated |
49,472 | void () { final Alarm myAlarm = new Alarm(Alarm.ThreadToUse.POOLED_THREAD, this); myAlarm.addRequest(new Runnable() { public void run() { if(!isClosed()) { myAlarm.addRequest(this, NOTIFY_TEXT_DELAY); checkTextAvailable(); } } }, NOTIFY_TEXT_DELAY); try { while (!isClosed()) { final int c = readNextByte(); if (c == -1)... | run |
49,473 | void () { if(!isClosed()) { myAlarm.addRequest(this, NOTIFY_TEXT_DELAY); checkTextAvailable(); } } | run |
49,474 | int () { try { return myReader.read(); } catch (IOException e) { return -1; // When process terminated Process.getInputStream()'s underlaying stream becomes closed on Linux. } } | readNextByte |
49,475 | void () { synchronized (myBuffer) { if (myBuffer.length() == 0) return; // warning! Since myBuffer is reused, do not use myBuffer.toString() to fetch the string // because the created string will get StringBuffer's internal char array as a buffer which is possibly too large. final String s = myBuffer.substring(0, myBuf... | checkTextAvailable |
49,476 | void () { synchronized (this) { if (isClosed()) { return; } myIsClosed = true; } try { if(Thread.currentThread() != this) { join(0); } } catch (InterruptedException e) { } // must close after the thread finished its execution, cause otherwise // the thread will try to read from the closed (and nulled) stream try { myRe... | close |
49,477 | void () { } | dispose |
49,478 | void () { myProcessReader.start(); } | start |
49,479 | void () { } | destroyProcessImpl |
49,480 | void () { } | detachProcessImpl |
49,481 | boolean () { return false; } | detachIsDefault |
49,482 | OutputStream () { return null; } | getProcessInput |
49,483 | void () { myHandler.startNotify(); super.run(); } | run |
49,484 | void (final String s) { myHandler.notifyTextAvailable(s, ProcessOutputTypes.SYSTEM); } | textAvailable |
49,485 | void (XsltRunConfiguration s) { // this prevents applyTo() call with unneeded sdk model update } | checkEditorData |
49,486 | boolean (final VirtualFile file, boolean showHiddenFiles) { if (file.isDirectory()) return true; if (!super.isFileVisible(file, showHiddenFiles)) return false; return ReadAction.compute(() -> { final PsiFile psiFile = psiManager.findFile(file); return psiFile != null && XsltSupport.isXsltFile(psiFile); }); } | isFileVisible |
49,487 | String (JTextField component) { final String text = component.getText(); final VirtualFile baseDir = project.getBaseDir(); return text.length() > 0 ? text : (baseDir != null ? baseDir.getPresentableUrl() : ""); } | getText |
49,488 | void (JTextField component, @NotNull String text) { component.setText(text); } | setText |
49,489 | void (@NotNull DocumentEvent e) { final String text = myXsltFile.getText(); final JComboBox comboBox = myXmlInputFile.getComboBox(); final Object oldXml = getXmlInputFile(); //NON-NLS if (text.length() != 0) { final ComboBoxModel model = comboBox.getModel(); boolean found = false; for (int i = 0; i < model.getSize(); i... | textChanged |
49,490 | String (JComboBox comboBox) { Object item = comboBox.getEditor().getItem(); if (item.toString().length() == 0) { final String text = projectDefaultAccessor.getText(myXsltFile.getChildComponent()); final VirtualFile file = VirtualFileManager.getInstance() .findFileByUrl(VfsUtil.pathToUrl(text.replace(File.separatorChar,... | getText |
49,491 | void (JComboBox comboBox, @NotNull String text) { comboBox.getEditor().setItem(text); } | setText |
49,492 | void (ItemEvent e) { updateOutputState(); } | itemStateChanged |
49,493 | void (@NotNull JList<? extends FileType> list, FileType value, int index, boolean selected, boolean hasFocus) { if (value == null) { setIcon(AllIcons.Actions.Cancel); setText(XPathBundle.message("label.disabled")); } else { super.customize(list, value, index, selected, hasFocus); } } | customize |
49,494 | Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { setForeground(null); setToolTipText(null); if (column == 0) { if (table.getModel().getValueAt(row, 1) == null) { setForeground(PlatformColors.BLUE); setToolTipText(XPathBundle.message("tooltip.no.value.set.for.parameter.... | getTableCellRendererComponent |
49,495 | void (AnActionButton button) { ((Editor.ParamTableModel)myParameters.getModel()).addParam(); } | run |
49,496 | void (AnActionButton button) { ((Editor.ParamTableModel)myParameters.getModel()).removeParam(myParameters.getSelectedRow()); } | run |
49,497 | void (ItemEvent e) { updateJdkState(); } | itemStateChanged |
49,498 | JComponent () { return anchor; } | getAnchor |
49,499 | void (@Nullable JComponent anchor) { this.anchor = anchor; myXSLTScriptFileLabel.setAnchor(anchor); myShowInConsole.setAnchor(anchor); } | setAnchor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.