Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
62,600 | VirtualFilePattern () { return virtualFile().ofType(PropertiesFileType.INSTANCE).withName(StandardPatterns.string().endsWith(BUNDLE_PROPERTIES)); } | bundleFile |
62,601 | boolean (PsiElement property) { return PsiUtil.isPluginProject(property.getProject()); } | isPluginProject |
62,602 | boolean (String name) { return (name.startsWith(ACTION) || name.startsWith(GROUP)) && (name.endsWith(TEXT) || name.endsWith(DESCRIPTION)); } | isActionOrGroupKey |
62,603 | boolean (String name) { return name.startsWith(EXPORTABLE_PREFIX) && name.endsWith(EXPORTABLE_SUFFIX); } | isExportableKey |
62,604 | boolean (String name) { return name.startsWith(TOOLWINDOW_STRIPE_PREFIX); } | isToolwindowKey |
62,605 | boolean (String name) { return name.startsWith(PLUGIN) && name.endsWith(DESCRIPTION); } | isPluginDescriptionKey |
62,606 | boolean (String name) { return name.startsWith(ADVANCED_SETTING); } | isAdvancedSettingKey |
62,607 | Collection<IdeaPlugin> () { return ContainerUtil.filter(DescriptorUtil.getPlugins(getElement().getProject(), getElement().getResolveScope()), plugin -> plugin.hasRealPluginId() && Boolean.TRUE != plugin.getImplementationDetail().getValue()); } | getRelevantPlugins |
62,608 | String () { return "com.intellij.toolWindow"; } | getExtensionPointFqn |
62,609 | void (PairProcessor<PsiClass, String> processor) { final Project project = myElement.getProject(); final GlobalSearchScope searchScope = PsiUtil.isIdeaProject(project) ? GlobalSearchScopesCore.projectProductionScope(project) : getElement().getResolveScope(); final PsiClass statePsiClass = JavaPsiFacade.getInstance(proj... | processStateAnnoClasses |
62,610 | boolean (@NotNull Property property) { PsiFile file = property.getContainingFile(); String fileName = file.getName(); if (!fileName.endsWith(BUNDLE_PROPERTIES)) return false; String name = property.getName(); if (name == null) return false; if (isActionOrGroupKey(name) || isExportableKey(name) || isToolwindowKey(name) ... | isUsed |
62,611 | boolean (String name) { return name.startsWith(ICON_TOOLTIP_PREFIX) && name.endsWith(ICON_TOOLTIP_SUFFIX); } | isIconTooltipKey |
62,612 | void (@NotNull PsiReferenceRegistrar registrar) { UastReferenceRegistrar .registerUastReferenceProvider(registrar, injectionHostUExpression() .sourcePsiFilter(psi -> PsiUtil.isPluginProject(psi.getProject())) .methodCallParameter(0, psiMethod() .withName(string().oneOf( "getBoolean", "getInt", "getString", "getEnum", "... | registerReferenceProviders |
62,613 | String () { return "com.intellij.advancedSetting"; } | getExtensionPointFqn |
62,614 | String () { return DevKitBundle.message("message.bundle.convert.advanced.setting.id.cannot.resolve", getValue()); } | getUnresolvedMessagePattern |
62,615 | void (@NotNull PsiReferenceRegistrar registrar) { registerKeyProviders(registrar); registerBundleNameProviders(registrar); registerLiveTemplateSetXml(registrar); } | registerReferenceProviders |
62,616 | void (PsiReferenceRegistrar registrar) { registrar.registerReferenceProvider(extensionAttributePattern(new String[]{"key", "groupKey"}, Holder.CONFIGURABLE_EP, Holder.INSPECTION_EP, Holder.NOTIFICATION_GROUP_EP), new PropertyKeyReferenceProvider(false, "groupKey", "groupBundle")); registrar.registerReferenceProvider(ne... | registerKeyProviders |
62,617 | String () { return OptionsBundle.BUNDLE; } | getFallbackBundleName |
62,618 | String () { return OptionsBundle.BUNDLE; } | getFallbackBundleName |
62,619 | String (String keyValue) { return MessageBundleReferenceContributor.ADVANCED_SETTING + keyValue; } | getFinalKeyValue |
62,620 | String () { return ApplicationBundle.BUNDLE; } | getFallbackBundleName |
62,621 | String () { return ApplicationBundle.BUNDLE; } | getFallbackBundleName |
62,622 | String () { return ApplicationBundle.BUNDLE; } | getFallbackBundleName |
62,623 | String () { return ApplicationBundle.BUNDLE; } | getFallbackBundleName |
62,624 | String () { return ApplicationBundle.BUNDLE; } | getFallbackBundleName |
62,625 | void (PsiReferenceRegistrar registrar) { final PsiReferenceProvider bundleReferenceProvider = new ResourceBundlePsiReferenceProvider(); final XmlTagPattern.Capture resourceBundleTagPattern = xmlTag().withLocalName("resource-bundle"). withParent(DomPatterns.tagWithDom(IdeaPlugin.TAG_NAME, IdeaPlugin.class)); registrar.r... | registerBundleNameProviders |
62,626 | XmlAttributeValuePattern (@NonNls String[] attributeNames, @NonNls String... extensionPointClassNames) { return xmlAttributeValue(attributeNames) .inFile(DomPatterns.inDomFile(IdeaPlugin.class)) .withSuperParent(2, extensionPointCapture(extensionPointClassNames)); } | extensionAttributePattern |
62,627 | XmlAttributeValuePattern (@NonNls String[] attributeNames, @NonNls String... extensionPointClassNames) { return xmlAttributeValue(attributeNames) .inFile(DomPatterns.inDomFile(IdeaPlugin.class)) .withSuperParent(3, extensionPointCapture(extensionPointClassNames)); } | nestedExtensionAttributePattern |
62,628 | XmlAttributeValuePattern (@NonNls String tagName, @NonNls String[] attributeNames, @NonNls String... extensionPointClassNames) { return xmlAttributeValue(attributeNames) .inFile(DomPatterns.inDomFile(IdeaPlugin.class)) .withSuperParent(2, xmlTag().withLocalName(tagName)) .withSuperParent(3, extensionPointCapture(extens... | nestedTagExtensionAttributePattern |
62,629 | boolean (@NotNull Extension extension, ProcessingContext context) { final ExtensionPoint extensionPoint = extension.getExtensionPoint(); if (extensionPoint == null) return false; final PsiClass beanClass = extensionPoint.getBeanClass().getValue(); for (String name : extensionPointClassNames) { if (InheritanceUtil.isInh... | accepts |
62,630 | void (PsiReferenceRegistrar registrar) { final XmlTagPattern.Capture templateTagCapture = xmlTag().withLocalName("template") .withParent(xmlTag().withLocalName("templateSet")) .with(new PatternCondition<>("pluginProject") { @Override public boolean accepts(@NotNull XmlTag tag, ProcessingContext context) { return PsiUti... | registerLiveTemplateSetXml |
62,631 | boolean (@NotNull XmlTag tag, ProcessingContext context) { return PsiUtil.isPluginProject(tag.getProject()); } | accepts |
62,632 | boolean (@NotNull PsiElement target) { return PropertyReferenceBase.isPropertyPsi(target); } | acceptsTarget |
62,633 | String () { return null; } | getFallbackBundleName |
62,634 | String (String keyValue) { return keyValue; } | getFinalKeyValue |
62,635 | PsiReference[] (XmlTag element) { final XmlTag parent = PsiTreeUtil.getParentOfType(element, XmlTag.class); if (parent == null) return PsiReference.EMPTY_ARRAY; final XmlTag bundleNameTag = parent.findFirstSubTag(myFallbackBundleName); String bundleName = bundleNameTag != null ? bundleNameTag.getValue().getTrimmedText(... | getTagReferences |
62,636 | List<PropertiesFile> () { return retrievePropertyFilesByBundleName(myBundleName, getElement()); } | getPropertiesFiles |
62,637 | List<PropertiesFile> (String bundleName, PsiElement element) { PsiElement psiElement = CompletionUtil.getOriginalOrSelf(element); final String bundleNameToUse = ObjectUtils.chooseNotNull(bundleName == null ? getPluginResourceBundle(psiElement) : bundleName, myFallbackBundleName); if (bundleNameToUse == null) { return C... | retrievePropertyFilesByBundleName |
62,638 | String (PsiElement element) { final DomElement domElement = DomUtil.getDomElement(element); if (domElement == null) return null; final DomElement rootElement = DomUtil.getFileElement(domElement).getRootElement(); if (!(rootElement instanceof IdeaPlugin plugin)) return null; final String resourceBundle = plugin.getResou... | getPluginResourceBundle |
62,639 | IdeaPlugin (PsiElement element) { final VirtualFile[] includingFiles = FileIncludeManager.getManager(element.getProject()).getIncludingFiles(element.getContainingFile().getVirtualFile(), false); if (includingFiles.length != 1) return null; final PsiFile psiFile = element.getManager().findFile(includingFiles[0]); if (!(... | getSingleIncludingDescriptor |
62,640 | boolean (@NotNull ReferencesSearch.SearchParameters queryParameters, @NotNull final Processor<? super PsiReference> consumer) { final PsiElement file = queryParameters.getElementToSearch(); if (file instanceof PsiBinaryFile) { final Module module = ReadAction.compute(() -> ModuleUtilCore.findModuleForPsiElement(file));... | execute |
62,641 | String (VirtualFile image, Module module) { final String path = ModuleRootManager.getInstance(module).getSourceRoots()[0].getPath(); return "/" + FileUtil.getRelativePath(path, image.getPath(), '/'); } | getPathToImage |
62,642 | boolean (Module module) { return module != null && (ICONS_MODULE.equals(module.getName()) || PLATFORM_ICONS_MODULE.equals(module.getName())) && ModuleRootManager.getInstance(module).getSourceRoots().length == 1; } | isIconsModule |
62,643 | boolean (VirtualFile image) { final FileTypeManager mgr = FileTypeManager.getInstance(); return image != null && mgr.getFileTypeByFile(image) == mgr.getFileTypeByExtension("png"); } | isImage |
62,644 | PsiField (@NonNls @Nullable String path, PsiElement element) { if (path == null) return null; @NonNls List<String> pathElements = StringUtil.split(path, "."); if (pathElements.size() < 2) return null; final int iconsClassNameIdx = ContainerUtil.lastIndexOf(pathElements, s -> s.endsWith(ICONS_CLASSNAME_SUFFIX)); if (ico... | resolveIconPath |
62,645 | PsiClass (Module module, @NonNls @NotNull String iconClass, boolean isQualifiedFqn) { final String adjustedIconClassFqn; if (isQualifiedFqn) { adjustedIconClassFqn = iconClass; } else { adjustedIconClassFqn = ALL_ICONS_NAME.equals(iconClass) ? ALL_ICONS_FQN : ICONS_PACKAGE_PREFIX + iconClass; } GlobalSearchScope iconSe... | findIconClass |
62,646 | void (List<LookupElement> variants, @Nullable PsiClass iconClass, boolean useFqn, List<PsiClass> containingClasses) { if (iconClass == null) return; String classNamePrefix; if (useFqn) { classNamePrefix = containingClasses.isEmpty() ? iconClass.getQualifiedName() : ContainerUtil.getLastItem(containingClasses).getQualif... | addIconVariants |
62,647 | String () { return DevKitBundle.message("inspections.presentation.cannot.resolve.icon"); } | getUnresolvedMessagePattern |
62,648 | void (LookupElement element, LookupElementPresentation presentation) { final PsiField field = ObjectUtils.tryCast(element.getPsiElement(), PsiField.class); assert field != null; final String iconPath = element.getLookupString(); presentation.setItemText(iconPath); presentation.setStrikeout(field.isDeprecated()); final ... | renderElement |
62,649 | Icon (PsiField field, @NotNull String iconPath) { UField uField = UastContextKt.toUElement(field, UField.class); assert uField != null; UExpression expression = uField.getUastInitializer(); if (expression == null) { return IconLoader.findIcon(iconPath, IconPsiReferenceBase.class, false, false); } ProjectIconsAccessor i... | resolveIcon |
62,650 | void (@NotNull PsiReferenceRegistrar registrar) { UastReferenceRegistrar .registerUastReferenceProvider( registrar, UastPatterns.injectionHostUExpression().inCall(UastPatterns.callExpression()), new UastInjectionHostReferenceProvider() { @Override public boolean acceptsTarget(@NotNull PsiElement target) { return target... | registerReferenceProviders |
62,651 | boolean (@NotNull PsiElement target) { return target instanceof PsiFileSystemItem; } | acceptsTarget |
62,652 | String (@NotNull UExpression expression, @NotNull UCallExpression methodCallExpression) { Object value = expression.evaluate(); if (!(value instanceof String relativePath)) { return null; } PsiMethod testMethod = UElementKt.getAsJavaPsiElement(UastUtils.getParentOfType(methodCallExpression, UMethod.class), PsiMethod.cl... | getTestDataDirectory |
62,653 | void (@NotNull PsiReferenceRegistrar registrar) { UastReferenceRegistrar .registerUastReferenceProvider(registrar, injectionHostUExpression() .sourcePsiFilter(psi -> PsiUtil.isPluginProject(psi.getProject())) .methodCallParameter(0, psiMethod() .withName(string().oneOf("isFeatureEnabled", "setFeatureEnabled")) .defined... | registerReferenceProviders |
62,654 | String () { return "com.intellij.experimentalFeature"; } | getExtensionPointFqn |
62,655 | String () { return DevKitBundle.message("code.convert.experimental.feature.id.cannot.resolve", getValue()); } | getUnresolvedMessagePattern |
62,656 | String (Extension extension) { final DomFixedChildDescription description = extension.getGenericInfo().getFixedChildDescription("description"); if (description == null) return null; final DomElement element = ContainerUtil.getFirstItem(description.getValues(extension)); return element instanceof GenericDomValue ? ((Gen... | getDescription |
62,657 | void (@NotNull PsiReferenceRegistrar registrar) { registerForIconXmlAttribute(registrar); } | registerReferenceProviders |
62,658 | void (@NotNull PsiReferenceRegistrar registrar) { registrar.registerReferenceProvider(XmlPatterns.xmlAttributeValue().withLocalName("icon"), new PsiReferenceProvider() { @Override public PsiReference @NotNull [] getReferencesByElement(@NotNull final PsiElement element, @NotNull ProcessingContext context) { if (!PsiUtil... | registerForIconXmlAttribute |
62,659 | PsiElement () { String value = ((XmlAttributeValue)element).getValue(); if (value.startsWith("/")) { FileReference lastRef = new FileReferenceSet(element).getLastReference(); return lastRef != null ? lastRef.resolve() : null; } return resolveIconPath(value, element); } | resolve |
62,660 | PsiElement (PsiElement element, Function<FileReference, PsiElement> callback) { if (element instanceof PsiFile) { FileReference lastRef = new FileReferenceSet(element).getLastReference(); if (lastRef != null) { return callback.apply(lastRef); } } return null; } | handleFile |
62,661 | PsiElement (@NonNls String fqn, @NonNls String newName, @NonNls String pckg) { XmlAttribute parent = (XmlAttribute)getElement().getParent(); parent.setValue(fqn.substring(pckg.length()) + "." + newName); return parent.getValueElement(); } | replace |
62,662 | void (@NotNull PsiReferenceRegistrar registrar) { PsiClassPattern keyedExtensionCollectorInheritor = psiClass().inheritorOf(false, KeyedExtensionCollector.class.getName()); registerUastReferenceProvider( registrar, injectionHostUExpression() .sourcePsiFilter(psi -> PsiUtil.isPluginProject(psi.getProject())) .andOr( uEx... | registerReferenceProviders |
62,663 | String () { return DevKitBundle.message("code.convert.extension.point.declaration", getValue()); } | getUnresolvedMessagePattern |
62,664 | String () { return DevKitBundle.message("line.marker.related.property.description"); } | getName |
62,665 | Icon () { return DevKitIcons.Gutter.Properties; } | getIcon |
62,666 | void (@NotNull PsiElement leaf, @NotNull Collection<? super RelatedItemLineMarkerInfo<?>> result) { if (!(leaf instanceof XmlToken)) return; if (leaf.getNode().getElementType() != XmlTokenType.XML_NAME) return; PsiElement prev = PsiTreeUtil.getPrevSiblingOfType(leaf, XmlToken.class); if (prev == null || prev.getNode().... | collectNavigationMarkers |
62,667 | void (@NotNull PsiElement leaf, @NotNull Collection<? super RelatedItemLineMarkerInfo<?>> result, DomElement domElement, GenericDomValue<?> referenceElement) { if (!DomUtil.hasXml(referenceElement)) return; final XmlElement valueXmlElement = DomUtil.getValueElement(referenceElement); if (valueXmlElement == null) return... | createLineMarker |
62,668 | void (@NotNull PsiReferenceRegistrar registrar) { registerForPresentationAnnotation(registrar); registerForIconLoaderMethods(registrar); } | registerReferenceProviders |
62,669 | void (@NotNull PsiReferenceRegistrar registrar) { PsiMethodPattern method = psiMethod().withName("load").definedInClass(ALL_ICONS_FQN); PsiJavaElementPattern.Capture<PsiLiteralExpression> findGetIconPattern = literalExpression().and(psiExpression().methodCallParameter(0, method)); registrar.registerReferenceProvider(fi... | registerForIconLoaderMethods |
62,670 | Collection<PsiFileSystemItem> () { Module iconsModule = ModuleManager.getInstance(element.getProject()).findModuleByName(PLATFORM_ICONS_MODULE); if (iconsModule == null) { iconsModule = ModuleManager.getInstance(element.getProject()).findModuleByName(ICONS_MODULE); } if (iconsModule == null) { return super.getExtraCont... | getExtraContexts |
62,671 | void (@NotNull PsiReferenceRegistrar registrar) { UastReferenceRegistrar.registerUastReferenceProvider( registrar, UastPatterns.injectionHostUExpression() .sourcePsiFilter(psi -> PsiUtil.isPluginProject(psi.getProject())) .annotationParam(Presentation.class.getName(), "icon"), UastReferenceRegistrar.uastInjectionHostRe... | registerForPresentationAnnotation |
62,672 | PsiElement () { String value = UastUtils.evaluateString(uElement); return resolveIconPath(value, referencePsiElement); } | resolve |
62,673 | PsiElement (@NonNls String newElementName, @NonNls String fqn, @NonNls String packageName) { String newValue = fqn.substring(packageName.length()) + "." + newElementName; return ElementManipulators.handleContentChange(getElement(), newValue); } | replace |
62,674 | void (@NotNull PsiField field, @NotNull String attributeName, RequiredFlag required) { appendFieldBindingText(field, attributeName, required); } | visitAttribute |
62,675 | void (@NotNull PsiField field, @NotNull String tagName, RequiredFlag required) { visitAttribute(field, "<" + tagName + ">", required); } | visitTagOrProperty |
62,676 | void (@NotNull PsiField field, @Nullable String tagName, @NotNull PsiAnnotation collectionAnnotation, RequiredFlag required) { visitAttribute(field, "<" + tagName + ">...", required); } | visitXCollection |
62,677 | void (@NotNull PsiField field, @NotNull @NlsSafe String displayName, RequiredFlag required) { HtmlChunk hyperLink = createLink(JavaDocUtil.getReferenceText(field.getProject(), field), displayName); final String typeText = field.getType().getPresentableText(); String requiredText = ""; if (required == RequiredFlag.REQUI... | appendFieldBindingText |
62,678 | PsiElement (PsiManager psiManager, String link, PsiElement context) { return JavaDocUtil.findReferenceTarget(psiManager, link, context); } | getDocumentationElementForLink |
62,679 | HtmlChunk (@Nullable PsiClass epClass) { if (epClass == null) return HtmlChunk.empty(); return createLink(epClass.getQualifiedName(), epClass.getName()); } | generateClassLink |
62,680 | HtmlChunk (String refText, @Nls String label) { HtmlChunk text = HtmlChunk.text(label).wrapWith("code"); String link = DocumentationManagerProtocol.PSI_ELEMENT_PROTOCOL + refText; return HtmlChunk.link(link, text); } | createLink |
62,681 | HtmlChunk (@NotNull PsiElement element) { final DocumentationProvider documentationProvider = DocumentationManager.getProviderFromElement(element); return HtmlChunk.raw(StringUtil.notNullize(documentationProvider.generateDoc(element, null))); } | generateClassDoc |
62,682 | HtmlChunk (HtmlChunk sectionName, @Nls String sectionContent) { HtmlChunk headerCell = DocumentationMarkup.SECTION_HEADER_CELL.child(sectionName.wrapWith("p")); HtmlChunk contentCell = DocumentationMarkup.SECTION_CONTENT_CELL.addText(sectionContent); return HtmlChunk.tag("tr").children(headerCell, contentCell); } | createSectionRow |
62,683 | ExtensionPoint (PsiElement element) { if ((element instanceof PomTargetPsiElement || element instanceof XmlTag) && DescriptorUtil.isPluginXml(element.getContainingFile())) { return ExtensionPoint.resolveFromDeclaration(element); } return null; } | findExtensionPoint |
62,684 | void (BindingVisitor visitor) { boolean hasClassLevelPropertyAnnotation = hasClassLevelPropertyAnnotation(); for (PsiField field : myPsiClass.getAllFields()) { if (field.hasModifierProperty(PsiModifier.STATIC)) continue; final PsiMethod getter = PropertyUtilBase.findGetterForField(field); final PsiMethod setter = Prope... | visit |
62,685 | boolean () { final PsiAnnotation propertyAnnotation = myPsiClass.getAnnotation(Property.class.getName()); if (propertyAnnotation == null) return false; final PsiNameValuePair style = AnnotationUtil.findDeclaredAttribute(propertyAnnotation, "style"); if (style == null) return false; final PsiReferenceExpression referenc... | hasClassLevelPropertyAnnotation |
62,686 | void (@NotNull CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet result) { String prefix = getCompletionPrefix(parameters); if (!shouldProposeKeywordsAfterPrefix(prefix)) { return; } if (shouldProposeFirstLastKeywordsAfterPrefix(prefix)) { result.addElement(KEYWORD_VARIAN... | addCompletions |
62,687 | boolean (@NotNull XmlTag tag, ProcessingContext context) { if (!PsiUtil.isPluginXmlPsiElement(tag)) { return false; } DomManager domManager = DomManager.getDomManager(tag.getProject()); return domManager.getDomElement(tag) instanceof Extension; } | accepts |
62,688 | String (@NotNull CompletionParameters parameters) { XmlElement position = (XmlElement)parameters.getPosition(); int startOffset = position.getTextOffset(); int endOffset = parameters.getOffset(); Document document = parameters.getEditor().getDocument(); return document.getText(new TextRange(startOffset, endOffset)); } | getCompletionPrefix |
62,689 | String (@NotNull String prefix) { String lastPart = StringUtil.substringAfterLast(prefix, String.valueOf(LoadingOrder.ORDER_RULE_SEPARATOR)); if (lastPart == null) { lastPart = prefix; } lastPart = StringUtil.trimLeading(lastPart); return lastPart; } | getPrefixLastPart |
62,690 | boolean (@NotNull String prefix) { return !getPrefixLastPart(prefix).contains(" "); // propose keywords if there's only a single word (or empty prefix) } | shouldProposeKeywordsAfterPrefix |
62,691 | boolean (@NotNull String prefix) { String[] parts = prefix.split(String.valueOf(LoadingOrder.ORDER_RULE_SEPARATOR)); for (String part : parts) { if (part.trim().equalsIgnoreCase(LoadingOrder.FIRST_STR) || part.trim().equalsIgnoreCase(LoadingOrder.LAST_STR)) { return false; } } return true; } | shouldProposeFirstLastKeywordsAfterPrefix |
62,692 | void (@NotNull CompletionParameters parameters, @NotNull CompletionResultSet result) { String prefix = result.getPrefixMatcher().getPrefix(); if (prefix.endsWith(String.valueOf(LoadingOrder.ORDER_RULE_SEPARATOR))) { result = result.withPrefixMatcher(""); // keywords should be proposed after comma even without space } e... | fillCompletionVariants |
62,693 | List<String> () { List<String> args = new ArrayList<>(); if (Registry.is("tmh.generate.assertions.for.annotations")) { args.add("-D" + INSTRUMENT_ANNOTATIONS_PROPERTY + "=true"); } if (Registry.is("tmh.generate.line.numbers")) { args.add("-D" + GENERATE_LINE_NUMBERS_PROPERTY + "=true"); } return args; } | getVMArguments |
62,694 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
62,695 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(e.getProject() != null && myHighlightingDataClass.getValue() != null); } | update |
62,696 | void (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project == null) return; PsiFile psiFile = e.getData(CommonDataKeys.PSI_FILE); if (psiFile != null) { processFile(psiFile); } else { processDirectory(project); } } | actionPerformed |
62,697 | void (PsiFile psiFile) { VirtualFile file = psiFile.getVirtualFile(); if (file != null) { Document document = FileDocumentManager.getInstance().getDocument(file); if (document != null) { stripHighlightingData(document); } } } | processFile |
62,698 | void (Project project) { FileChooserDescriptor descriptor = FileChooserDescriptorFactory.createSingleFolderDescriptor(); descriptor.setTitle(DevKitBundle.message("action.DumpCleanTestData.file.chooser.title")); descriptor.setDescription(DevKitBundle.message("action.DumpCleanTestData.file.chooser.source.description")); ... | processDirectory |
62,699 | void (Document document) { Class<?> klass = myHighlightingDataClass.getValue(); if (klass != null) { try { MethodHandles.Lookup lookup = MethodHandles.publicLookup(); MethodHandle ctor = lookup.findConstructor(klass, MethodType.methodType(void.class, Document.class, boolean.class, boolean.class)); Object instance = cto... | stripHighlightingData |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.