Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
62,800 | List<SearchScope> (@NotNull Project project, @NotNull DataContext dataContext) { if (!PsiUtil.isIdeaProject(project)) return Collections.emptyList(); GlobalSearchScope scope = GlobalSearchScope.filesScope(project, () -> DomService.getInstance().getDomFileCandidates(IdeaPlugin.class, GlobalSearchScopesCore.projectProduc... | getSearchScopes |
62,801 | String () { return DevKitBundle.message("plugin.xml.scopes.production.display.name"); } | getDisplayName |
62,802 | Icon () { return AllIcons.Nodes.Plugin; } | getIcon |
62,803 | DataExternalizer<Void> () { return VoidDataExternalizer.INSTANCE; } | getValueExternalizer |
62,804 | KeyDescriptor<String> () { return EnumeratorStringDescriptor.INSTANCE; } | getKeyDescriptor |
62,805 | int () { return 2; } | getVersion |
62,806 | Collection<VirtualFile> (@NotNull Project project, @NotNull String idOrModule) { GlobalSearchScope scope = GlobalSearchScopesCore.projectProductionScope(project) .union(LibraryScopeCache.getInstance(project).getLibrariesOnlyScope()); return FileBasedIndex.getInstance().getContainingFiles(NAME, idOrModule, scope); } | getFiles |
62,807 | List<IdeaPlugin> (@NotNull DomElement place, @NotNull String idOrModule) { Project project = place.getManager().getProject(); Collection<VirtualFile> vFiles = getFiles(project, idOrModule); return JBIterable.from(vFiles) .map(PsiManager.getInstance(project)::findFile) .filter(XmlFile.class) .map(DescriptorUtil::getIdea... | findPlugins |
62,808 | DataExternalizer<IntList> () { return myValueExternalizer; } | getValueExternalizer |
62,809 | boolean (Map<String, IntList> map, GenericAttributeValue<PsiClass> value, int offset) { if (!DomUtil.hasXml(value)) return false; map.get(value.getStringValue()).add(offset); return true; } | addToIndex |
62,810 | KeyDescriptor<String> () { return EnumeratorStringDescriptor.INSTANCE; } | getKeyDescriptor |
62,811 | int () { return 1; } | getVersion |
62,812 | List<ExtensionPoint> (Project project, PsiClass psiClass, GlobalSearchScope scope) { final String key = ClassUtil.getJVMClassName(psiClass); if (key == null) return Collections.emptyList(); List<ExtensionPoint> result = new SmartList<>(); final PsiManager psiManager = PsiManager.getInstance(project); final DomManager d... | getExtensionPointsByClass |
62,813 | void (IdeaPlugin ideaPlugin) { processActions(ideaPlugin); processComponents(RegistrationEntry.RegistrationType.APPLICATION_COMPONENT, ideaPlugin.getApplicationComponents(), ApplicationComponents::getComponents); processComponents(RegistrationEntry.RegistrationType.PROJECT_COMPONENT, ideaPlugin.getProjectComponents(), ... | process |
62,814 | void (@NotNull RegistrationEntry.RegistrationType listenerType, @NotNull List<? extends Listeners> listenerContainer) { processElements(listenerType, listenerContainer, Listeners::getListeners, Listeners.Listener::getListenerClassName ); processElements(RegistrationEntry.RegistrationType.LISTENER_TOPIC, listenerContain... | processListeners |
62,815 | void (IdeaPlugin ideaPlugin) { for (Actions actions : ideaPlugin.getActions()) { processActionContainer(actions); } } | processActions |
62,816 | void (ActionContainer actionContainer) { for (Action action : actionContainer.getActions()) { addEntry(action, action.getClazz(), RegistrationEntry.RegistrationType.ACTION); addIdEntry(action, action.getId(), RegistrationEntry.RegistrationType.ACTION_ID); } for (Group group : actionContainer.getGroups()) { addEntry(gro... | processActionContainer |
62,817 | void (DomElement domElement, GenericAttributeValue<String> idValue, RegistrationEntry.RegistrationType type) { if (!DomUtil.hasXml(domElement)) return; String id = idValue.getStringValue(); if (StringUtil.isEmptyOrSpaces(id)) return; storeEntry(id, domElement, type); } | addIdEntry |
62,818 | void (DomElement domElement, GenericDomValue<PsiClass> clazzValue, RegistrationEntry.RegistrationType type) { if (!DomUtil.hasXml(clazzValue)) return; final String clazz = clazzValue.getStringValue(); if (StringUtil.isEmptyOrSpaces(clazz)) return; final String className = clazz.replace('$', '.'); storeEntry(className, ... | addEntry |
62,819 | void (String key, DomElement domElement, RegistrationEntry.RegistrationType type) { List<RegistrationEntry> entries = myValueMap.get(key); final XmlElement xmlElement = domElement.getXmlElement(); assert xmlElement != null : domElement; RegistrationEntry entry = new RegistrationEntry(type, xmlElement.getTextOffset()); ... | storeEntry |
62,820 | KeyDescriptor<String> () { return EnumeratorStringDescriptor.INSTANCE; } | getKeyDescriptor |
62,821 | DataExternalizer<Void> () { return VoidDataExternalizer.INSTANCE; } | getValueExternalizer |
62,822 | int () { return 5; } | getVersion |
62,823 | Set<String> (Project project, Set<VirtualFile> files) { Set<String> ids = new HashSet<>(); for (VirtualFile file : files) { final Set<String> keys = FileBasedIndex.getInstance().getFileData(NAME, file, project).keySet(); final String pluginId = findPluginId(keys); ContainerUtil.addIfNotNull(ids, pluginId); ids.addAll(C... | getPluginAndDependsIds |
62,824 | String (Project project, VirtualFile file) { final Set<String> keys = FileBasedIndex.getInstance().getFileData(NAME, file, project).keySet(); return findPluginId(keys); } | getPluginId |
62,825 | String (Set<String> data) { final String pluginIdEntry = ContainerUtil.find(data, s -> StringUtil.startsWith(s, PLUGIN_ID_KEY_PREFIX)); return pluginIdEntry == null ? null : StringUtil.trimStart(pluginIdEntry, PLUGIN_ID_KEY_PREFIX); } | findPluginId |
62,826 | Collection<VirtualFile> (Project project, VirtualFile file) { final Collection<VirtualFile> dependsFiles = FileBasedIndex.getInstance().getContainingFiles(NAME, getDependsIndexingKey(file.getName()), GlobalSearchScopesCore.projectProductionScope(project)); final Collection<VirtualFile> contentFiles = FileBasedIndex.get... | findDependsTo |
62,827 | String (@NotNull String filename) { return FILENAME_KEY_PREFIX + filename; } | getDependsIndexingKey |
62,828 | String (@NotNull String value) { return CONTENT_KEY_PREFIX + value; } | getContentIndexingKey |
62,829 | KeyDescriptor<String> () { return EnumeratorStringDescriptor.INSTANCE; } | getKeyDescriptor |
62,830 | DataExternalizer<List<RegistrationEntry>> () { return myValueExternalizer; } | getValueExternalizer |
62,831 | int () { return INDEX_VERSION; } | getVersion |
62,832 | boolean (PsiClass psiClass, GlobalSearchScope scope) { return isRegisteredClass(psiClass, scope, null); } | isRegisteredClass |
62,833 | boolean (PsiClass psiClass, GlobalSearchScope scope) { return isRegisteredClass(psiClass, scope, RegistrationType.COMPONENT_INTERFACE); } | isRegisteredComponentInterface |
62,834 | boolean (PsiClass psiClass, GlobalSearchScope scope) { return isRegisteredClass(psiClass, scope, RegistrationType.APPLICATION_COMPONENT); } | isRegisteredApplicationComponent |
62,835 | boolean (PsiClass psiClass, GlobalSearchScope scope) { return isRegisteredClass(psiClass, scope, RegistrationType.PROJECT_COMPONENT); } | isRegisteredProjectComponent |
62,836 | boolean (PsiClass psiClass, GlobalSearchScope scope) { return isRegisteredClass(psiClass, scope, RegistrationType.MODULE_COMPONENT); } | isRegisteredModuleComponent |
62,837 | boolean (PsiClass psiClass, GlobalSearchScope scope) { return isRegisteredClass(psiClass, scope, RegistrationType.ACTION); } | isRegisteredActionOrGroup |
62,838 | boolean (PsiClass psiClass, GlobalSearchScope scope) { return isRegisteredClass(psiClass, scope, RegistrationType.LISTENER_TOPIC); } | isRegisteredListenerTopic |
62,839 | boolean (Project project, PsiClass componentInterfaceOrImplementationClass, GlobalSearchScope scope, Processor<? extends Component> processor) { return processAll(project, componentInterfaceOrImplementationClass, scope, EnumSet.of(RegistrationType.APPLICATION_COMPONENT, RegistrationType.PROJECT_COMPONENT, RegistrationT... | processComponent |
62,840 | boolean (@NotNull Project project, PsiClass listenerClass, GlobalSearchScope scope, Processor<? extends Listeners.Listener> processor) { return processAll(project, listenerClass, scope, EnumSet.of(RegistrationType.APPLICATION_LISTENER, RegistrationType.PROJECT_LISTENER), processor); } | processListener |
62,841 | boolean (@NotNull Project project, PsiClass topicClass, GlobalSearchScope scope, Processor<? extends Listeners.Listener> processor) { return processAll(project, topicClass, scope, EnumSet.of(RegistrationType.LISTENER_TOPIC), processor); } | processListenerTopic |
62,842 | boolean (PsiClass psiClass, GlobalSearchScope scope, @Nullable RegistrationType type) { final String qualifiedName = psiClass.getQualifiedName(); if (qualifiedName == null) { return false; } return !FileBasedIndex.getInstance() .processValues(NAME, qualifiedName, null, (file, value) -> ContainerUtil.process(value, entr... | isRegisteredClass |
62,843 | boolean (@NotNull Project project, GlobalSearchScope scope, Processor<? extends ActionOrGroup> processor) { Set<String> keys = new HashSet<>(); FileBasedIndex.getInstance().processAllKeys(NAME, s -> keys.add(s), scope, null); return ContainerUtil.process(keys, s -> processActionOrGroup(project, s, scope, processor)); } | processAllActionOrGroup |
62,844 | boolean (@NotNull Project project, PsiClass actionOrGroupClass, GlobalSearchScope scope, Processor<? extends ActionOrGroup> processor) { return processAll(project, actionOrGroupClass, scope, EnumSet.of(RegistrationType.ACTION), processor); } | processActionOrGroupClass |
62,845 | boolean (@NotNull Project project, @NotNull String actionOrGroupId, GlobalSearchScope scope, Processor<? extends ActionOrGroup> processor) { return processAll(project, actionOrGroupId, scope, EnumSet.of(RegistrationType.ACTION_ID, RegistrationType.ACTION_GROUP_ID), processor); } | processActionOrGroup |
62,846 | boolean (@NotNull Project project, @NotNull String actionId, GlobalSearchScope scope, Processor<? extends ActionOrGroup> processor) { return processAll(project, actionId, scope, EnumSet.of(RegistrationType.ACTION_ID), processor); } | processAction |
62,847 | boolean (@NotNull Project project, @NotNull String actionGroupId, GlobalSearchScope scope, Processor<? extends ActionOrGroup> processor) { return processAll(project, actionGroupId, scope, EnumSet.of(RegistrationType.ACTION_GROUP_ID), processor); } | processGroup |
62,848 | boolean (@NotNull Project project, @NotNull String key, GlobalSearchScope scope, EnumSet<RegistrationType> types, Processor<XmlTag> processor) { return FileBasedIndex.getInstance().processValues(NAME, key, null, (file, value) -> { for (RegistrationEntry entry : value) { if (!types.contains(entry.getRegistrationType()))... | processIndexEntries |
62,849 | KeyDescriptor<String> () { return EnumeratorStringDescriptor.INSTANCE; } | getKeyDescriptor |
62,850 | DataExternalizer<Integer> () { return EnumeratorIntegerDescriptor.INSTANCE; } | getValueExternalizer |
62,851 | int () { return 0; } | getVersion |
62,852 | List<ExtensionPoint> (Project project, GlobalSearchScope scope) { List<ExtensionPoint> result = new ArrayList<>(); List<String> allKeys = new ArrayList<>(); FileBasedIndex.getInstance().processAllKeys(NAME, key -> { allKeys.add(key); return true; }, scope, null); for (String key : allKeys) { ContainerUtil.addIfNotNull(... | getExtensionPointCandidates |
62,853 | ExtensionPoint (Module module, String fqn) { return findExtensionPoint(module.getProject(), GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(module, false), fqn); } | findExtensionPoint |
62,854 | ExtensionPoint (Project project, GlobalSearchScope scope, String fqn) { Ref<ExtensionPoint> result = Ref.create(); FileBasedIndex.getInstance().processValues(NAME, fqn, null, (file, value) -> { final PsiManager psiManager = PsiManager.getInstance(project); final DomManager domManager = DomManager.getDomManager(project)... | findExtensionPoint |
62,855 | ExtensionPoint (PsiManager psiManager, DomManager domManager, VirtualFile file, int offset) { PsiFile psiFile = psiManager.findFile(file); if (!(psiFile instanceof XmlFile)) return null; XmlTag xmlTag = AstLoadingFilter.forceAllowTreeLoading(psiFile, () -> { PsiElement psiElement = psiFile.findElementAt(offset); return... | getExtensionPointDom |
62,856 | void (IdeaPlugin plugin, Consumer<? super ExtensionPoint> consumer) { for (DomElement points : getChildrenWithoutIncludes(plugin, "extensionPoints")) { for (DomElement point : getChildrenWithoutIncludes(points, "extensionPoint")) { ExtensionPoint extensionPoint = (ExtensionPoint)point; consumer.consume(extensionPoint);... | indexExtensionPoints |
62,857 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RegistrationEntry entry = (RegistrationEntry)o; if (myOffset != entry.myOffset) return false; if (myRegistrationType != entry.myRegistrationType) return false; return true; } | equals |
62,858 | int () { int result = myRegistrationType.hashCode(); result = 31 * result + myOffset; return result; } | hashCode |
62,859 | boolean () { return true; } | dependsOnFileContent |
62,860 | IdeaPlugin (@NotNull FileContent content) { if (!looksLikeIdeaPluginXml(content)) return null; PsiFile file = content.getPsiFile(); if (!(file instanceof XmlFile)) return null; return DescriptorUtil.getIdeaPlugin((XmlFile)file); } | obtainIdeaPlugin |
62,861 | boolean (@NotNull FileContent content) { CharSequence text = content.getContentAsText(); int idx = 0; while (true) { // find open tag idx = CharArrayUtil.indexOf(text, "<", idx); if (idx == -1) return false; // ignore processing & comment tags if (CharArrayUtil.regionMatches(text, idx, "<!--") || CharArrayUtil.regionMa... | looksLikeIdeaPluginXml |
62,862 | PsiPackage (@Nullable String s, ConvertContext context) { final GlobalSearchScope scope = getResolveScope(context.getInvocationElement()); if (scope == null) return null; return super.fromString(s, context); } | fromString |
62,863 | PsiPackageReference (TextRange range, int index) { return new MyCreatePackageFixPsiPackageReference(this, range, index, getResolveScope()); } | createReference |
62,864 | GlobalSearchScope (DomElement genericDomValue) { final IdeaPlugin ideaPlugin = genericDomValue.getParentOfType(IdeaPlugin.class, true); assert ideaPlugin != null; final Module module = ideaPlugin.getModule(); if (module == null) return null; if (ideaPlugin.hasRealPluginId() || DomUtil.hasXml(ideaPlugin.getName())) { re... | getResolveScope |
62,865 | ExtensionPoint () { final DomElement domDeclaration = getChildDescription().getDomDeclaration(); if (domDeclaration instanceof ExtensionPoint) { return (ExtensionPoint)domDeclaration; } return null; } | getExtensionPoint |
62,866 | Icon (@Iconable.IconFlags int flags) { return AllIcons.Nodes.Plugin; } | getFileIcon |
62,867 | PsiElement (@Nullable ActionOrGroup resolvedValue) { if (resolvedValue == null) return null; DomTarget target = DomTarget.getTarget(resolvedValue); return target == null ? super.getPsiElement(resolvedValue) : PomService.convertToPsi(target); } | getPsiElement |
62,868 | ActionOrGroup (@Nullable @NonNls final String value, ConvertContext context) { if (StringUtil.isEmptyOrSpaces(value)) return null; final Project project = context.getProject(); Ref<ActionOrGroup> result = Ref.create(); processScopes(context, scope -> { return IdeaPluginRegistrationIndex.processActionOrGroup(project, va... | fromString |
62,869 | String (@Nullable ActionOrGroup actionGroup, ConvertContext context) { return actionGroup == null ? null : getName(actionGroup); } | toString |
62,870 | String (@Nullable String s, ConvertContext context) { return DevKitBundle.message("plugin.xml.convert.action.or.group.cannot.resolve", getResultTypes(), s); } | getErrorMessage |
62,871 | LookupElement (ActionOrGroup actionOrGroup) { PsiElement psiElement = getPsiElement(actionOrGroup); String name = StringUtil.notNullize(getName(actionOrGroup), DevKitBundle.message("plugin.xml.convert.action.or.group.invalid.name")); LookupElementBuilder builder = psiElement == null ? LookupElementBuilder.create(name) ... | createLookupElement |
62,872 | boolean (ActionOrGroup actionOrGroup) { return true; } | isRelevant |
62,873 | String () { return DevKitBundle.message("plugin.xml.convert.action.or.group.type.action.or.group"); } | getResultTypes |
62,874 | boolean (ActionOrGroup actionOrGroup) { return actionOrGroup instanceof Action; } | isRelevant |
62,875 | String () { return DevKitBundle.message("plugin.xml.convert.action.or.group.type.action"); } | getResultTypes |
62,876 | boolean (ActionOrGroup actionOrGroup) { return actionOrGroup instanceof Group; } | isRelevant |
62,877 | String () { return DevKitBundle.message("plugin.xml.convert.action.or.group.type.group"); } | getResultTypes |
62,878 | void (ConvertContext context, final Processor<GlobalSearchScope> processor) { final Project project = context.getProject(); Module module = context.getModule(); if (module == null) { final GlobalSearchScope projectScope = GlobalSearchScopesCore.projectProductionScope(project). union(ProjectScope.getLibrariesScope(proje... | processScopes |
62,879 | String (@NotNull ActionOrGroup actionOrGroup) { return actionOrGroup.getId().getStringValue(); } | getName |
62,880 | void (LookupElement element, LookupElementPresentation presentation) { presentation.setItemText(element.getLookupString()); ActionOrGroup actionOrGroup = element.getUserData(ACTION_OR_GROUP_KEY); assert actionOrGroup != null; presentation.setItemTextUnderlined(actionOrGroup.getPopup().getValue() == Boolean.TRUE); prese... | renderElement |
62,881 | String (ActionOrGroup actionOrGroup, ActionOrGroup.TextType text, NullableLazyValue<PropertiesFile> propertiesFile) { final String plain = text.getDomValue(actionOrGroup).getStringValue(); if (StringUtil.isNotEmpty(plain)) return plain; final PropertiesFile bundleFile = propertiesFile.getValue(); if (bundleFile == null... | getLocalizedText |
62,882 | void (@NotNull final Extension extension, @NotNull final DomExtensionsRegistrar registrar) { final ExtensionPoint extensionPoint = extension.getExtensionPoint(); if (extensionPoint == null) return; final String interfaceName = extensionPoint.getInterface().getStringValue(); if (interfaceName != null) { final DomExtensi... | registerExtensions |
62,883 | void (DomExtensionsRegistrar registrar, @Nullable PsiClass psiClass, @NotNull List<With> elements) { if (psiClass == null) return; ExtensionPointBinding binding = new ExtensionPointBinding(psiClass); binding.visit(new ExtensionPointBinding.BindingVisitor() { @Override public void visitAttribute(@NotNull PsiField field,... | registerXmlb |
62,884 | void (@NotNull PsiField field, @NotNull @NonNls String attributeName, RequiredFlag required) { final With withElement = findWithElement(elements, field); final PsiType fieldType = field.getType(); Class<?> clazz = String.class; if (PsiTypes.booleanType().equals(fieldType)) { clazz = Boolean.class; } else if (PsiTypes.i... | visitAttribute |
62,885 | void (@NotNull PsiField field, @NotNull String tagName, RequiredFlag required) { boolean isBoolean = PsiTypes.booleanType().equals(field.getType()); final DomExtension extension = registrar.registerFixedNumberChildExtension(new XmlName(tagName), isBoolean ? SimpleBooleanTagValue.class : SimpleTagValue.class) .setDeclar... | visitTagOrProperty |
62,886 | void (@NotNull PsiField field, @Nullable String tagName, @NotNull PsiAnnotation collectionAnnotation, RequiredFlag required) { if (tagName == null) { registerCollectionBinding(field, registrar, collectionAnnotation, required); return; } registrar.registerFixedNumberChildExtension(new XmlName(tagName), DomElement.class)... | visitXCollection |
62,887 | void (@NotNull DomElement domElement, @NotNull DomExtensionsRegistrar registrar) { registerCollectionBinding(field, registrar, collectionAnnotation, required); } | registerExtensions |
62,888 | With (List<? extends With> withElements, PsiField field) { for (With with : withElements) { PsiField withPsiField = DomUtil.hasXml(with.getTag()) ? with.getTag().getValue() : with.getAttribute().getValue(); if (field.getManager().areElementsEquivalent(field, withPsiField)) { return with; } } return null; } | findWithElement |
62,889 | void (DomExtension extension, boolean isClassField, @Nullable With withElement) { if (withElement != null) { final String withClassName = withElement.getImplements().getStringValue(); extension.addCustomAnnotation(new ExtendClassImpl() { @Override public String[] value() { return new String[]{withClassName}; } }); } if... | markAsClass |
62,890 | String[] () { return new String[]{withClassName}; } | value |
62,891 | void (DomExtension extension, ExtensionPointBinding.BindingVisitor.RequiredFlag required) { if (required == ExtensionPointBinding.BindingVisitor.RequiredFlag.REQUIRED) { extension.addCustomAnnotation(MyRequired.INSTANCE); } else if (required == ExtensionPointBinding.BindingVisitor.RequiredFlag.REQUIRED_ALLOW_EMPTY) { e... | markAsRequired |
62,892 | void (DomExtension extension, PsiField field, PsiType fieldType, String propertyName) { if (PsiUtil.findAnnotation(NonNls.class, field) != null) { extension.addCustomAnnotation(MyNoSpellchecking.INSTANCE); } else if (!fieldType.equalsToText(CommonClassNames.JAVA_LANG_STRING)) { final PsiClass fieldPsiClass = PsiTypesUt... | markStringProperty |
62,893 | void (PsiField field, DomExtensionsRegistrar registrar, PsiAnnotation collectionAnnotation, ExtensionPointBinding.BindingVisitor.RequiredFlag required) { final boolean surroundWithTag = PsiUtil.getAnnotationBooleanAttribute(collectionAnnotation, "surroundWithTag"); if (surroundWithTag) return; // todo Set, List, Array ... | registerCollectionBinding |
62,894 | void (@NotNull DomElement domElement, @NotNull DomExtensionsRegistrar registrar) { registrar.registerGenericAttributeValueChildExtension(new XmlName(attrName), String.class); } | registerExtensions |
62,895 | void (@NotNull DomElement domElement, @NotNull DomExtensionsRegistrar registrar) { registerXmlb(registrar, elementPsiClass, Collections.emptyList()); } | registerExtensions |
62,896 | PsiType (final PsiType psiType) { if (psiType instanceof PsiArrayType) { return ((PsiArrayType)psiType).getComponentType(); } if (psiType instanceof PsiClassType) { final PsiType[] types = ((PsiClassType)psiType).getParameters(); return types.length == 1 ? types[0] : null; } return null; } | getElementType |
62,897 | boolean () { return true; } | value |
62,898 | boolean () { return true; } | nonEmpty |
62,899 | boolean () { return false; } | identifier |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.