Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
301,300 | void (Runnable runnable) { myOkAction = runnable; } | setOkAction |
301,301 | void () { super.doOKAction(); if (myOkAction != null) { myOkAction.run(); } } | doOKAction |
301,302 | String () { return "webservices.GenerateInstanceDocumentFromSchema"; } | getHelpId |
301,303 | void (@NotNull AnActionEvent e) { final VirtualFile file = e.getData(CommonDataKeys.VIRTUAL_FILE); final boolean enabled = isAcceptableFile(file); e.getPresentation().setEnabled(enabled); if (ActionPlaces.isPopupPlace(e.getPlace())) { e.getPresentation().setVisible(enabled); } } | update |
301,304 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
301,305 | void (@NotNull AnActionEvent e) { final Project project = e.getProject(); final VirtualFile file = e.getData(CommonDataKeys.VIRTUAL_FILE); final GenerateInstanceDocumentFromSchemaDialog dialog = new GenerateInstanceDocumentFromSchemaDialog(project, file); dialog.setOkAction(() -> doAction(project, dialog)); dialog.show... | actionPerformed |
301,306 | void (final Project project, final GenerateInstanceDocumentFromSchemaDialog dialog) { FileDocumentManager.getInstance().saveAllDocuments(); @NonNls List<String> parameters = new LinkedList<>(); final String url = dialog.getUrl().getText(); final VirtualFile relativeFile = VfsUtilCore.findRelativeFile(ExternalResourceMa... | doAction |
301,307 | void (String schemaFileName, byte[] schemaContent) { try { final String fullFileName = tempDir.getPath() + File.separatorChar + schemaFileName; FileUtils.saveStreamContentAsFile( fullFileName, new ByteArrayInputStream(schemaContent) ); } catch (IOException e) { throw new RuntimeException(e); } } | processSchema |
301,308 | boolean (VirtualFile virtualFile) { return virtualFile != null && "xsd".equalsIgnoreCase(virtualFile.getExtension()); } | isAcceptableFileForGenerateSchemaFromInstanceDocument |
301,309 | boolean (VirtualFile file) { return isAcceptableFileForGenerateSchemaFromInstanceDocument(file); } | isAcceptableFile |
301,310 | void (final Project myProject, final TextFieldWithBrowseButton wsdlUrl, final String[] _extensions, final @DialogTitle String selectFileDialogTitle, final boolean multipleFileSelection) { wsdlUrl.getButton().setToolTipText(XmlBundle.message("browse.button.tooltip")); wsdlUrl.getButton().addActionListener( new ActionLis... | configureBrowseButton |
301,311 | void (ActionEvent actionEvent) { final FileChooserDescriptor fileChooserDescriptor = new FileChooserDescriptor(true, false, false, false, false, multipleFileSelection) { private final List<String> extensions = Arrays.asList(_extensions); @Override public boolean isFileSelectable(@Nullable VirtualFile virtualFile) { if ... | actionPerformed |
301,312 | boolean (@Nullable VirtualFile virtualFile) { if (virtualFile == null) return false; return extensions.contains(virtualFile.getExtension()); } | isFileSelectable |
301,313 | boolean (VirtualFile file, boolean showHiddenFiles) { return super.isFileVisible(file, showHiddenFiles) && (file.isDirectory() || isFileSelectable(file)); } | isFileVisible |
301,314 | MyHost (@NotNull PsiFile file) { if (!(file instanceof XmlFile)) return null; final XmlDocument document = ((XmlFile)file).getDocument(); if (document == null) return null; XmlTag rootTag = document.getRootTag(); XmlNSDescriptor nsDescriptor = rootTag == null ? null : rootTag.getNSDescriptor(rootTag.getNamespace(), fal... | collectInformation |
301,315 | MyHost (MyHost collectedInfo) { return collectedInfo; } | doAnnotate |
301,316 | void (@NotNull PsiFile file, MyHost annotationResult, @NotNull AnnotationHolder holder) { annotationResult.apply(holder); } | apply |
301,317 | void (PsiElement context, @InspectionMessage String message, @NotNull ErrorType type) { messages.add(Trinity.create(context, message, type)); } | addMessage |
301,318 | void (final PsiElement context, final @InspectionMessage String message, @NotNull final Validator.ValidationHost.ErrorType type, AnnotationHolder myHolder, final IntentionAction @NotNull ... fixes) { if (message != null && !message.isEmpty()) { HighlightSeverity severity = type == Validator.ValidationHost.ErrorType.ERR... | addMessageWithFixes |
301,319 | void (final PsiElement token, final HighlightSeverity type, final @InspectionMessage String message, AnnotationHolder myHolder, IntentionAction @NotNull ... actions) { if (token != null) { AnnotationBuilder builder = myHolder.newAnnotation(type, message).range(token); for (IntentionAction action : actions) { builder = ... | addMessagesForTreeChild |
301,320 | LocalQuickFixAndIntentionActionOnPsiElement (@NotNull XmlTag tag, @NotNull String attrName, String @NotNull ... values) { return QuickFixes.EMPTY_FIX; } | insertRequiredAttributeFix |
301,321 | LocalQuickFix (@NotNull PsiElement element, @NotNull String namespacePrefix, @Nullable XmlToken token) { return QuickFixes.EMPTY_ACTION; } | createNSDeclarationIntentionFix |
301,322 | LocalQuickFixAndIntentionActionOnPsiElement (@NotNull XmlAttribute attribute) { return QuickFixes.EMPTY_FIX; } | addAttributeValueFix |
301,323 | String () { return XmlAnalysisBundle.message("xml.quickfix.remove.extra.closing.tag"); } | getFamilyName |
301,324 | String () { return getName(); } | getText |
301,325 | boolean (@NotNull final Project project, final Editor editor, final PsiFile file) { PsiElement psiElement = file.findElementAt(editor.getCaretModel().getOffset()); return psiElement instanceof XmlToken && (psiElement.getParent() instanceof XmlTag || psiElement.getParent() instanceof PsiErrorElement); } | isAvailable |
301,326 | boolean () { return true; } | startInWriteAction |
301,327 | Document (@NotNull PsiElement tagElement) { return tagElement.getContainingFile().getViewProvider().getDocument(); } | getDocument |
301,328 | void (@NotNull final Project project, @NotNull final ProblemDescriptor descriptor) { final PsiElement element = descriptor.getPsiElement(); if (!(element instanceof XmlToken)) return; doFix(element.getParent()); } | applyFix |
301,329 | String () { return "HtmlExtraClosingTag"; } | getShortName |
301,330 | void (@NotNull final XmlTag tag, @NotNull final ProblemsHolder holder, final boolean isOnTheFly) { final TextRange range = XmlTagUtil.getEndTagRange(tag); if (range != null && tag instanceof HtmlTag && HtmlUtil.isSingleHtmlTag(tag, true) && tag.getLanguage().isKindOf(HTMLLanguage.INSTANCE)) { holder.registerProblem(tag... | checkTag |
301,331 | boolean () { return true; } | isEnabledByDefault |
301,332 | void (@NotNull final XmlTag tag, @NotNull final ProblemsHolder holder, final boolean isOnTheFly) { // should be overridden } | checkTag |
301,333 | void (@NotNull final XmlAttribute attribute, @NotNull final ProblemsHolder holder, final boolean isOnTheFly) { // should be overridden } | checkAttribute |
301,334 | void (@NotNull final XmlAttributeValue attributeValue, @NotNull final ProblemsHolder holder, final boolean isOnTheFly) { // should be overridden } | checkAttributeValue |
301,335 | void (@NotNull final XmlText text, @NotNull final ProblemsHolder holder, final boolean isOnTheFly) { // should be overridden } | checkText |
301,336 | PsiElementVisitor (@NotNull final ProblemsHolder holder, final boolean isOnTheFly) { return new XmlElementVisitor() { @Override public void visitXmlToken(final @NotNull XmlToken token) { IElementType tokenType = token.getTokenType(); if (tokenType == XmlTokenType.XML_NAME || tokenType == XmlTokenType.XML_TAG_NAME) { Ps... | buildVisitor |
301,337 | void (final @NotNull XmlToken token) { IElementType tokenType = token.getTokenType(); if (tokenType == XmlTokenType.XML_NAME || tokenType == XmlTokenType.XML_TAG_NAME) { PsiElement element = token.getPrevSibling(); while (element instanceof PsiWhiteSpace) element = element.getPrevSibling(); if (element instanceof XmlTo... | visitXmlToken |
301,338 | void (@NotNull XmlText text) { checkText(text, holder, isOnTheFly); } | visitXmlText |
301,339 | void (final @NotNull XmlAttribute attribute) { checkAttribute(attribute, holder, isOnTheFly); } | visitXmlAttribute |
301,340 | void (@NotNull XmlAttributeValue value) { checkAttributeValue(value, holder, isOnTheFly); } | visitXmlAttributeValue |
301,341 | String () { return "XmlWrongRootElement"; } | getShortName |
301,342 | HighlightDisplayLevel () { return HighlightDisplayLevel.ERROR; } | getDefaultLevel |
301,343 | void (@NotNull final XmlTag tag, @NotNull final ProblemsHolder holder, final boolean isOnTheFly) { if (!(tag.getParent() instanceof XmlTag)) { final PsiFile psiFile = tag.getContainingFile(); if (!(psiFile instanceof XmlFile xmlFile)) { return; } final XmlDocument document = xmlFile.getDocument(); if (document == null)... | checkTag |
301,344 | String () { return XmlAnalysisBundle.message("xml.quickfix.change.root.element.to", myText); } | getFamilyName |
301,345 | void (@NotNull final Project project, @NotNull final ProblemDescriptor descriptor) { final XmlTag myTag = PsiTreeUtil.getParentOfType(descriptor.getPsiElement(), XmlTag.class); myTag.setName(myText); } | applyFix |
301,346 | String () { return myText; } | getName |
301,347 | String () { return XmlAnalysisBundle.message("html.quickfix.family"); } | getFamilyName |
301,348 | void (@NotNull final Project project, @NotNull final ProblemDescriptor descriptor) { final PsiElement element = descriptor.getPsiElement(); InspectionProfile profile = InspectionProjectProfileManager.getInstance(project).getCurrentProfile(); profile.modifyToolSettings(myInspectionKey, element, tool -> tool.addEntry(myN... | applyFix |
301,349 | boolean () { return false; } | startInWriteAction |
301,350 | IntentionPreviewInfo (@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor) { return generateXmlEntitiesInspectionDiffPreview(project, myInspectionKey.toString(), myName); } | generatePreview |
301,351 | IntentionPreviewInfo (@NotNull Project project, @NotNull String key, @NotNull String name) { InspectionProfile profile = InspectionProjectProfileManager.getInstance(project).getCurrentProfile(); final var tool = profile.getInspectionTool(key, project); if (tool != null && tool.getTool() instanceof XmlEntitiesInspection... | generateXmlEntitiesInspectionDiffPreview |
301,352 | String () { return XmlAnalysisBundle.message("html.quickfix.switch.to.html5"); } | getFamilyName |
301,353 | String () { return getFamilyName(); } | getText |
301,354 | boolean (@NotNull Project project, Editor editor, PsiFile file) { return true; } | isAvailable |
301,355 | boolean () { return true; } | startInWriteAction |
301,356 | void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { applyFix(project); } | applyFix |
301,357 | PsiElement (@NotNull PsiFile file) { return null; } | getElementToMakeWritable |
301,358 | void (Project project) { ExternalResourceManagerEx.getInstanceEx().setDefaultHtmlDoctype(Html5SchemaProvider.getHtml5SchemaLocation(), project); DaemonCodeAnalyzer.getInstance(project).restart(); } | applyFix |
301,359 | String () { return XmlAnalysisBundle.message("html.quickfix.rename.attribute.family"); } | getFamilyName |
301,360 | String () { return XmlAnalysisBundle.message("html.quickfix.rename.attribute.text", name); } | getName |
301,361 | void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { XmlAttribute attribute = PsiTreeUtil.getParentOfType(descriptor.getPsiElement(), XmlAttribute.class); if (attribute == null) return; attribute.setName(name); } | applyFix |
301,362 | void (@NotNull XmlTag tag, @NotNull ProblemsHolder holder, boolean isOnTheFly) { if (!(tag instanceof HtmlTag) || !XmlHighlightVisitor.shouldBeValidated(tag)) { return; } final PsiElement child = tag.getLastChild(); if (child instanceof PsiErrorElement) { return; } if (child != null && child.getNode().getElementType() ... | checkTag |
301,363 | String () { return XmlAnalysisBundle.message("html.quickfix.add.named.closing.tag", myName); } | getName |
301,364 | String () { return XmlAnalysisBundle.message("html.quickfix.add.closing.tag"); } | getFamilyName |
301,365 | void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement element = descriptor.getPsiElement(); if (!(element instanceof XmlToken)) { return; } final PsiElement parent = element.getParent(); if (!(parent instanceof XmlTag)) { return; } String text = parent.getText(); if (text.contains("\... | applyFix |
301,366 | String () { return getName(); } | getFamilyName |
301,367 | String () { return getName(); } | getText |
301,368 | boolean (@NotNull final Project project, final Editor editor, final PsiFile file) { return true; } | isAvailable |
301,369 | PsiElement (PsiElement psiElement, final boolean start) { PsiElement target = null; PsiElement parent = psiElement.getParent(); if (parent instanceof PsiErrorElement) { parent = parent.getParent(); } if (parent instanceof XmlTag) { if (start) { target = XmlTagUtil.getStartTagNameElement((XmlTag)parent); } else { target... | findOtherSide |
301,370 | boolean () { return true; } | startInWriteAction |
301,371 | String () { return myText; } | getName |
301,372 | String () { return XmlAnalysisBundle.message("html.quickfix.family"); } | getFamilyName |
301,373 | void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { InspectionProfile profile = InspectionProjectProfileManager.getInstance(project).getCurrentProfile(); profile.modifyToolSettings(myInspectionKey, descriptor.getPsiElement().getContainingFile(), entry -> { XmlEntitiesInspection xmlEntitiesInspectio... | applyFix |
301,374 | boolean () { return false; } | startInWriteAction |
301,375 | IntentionPreviewInfo (@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor) { return AddCustomHtmlElementIntentionAction.generateXmlEntitiesInspectionDiffPreview(project, myInspectionKey.toString(), myName); } | generatePreview |
301,376 | JDOMExternalizableStringList (@NotNull final String properties) { final JDOMExternalizableStringList result = new JDOMExternalizableStringList(); final StringTokenizer tokenizer = new StringTokenizer(properties, ","); while (tokenizer.hasMoreTokens()) { result.add(tokenizer.nextToken()); } return result; } | reparseProperties |
301,377 | void (@NotNull XmlAttribute attribute, @InspectionMessage String message, @NotNull ProblemsHolder holder, @NotNull LocalQuickFix @NotNull ... quickfixes) { final ASTNode node = attribute.getNode(); assert node != null; final ASTNode nameNode = XmlChildRole.ATTRIBUTE_NAME_FINDER.findChild(node); if (nameNode != null) { ... | registerProblemOnAttributeName |
301,378 | boolean (@NotNull String value) { return ContainerUtil.exists(myValues, val -> StringUtil.equalsIgnoreCase(val, value)); } | isCustomValue |
301,379 | void (@NotNull final String text) { final String s = text.trim(); if (!isCustomValue(s)) { myValues.add(s); } if (!isCustomValuesEnabled()) { myCustomValuesEnabled = true; } } | addEntry |
301,380 | boolean () { return myCustomValuesEnabled; } | isCustomValuesEnabled |
301,381 | String () { return StringUtil.join(myValues, ","); } | getAdditionalEntries |
301,382 | void (@NotNull final String values, Disposable disposable) { JDOMExternalizableStringList oldValue = myValues; myValues = reparseProperties(values); if (disposable != null) { Disposer.register(disposable, () -> { myValues = oldValue; }); } } | updateAdditionalEntries |
301,383 | boolean (XmlElementDescriptor descriptor) { return descriptor == null || descriptor instanceof AnyXmlElementDescriptor; } | isAbstractDescriptor |
301,384 | String () { return TAG_SHORT_NAME; } | getShortName |
301,385 | Logger () { return LOG; } | getLogger |
301,386 | void (@NotNull final XmlTag tag, @NotNull final ProblemsHolder holder, final boolean isOnTheFly) { if (!(tag instanceof HtmlTag) || !XmlHighlightVisitor.shouldBeValidated(tag)) { return; } XmlElementDescriptor descriptorFromContext = XmlUtil.getDescriptorFromContext(tag); PsiElement parent = tag.getParent(); XmlElement... | checkTag |
301,387 | LocalQuickFix (PsiFile file) { return null; } | createChangeTemplateDataFix |
301,388 | String () { return BOOLEAN_ATTRIBUTE_SHORT_NAME; } | getShortName |
301,389 | Logger () { return LOG; } | getLogger |
301,390 | void (@NotNull final XmlAttribute attribute, @NotNull final ProblemsHolder holder, final boolean isOnTheFly) { if (attribute.getValueElement() == null) { final XmlTag tag = attribute.getParent(); if (tag instanceof HtmlTag) { XmlElementDescriptor elementDescriptor = tag.getDescriptor(); if (elementDescriptor == null ||... | checkAttribute |
301,391 | void (@NotNull PsiElement psiElement, @NotNull AnnotationHolder holder) { if (psiElement instanceof XmlToken) { PsiElement parent = psiElement.getParent(); if (parent instanceof XmlTag tag) { XmlToken start = XmlTagUtil.getStartTagNameElement(tag); XmlToken endTagName = XmlTagUtil.getEndTagNameElement(tag); if (start =... | annotate |
301,392 | void (@NotNull AnnotationHolder holder, @NotNull XmlTag tag, @NotNull XmlToken start, @NotNull XmlToken end) { PsiElement context = tag.getContainingFile().getContext(); if (context != null) { ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(context.getLanguage()); if (parserDefinition... | registerProblemStart |
301,393 | void (@NotNull AnnotationHolder holder, @NotNull XmlTag tag, @NotNull XmlToken end) { PsiElement context = tag.getContainingFile().getContext(); if (context != null) { ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(context.getLanguage()); if (parserDefinition != null) { ASTNode conte... | registerProblemEnd |
301,394 | XmlToken (@Nullable PsiErrorElement element) { if (element == null) return null; ASTNode astNode = element.getNode(); if (astNode == null) return null; ASTNode current = astNode.getLastChildNode(); ASTNode prev = current; while (current != null) { IElementType elementType = prev.getElementType(); if ((elementType == Xm... | findEndTagName |
301,395 | String () { return ATTRIBUTE_SHORT_NAME; } | getShortName |
301,396 | Logger () { return LOG; } | getLogger |
301,397 | void (@NotNull final XmlAttribute attribute, @NotNull final ProblemsHolder holder, final boolean isOnTheFly) { final XmlTag tag = attribute.getParent(); if (tag instanceof HtmlTag) { XmlElementDescriptor elementDescriptor = tag.getDescriptor(); if (elementDescriptor == null || elementDescriptor instanceof AnyXmlElement... | checkAttribute |
301,398 | void (XmlTag tag, String name, ArrayList<? super LocalQuickFix> quickfixes) { XmlElementDescriptor descriptor = tag.getDescriptor(); if (descriptor == null) return; XmlAttributeDescriptor[] descriptors = descriptor.getAttributesDescriptors(tag); int initialSize = quickfixes.size(); for (XmlAttributeDescriptor attr : de... | addSimilarAttributesQuickFixes |
301,399 | void (XmlTag tag, String name, ArrayList<? super LocalQuickFix> quickfixes) { for (XmlAttributeRenameProvider renameProvider : XmlAttributeRenameProvider.EP_NAME.getExtensionList()) { quickfixes.addAll(renameProvider.getAttributeFixes(tag, name)); } } | addRenameXmlAttributeQuickFixes |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.