Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
63,700 | String () { return DevKitBundle.message("register.extension.fix.name"); } | getText |
63,701 | String () { return getText(); } | getFamilyName |
63,702 | boolean (@NotNull Project project, Editor editor, PsiFile file) { return !DumbService.isDumb(project); } | isAvailable |
63,703 | void (@NotNull Project project, PsiFile file, @Nullable Editor editor) { PluginDescriptorChooser.show(project, editor, file, element -> doFix(editor, element)); } | applyFix |
63,704 | void (Editor editor, final DomFileElement<IdeaPlugin> element) { PsiClass extensionClass = myExtensionClassPointer.getElement(); if (extensionClass == null || !extensionClass.isValid()) return; if (myEPCandidates.size() == 1) { registerExtension(element, myEPCandidates.iterator().next(), extensionClass); } else { final... | doFix |
63,705 | PopupStep (ExtensionPointCandidate selectedValue, boolean finalChoice) { registerExtension(element, selectedValue, extensionClass); return FINAL_CHOICE; } | onChosen |
63,706 | void (final DomFileElement<IdeaPlugin> selectedValue, final ExtensionPointCandidate candidate, final PsiClass extensionClass) { PsiElement navTarget = WriteCommandAction.writeCommandAction(selectedValue.getFile().getProject(), selectedValue.getFile()).compute(() -> { Extensions extensions = PluginDescriptorChooser.find... | registerExtension |
63,707 | boolean () { return false; } | startInWriteAction |
63,708 | IntentionPreviewInfo (@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor) { return IntentionPreviewInfo.EMPTY; } | generatePreview |
63,709 | boolean () { return myDescriptionType.isFixedDescriptionFilename(); } | isFixedDescriptionFilename |
63,710 | List<VirtualFile> (Module module, PsiDirectory[] dirs) { if (dirs.length != 0) { return StreamEx.of(dirs).map(PsiDirectory::getParentDirectory).nonNull().map(PsiDirectory::getVirtualFile).toList(); } else { ModuleRootManager rootManager = ModuleRootManager.getInstance(module); List<VirtualFile> resourceRoots = rootMana... | getPotentialRoots |
63,711 | String (String filename) { return myDescriptionType.isFixedDescriptionFilename() ? filename : filename + ".html"; } | getNormalizedFileName |
63,712 | String () { return DevKitBundle.message("create.description.file", getNewFileName()); } | getName |
63,713 | String () { return DevKitBundle.message("create.description.file.family.name"); } | getFamilyName |
63,714 | void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiDirectory[] dirs = getDirectories(); final List<VirtualFile> roots = getPotentialRoots(myModule, dirs); if (roots.size() == 1) { ApplicationManager.getApplication().runWriteAction(() -> createDescription(roots.get(0))); } else { final Edi... | applyFix |
63,715 | boolean () { return false; } | startInWriteAction |
63,716 | String (VirtualFile file) { String path = file.getPresentableUrl() + File.separator + getDescriptionFolderName() + File.separator + myFilename; if (isFixedDescriptionFilename()) { path += File.separator + "description.html"; } return path; } | getPath |
63,717 | PsiDirectory[] () { return DescriptionCheckerUtil.getDescriptionsDirs(myModule, myDescriptionType); } | getDirectories |
63,718 | void (VirtualFile root) { if (!root.isDirectory()) return; final PsiManager psiManager = PsiManager.getInstance(myModule.getProject()); final PsiDirectory psiRoot = psiManager.findDirectory(root); if (psiRoot == null) return; PsiDirectory descrRoot = StreamEx.of(psiRoot.getSubdirectories()).findFirst(dir -> getDescript... | createDescription |
63,719 | String () { return isFixedDescriptionFilename() ? "description.html" : myFilename; } | getNewFileName |
63,720 | Icon (int flags) { return LayeredIcon.layeredIcon(new Icon[]{AllIcons.FileTypes.Html, AllIcons.Actions.New}); } | getIcon |
63,721 | VirtualFile[] (VirtualFile[] roots) { VirtualFile[] found = Arrays.stream(roots).filter(this::containsDescriptionDir).toArray(VirtualFile[]::new); return found.length > 0 ? found : roots; } | prepare |
63,722 | boolean (VirtualFile root) { if (!root.isDirectory()) return false; return ContainerUtil.exists(root.getChildren(), file -> file.isDirectory() && getDescriptionFolderName().equals(file.getName())); } | containsDescriptionDir |
63,723 | String () { return myDescriptionType.getDescriptionFolder(); } | getDescriptionFolderName |
63,724 | IntentionPreviewInfo (@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor) { return IntentionPreviewInfo.EMPTY; } | generatePreview |
63,725 | String () { return DevKitBundle.message("new.menu.action.text"); } | getType |
63,726 | void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { if (ApplicationManager.getApplication().isUnitTestMode()) { super.applyFix(project, descriptor); return; } try { PsiClass element = myPointer.getElement(); if (element == null) { LOG.info("Element is null for PsiPointer: " + myPointer); return; } ... | applyFix |
63,727 | ActionData () { if (ApplicationManager.getApplication().isUnitTestMode()) { return ourTestActionData; } return myDialog; } | getActionData |
63,728 | IntentionPreviewInfo (@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor) { return super.generatePreview(project, previewDescriptor); } | generatePreview |
63,729 | void (final Project project, final Editor editor, final PsiFile file, final Consumer<? super DomFileElement<IdeaPlugin>> consumer) { final Module module = ModuleUtilCore.findModuleForPsiElement(file); assert module != null; List<DomFileElement<IdeaPlugin>> elements = DomService.getInstance().getFileElements(IdeaPlugin.... | show |
63,730 | boolean () { return true; } | isSpeedSearchEnabled |
63,731 | Icon (PluginDescriptorCandidate candidate) { return candidate.getIcon(); } | getIconFor |
63,732 | String (PluginDescriptorCandidate candidate) { return candidate.getText(); } | getTextFor |
63,733 | PopupStep (PluginDescriptorCandidate selectedValue, boolean finalChoice) { consumer.consume(selectedValue.myDomFileElement); return FINAL_CHOICE; } | onChosen |
63,734 | Extensions (DomFileElement<? extends IdeaPlugin> domFileElement, String epName) { final IdeaPlugin ideaPlugin = domFileElement.getRootElement(); for (Extensions extensions : ideaPlugin.getExtensions()) { if (extensions.getXmlTag() instanceof IncludedXmlTag) { continue; } String s = extensions.getDefaultExtensionNs().ge... | findOrCreateExtensionsForEP |
63,735 | List<PluginDescriptorCandidate> (final Module currentModule, List<? extends DomFileElement<IdeaPlugin>> elements) { ModuleGrouper grouper = ModuleGrouper.instanceFor(currentModule.getProject()); final List<String> groupPath = grouper.getGroupPath(currentModule); elements.sort((o1, o2) -> { // current module = first gro... | createCandidates |
63,736 | PluginDescriptorCandidate (DomFileElement<IdeaPlugin> element) { final Module module = element.getModule(); boolean startsNewGroup = !myLastModule.equals(module); myLastModule = module; return new PluginDescriptorCandidate(element, startsNewGroup); } | fun |
63,737 | int (@NotNull List<String> targetGroupPath, @NotNull List<String> groupPath) { for (int i = 0; i < Math.min(targetGroupPath.size(), groupPath.size()); i++) { if (!targetGroupPath.get(i).equals(groupPath.get(i))) { return i; } } return Math.min(targetGroupPath.size(), groupPath.size()); } | groupMatchLevel |
63,738 | List<DomFileElement<IdeaPlugin>> (@NotNull String moduleName, List<DomFileElement<IdeaPlugin>> elements) { String extensionsFile = INTELLIJ_MODULES.get(moduleName); if (extensionsFile != null) { for (DomFileElement<IdeaPlugin> element : elements) { if (element.getFile().getName().equals(extensionsFile)) { return Collec... | findAppropriateIntelliJModule |
63,739 | Icon () { return getPluginId() != null ? AllIcons.Nodes.Plugin : EmptyIcon.create(AllIcons.Nodes.Plugin); } | getIcon |
63,740 | String () { return DevKitBundle.message("register.inspection.fix.name", myPsiClass.getName()); } | getText |
63,741 | String () { return DevKitBundle.message("register.inspection.fix.family.name"); } | getFamilyName |
63,742 | boolean (@NotNull Project project, Editor editor, PsiFile file) { return !DumbService.isDumb(project); } | isAvailable |
63,743 | void (final DomFileElement<IdeaPlugin> selectedValue, final Project project, final PsiFile file) { Extension extension = WriteCommandAction.writeCommandAction(project, file).compute(() -> { final Extensions extensions = PluginDescriptorChooser.findOrCreateExtensionsForEP(selectedValue, myEp.getName()); Extension e = ex... | doFix |
63,744 | boolean () { return false; } | startInWriteAction |
63,745 | IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { return IntentionPreviewInfo.EMPTY; } | generatePreview |
63,746 | Icon (@NotNull String path, int cacheKey, int flags) { return IconManager.getInstance().loadRasterizedIcon(path, DevKitIcons.class.getClassLoader(), cacheKey, flags); } | load |
63,747 | void (JavaModuleFixtureBuilder moduleBuilder) { moduleBuilder.addLibrary("platform-analysis", PathUtil.getJarPathForClass(LocalInspectionEP.class)); moduleBuilder.addLibrary("platform-ide", PathUtil.getJarPathForClass(JBList.class)); } | tuneFixture |
63,748 | void (@NotNull String inspectionFile, @NotNull String descriptionFile) { myFixture.copyDirectoryToProject("inspectionDescriptions", "inspectionDescriptions"); GutterMark gutter = myFixture.findGutter(inspectionFile); DevKitGutterTargetsChecker.checkGutterTargets(gutter, "Description", DevKitIcons.Gutter.DescriptionFile... | doTestInspectionDescription |
63,749 | void (JavaModuleFixtureBuilder moduleBuilder) { moduleBuilder.addLibrary("platform-extensions", PathUtil.getJarPathForClass(ExtensionPointName.class)); moduleBuilder.addLibrary("platform-ide", PathUtil.getJarPathForClass(JBList.class)); moduleBuilder.addLibrary("platform-core", PathUtil.getJarPathForClass(LanguageExten... | tuneFixture |
63,750 | void () { assertSingleEPDeclaration(getTestName(false) + getExtension(), "com.intellij.myStringEP"); } | assertStringEP |
63,751 | void (String filePath, String epFqn) { VirtualFile pluginXmlFile = myFixture.copyFileToProject("extensionPointDeclarationEPs.xml"); PsiFile pluginPsiFile = getPsiManager().findFile(pluginXmlFile); assertNotNull(pluginPsiFile); int expectedTagPosition = pluginPsiFile.getText().indexOf("<extensionPoint name=\"" + StringU... | assertSingleEPDeclaration |
63,752 | void (@NotNull String file, @NotNull String xmlDeclarationText) { VirtualFile pluginXmlFile = myFixture.copyFileToProject("plugin.xml"); PsiFile pluginPsiFile = getPsiManager().findFile(pluginXmlFile); assertNotNull(pluginPsiFile); int expectedTagPosition = pluginPsiFile.getText().indexOf(xmlDeclarationText); assertFal... | doTestExtension |
63,753 | void (@NotNull String file) { myFixture.configureByFile("plugin.xml"); assertNull(myFixture.findGutter(file)); } | doTestInvalidExtension |
63,754 | void (final GutterMark gutterMark, final String tooltip, final Icon icon, final String... expectedTargets) { assertNotNull(gutterMark); assertEquals(tooltip, gutterMark.getTooltipText()); assertEquals(icon, gutterMark.getIcon()); final Collection<PsiElement> targetElements; if (gutterMark instanceof LineMarkerInfo.Line... | checkGutterTargets |
63,755 | void () { try { myProjectSubdir = VfsUtil.createDirectoryIfMissing(myFixture.getProject().getBasePath() + "/projectSubdir"); myContentRootSubdir = myContentRoot.createChildDirectory(this, "contentRootSubdir"); } catch (IOException e) { throw new RuntimeException(e); } } | run |
63,756 | void (JavaModuleFixtureBuilder moduleBuilder) { moduleBuilder.addContentRoot(myFixture.getTempDirPath()); } | tuneFixture |
63,757 | void () { setPluginXml("registeredCounterCollector-plugin.xml"); myFixture.testHighlighting("RegisteredCounterCollector." + getSourceFileExtension()); } | testRegisteredStatisticsCollector |
63,758 | void () { setPluginXml("registeredNestedCounterCollector-plugin.xml"); myFixture.testHighlighting("RegisteredNestedCounterCollector." + getSourceFileExtension()); } | testRegisteredNestedStatisticsCollector |
63,759 | void () { setPluginXml("unregisteredCounterCollector-plugin.xml"); myFixture.testHighlighting("UnregisteredCounterCollector." + getSourceFileExtension()); IntentionAction registerAction = myFixture.findSingleIntention("Register extension"); myFixture.launchAction(registerAction); myFixture.checkResultByFile("META-INF/p... | testUnregisteredCounterCollector |
63,760 | void () { setPluginXml("unregisteredProjectCollector-plugin.xml"); myFixture.testHighlighting("UnregisteredProjectCollector." + getSourceFileExtension()); IntentionAction registerAction = myFixture.findSingleIntention("Register extension"); myFixture.launchAction(registerAction); myFixture.checkResultByFile("META-INF/p... | testUnregisteredProjectCollector |
63,761 | void () { setPluginXml("unregisteredCounterCollector-plugin.xml"); myFixture.testHighlighting("UnregisteredNestedCounterCollector." + getSourceFileExtension()); IntentionAction registerAction = myFixture.findSingleIntention("Register extension"); myFixture.launchAction(registerAction); myFixture.checkResultByFile("META... | testUnregisteredNestedCountCollector |
63,762 | void () { myFixture.testHighlighting(getTestName(false) + '.' + getFileExtension()); } | doTest |
63,763 | void (@NotNull Module module, @NotNull ModifiableRootModel model, @NotNull ContentEntry contentEntry) { super.configureModule(module, model, contentEntry); addJetBrainsAnnotations(model); } | configureModule |
63,764 | String () { return PluginModuleType.ID; } | getModuleTypeId |
63,765 | LightProjectDescriptor () { return ourProjectDescriptor; } | getProjectDescriptor |
63,766 | void (@TestDataFile String pluginXml) { final VirtualFile file = myFixture.copyFileToProject(pluginXml, "META-INF/plugin.xml"); final PluginBuildConfiguration pluginBuildConfiguration = getPluginBuildConfiguration(); pluginBuildConfiguration.setPluginXmlFromVirtualFile(file); } | setPluginXml |
63,767 | PluginBuildConfiguration () { final PluginBuildConfiguration pluginBuildConfiguration = PluginBuildConfiguration.getInstance(getModule()); assertNotNull(pluginBuildConfiguration); return pluginBuildConfiguration; } | getPluginBuildConfiguration |
63,768 | void () { myFixture.testHighlighting(getTestName(false) + '.' + getFileExtension()); } | doTest |
63,769 | void () { setPluginXml("registeredAction-plugin.xml"); myFixture.testHighlighting("RegisteredAction." + getSourceFileExtension()); } | testRegisteredAction |
63,770 | void () { PsiUtil.markAsIdeaProject(getProject(), true); try { myFixture.copyFileToProject("registeredAction-plugin.xml", "someOtherPluginXmlName.xml"); myFixture.testHighlighting("RegisteredAction." + getSourceFileExtension()); } finally { PsiUtil.markAsIdeaProject(getProject(), false); } } | testRegisteredActionInIDEAProject |
63,771 | void () { setPluginXml("registeredActionInOptionalPluginDescriptor-plugin.xml"); myFixture.copyFileToProject("registeredActionInOptionalPluginDescriptor-optional-plugin.xml", "META-INF/optional-plugin.xml"); myFixture.testHighlighting("RegisteredAction." + getSourceFileExtension()); } | testRegisteredActionInOptionalPluginDescriptor |
63,772 | void () { setPluginXml("ActionXInclude.xml"); myFixture.copyFileToProject("ActionXInclude_included.xml", "META-INF/ActionXInclude_included.xml"); myFixture.testHighlighting("ActionXInclude." + getSourceFileExtension()); } | testRegisteredInIncludedFileAction |
63,773 | void () { setPluginXml("unregisteredAction-plugin.xml"); myFixture.testHighlighting("UnregisteredAction." + getSourceFileExtension()); RegisterActionFix.ourTestActionData = new MyActionData("UnregisteredAction"); try { final IntentionAction registerAction = myFixture.findSingleIntention("Register Action"); myFixture.la... | testUnregisteredAction |
63,774 | void () { myFixture.testHighlighting("UnregisteredActionDeprecated." + getSourceFileExtension()); } | testUnregisteredActionDeprecated |
63,775 | void () { myFixture.testHighlighting("UnregisteredActionUsedViaConstructor." + getSourceFileExtension()); } | testUnregisteredActionUsedViaConstructor |
63,776 | void () { setPluginXml("registeredApplicationComponent-plugin.xml"); myFixture.testHighlighting("RegisteredApplicationComponent." + getSourceFileExtension()); } | testRegisteredApplicationComponent |
63,777 | void () { myFixture.testHighlighting("UnregisteredAbstractApplicationComponent." + getSourceFileExtension()); } | testUnregisteredAbstractApplicationComponent |
63,778 | void () { myFixture.testHighlighting("UnregisteredApplicationComponent." + getSourceFileExtension(), "UnregisteredApplicationComponentInterface." + getSourceFileExtension()); } | testUnregisteredApplicationComponentWithoutPluginXml |
63,779 | void () { setPluginXml("unregisteredApplicationComponent-plugin.xml"); myFixture.testHighlighting("UnregisteredApplicationComponent." + getSourceFileExtension(), "UnregisteredApplicationComponentInterface." + getSourceFileExtension()); } | testUnregisteredApplicationComponentWithRegisterFix |
63,780 | String () { return StringUtil.getShortName(myActionClassFqn); } | getActionId |
63,781 | String () { return "Action Text " + myActionClassFqn; } | getActionText |
63,782 | String () { return "Description " + myActionClassFqn; } | getActionDescription |
63,783 | String () { return getActionId() + "Group"; } | getSelectedGroupId |
63,784 | String () { return getActionId() + "SelectedAction"; } | getSelectedActionId |
63,785 | String () { return Anchor.before.name(); } | getSelectedAnchor |
63,786 | String () { return "1st Key " + getActionId(); } | getFirstKeyStroke |
63,787 | String () { return "2nd Key " + getActionId(); } | getSecondKeyStroke |
63,788 | void () { myFixture.testHighlighting(getTestName(false) + '.' + getFileExtension()); } | doTest |
63,789 | void () { myFixture.testHighlighting(getTestName(false) + '.' + getFileExtension()); } | doTest |
63,790 | void (@NotNull Class<? extends UseEqualsInspectionBase> inspection, @TestDataFile String @NotNull... filePaths) { myFixture.enableInspections(inspection); myFixture.allowTreeAccessForAllFiles(); myFixture.testHighlightingAllFiles(true, false, false, filePaths); } | doTest |
63,791 | void () { super.doTest(); } | doTest |
63,792 | JBInsets (Insets insets) {return null;} | create |
63,793 | JBInsets (int top, int left, int bottom, int right) {return null;} | insets |
63,794 | JBInsets (int all) {return null;} | insets |
63,795 | JBInsets (String propName, JBInsets defaultValue) {return null;} | insets |
63,796 | JBInsets (int topBottom, int leftRight) {return null;} | insets |
63,797 | JBInsets () {return null;} | emptyInsets |
63,798 | JBInsets (int t) {return null;} | insetsTop |
63,799 | JBInsets (int l) {return null;} | insetsLeft |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.