Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
63,100 | String () { AnAction action = myActionList.getSelectedValue(); return action == null ? null : ActionManager.getInstance().getId(action); } | getSelectedActionId |
63,101 | String () { ButtonModel selection = myAnchorButtonGroup.getSelection(); if (selection == myAnchorFirstRadio.getModel()) return "first"; if (selection == myAnchorLastRadio.getModel()) return "last"; if (selection == myAnchorBeforeRadio.getModel()) return "before"; if (selection == myAnchorAfterRadio.getModel()) return "... | getSelectedAnchor |
63,102 | String () { return "reference.new.action.dialog"; } | getHelpId |
63,103 | String () { return getKeystrokeText(myFirstKeystrokeEdit.getKeyStroke()); } | getFirstKeyStroke |
63,104 | String () { return getKeystrokeText(mySecondKeystrokeEdit.getKeyStroke()); } | getSecondKeyStroke |
63,105 | void () { myAnchorBeforeRadio.setEnabled(myActionList.getSelectedValue() != null); myAnchorAfterRadio.setEnabled(myActionList.getSelectedValue() != null); boolean enabled = myFirstKeystrokeEdit.getDocument().getLength() > 0; myClearFirstKeystroke.setEnabled(enabled); mySecondKeystrokeEdit.setEnabled(enabled); myClearSe... | updateControls |
63,106 | boolean () { return myActionIdEdit.getText().length() > 0; } | isActionIdValid |
63,107 | boolean () { return myActionNameEdit.getText().length() > 0; } | isActionNameValid |
63,108 | boolean () { return myActionClassNameEdit.getText().length() > 0 && (!myActionClassNameEdit.isEditable() || PsiNameHelper.getInstance(myProject).isQualifiedName(myActionClassNameEdit.getText())); } | isActionClassNameValid |
63,109 | List<ValidationInfo> () { boolean actionIdValid = isActionIdValid(); boolean actionNameValid = isActionNameValid(); boolean actionClassNameValid = isActionClassNameValid(); String createClassErrorMessage = checkCanCreateActionClass(); if (actionIdValid && actionNameValid && actionClassNameValid && createClassErrorMessa... | doValidateAll |
63,110 | void (DocumentEvent e) { updateControls(); } | insertUpdate |
63,111 | void (DocumentEvent e) { updateControls(); } | removeUpdate |
63,112 | void (DocumentEvent e) { updateControls(); } | changedUpdate |
63,113 | void (@NotNull JList list, AnAction value, int index, boolean selected, boolean hasFocus) { @NlsSafe String actionId = ActionManager.getInstance().getId(value); append(actionId, SimpleTextAttributes.REGULAR_ATTRIBUTES); String text = value.getTemplatePresentation().getText(); if (StringUtil.isNotEmpty(text)) { append("... | customizeCellRenderer |
63,114 | void (KeyEvent e) { if (e.getID() == KeyEvent.KEY_PRESSED) { int keyCode = e.getKeyCode(); if (keyCode != KeyEvent.VK_SHIFT && keyCode != KeyEvent.VK_ALT && keyCode != KeyEvent.VK_CONTROL && keyCode != KeyEvent.VK_ALT_GRAPH && keyCode != KeyEvent.VK_META) { setKeyStroke(KeyStroke.getKeyStroke(keyCode, e.getModifiers())... | processKeyEvent |
63,115 | void (KeyStroke keyStroke) { myKeyStroke = keyStroke; if (keyStroke == null) { setText(""); } else { setText(KeymapUtil.getKeystrokeText(keyStroke)); } } | setKeyStroke |
63,116 | KeyStroke () { return myKeyStroke; } | getKeyStroke |
63,117 | void (@NotNull AnActionEvent e) { Editor editor = e.getData(CommonDataKeys.EDITOR); PsiFile file = e.getData(CommonDataKeys.PSI_FILE); e.getPresentation().setEnabled(editor != null && file != null); } | update |
63,118 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
63,119 | void (@NotNull AnActionEvent e) { final Editor editor = e.getData(CommonDataKeys.EDITOR); PsiFile file = e.getData(CommonDataKeys.PSI_FILE); if (editor == null || file == null) return; final Project project = file.getProject(); if (!ReadonlyStatusHandler.ensureFilesWritable(project, file.getVirtualFile())) return; Comm... | actionPerformed |
63,120 | boolean (PsiFile file, Editor editor) { final Map<String, String> map = new HashMap<>(); final StringBuilder sb = new StringBuilder(); final StringBuilder quote = new StringBuilder(); final ArrayList<String> split = new ArrayList<>(100); file.acceptChildren(new PsiRecursiveElementWalkingVisitor() { @Override public voi... | shuffleIds |
63,121 | void (@NotNull PsiElement element) { if (element instanceof LeafPsiElement) { String type = ((LeafPsiElement)element).getElementType().toString(); String text = element.getText(); if (text.isEmpty()) return; for (int i = 0, len = text.length(); i < len / 2; i++) { char c = text.charAt(i); if (c == text.charAt(len - i -... | visitElement |
63,122 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(getEventProject(e) != null && e.getData(CommonDataKeys.PSI_FILE) != null && e.getData(CommonDataKeys.EDITOR) != null); } | update |
63,123 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
63,124 | void (@NotNull AnActionEvent e) { Project project = getEventProject(e); Editor editor = e.getData(CommonDataKeys.EDITOR); PsiFile psiFile = e.getData(CommonDataKeys.PSI_FILE); if (project == null || editor == null || psiFile == null) return; Pair<VirtualFile, String> fileAndClassName = getJvmFileAndClassName(editor, ps... | actionPerformed |
63,125 | void (boolean aborted, int errors, int warnings, @NotNull CompileContext compileContext) { if (aborted || errors > 0) return; generateAndShowXml(module, className); } | finished |
63,126 | void (final Module module, final String className) { final List<Path> files = new ArrayList<>(); final List<String> list = OrderEnumerator.orderEntries(module).recursively().runtimeOnly().getPathsList().getPathList(); for (String path : list) { files.add(Paths.get(path)); } final Project project = module.getProject(); ... | generateAndShowXml |
63,127 | void (@NotNull AnActionEvent e) { String helpId = Messages.showInputDialog(e.getProject(), DevKitBundle.message("action.ShowHelpPageById.dialog.enter.help.id"), DevKitBundle.message("action.ShowHelpPageById.dialog.title"), null); if (helpId != null) { HelpManager.getInstance().invokeHelp(helpId); } } | actionPerformed |
63,128 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
63,129 | ActionUpdateThread () { return super.getActionUpdateThread(); } | getActionUpdateThread |
63,130 | PsiElement[] (Project project, @NotNull PsiDirectory directory) { myDialog = new NewActionDialog(project, directory); try { myDialog.show(); if (myDialog.getExitCode() == DialogWrapper.OK_EXIT_CODE) { pluginDescriptorToPatch = DevkitActionsUtil.choosePluginModuleDescriptor(directory); if (pluginDescriptorToPatch != nul... | doInvokeDialog |
63,131 | boolean (DataContext dataContext) { if (!super.isAvailable(dataContext)) { return false; } Module module = dataContext.getData(PlatformCoreDataKeys.MODULE); if (module == null || !PsiUtil.isPluginModule(module)) { return false; } return CreateTemplateInPackageAction.isAvailable(dataContext, JavaModuleSourceRootTypes.SO... | isAvailable |
63,132 | boolean () { return false; } | startInWriteAction |
63,133 | String () { return DevKitBundle.message("new.action.error"); } | getErrorTitle |
63,134 | String (@NotNull PsiDirectory directory, @NotNull String newName) { return DevKitBundle.message("new.action.action.name", directory, newName); } | getActionName |
63,135 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
63,136 | void (@NotNull AnActionEvent e) { final PsiClass target = getComponentInContext(e.getDataContext()); assert target != null; final PsiElementFactory factory = JavaPsiFacade.getInstance(target.getProject()).getElementFactory(); final CodeStyleManager formatter = CodeStyleManager.getInstance(target.getManager().getProject... | actionPerformed |
63,137 | PsiClass (DataContext context) { Editor editor = CommonDataKeys.EDITOR.getData(context); Project project = CommonDataKeys.PROJECT.getData(context); if (editor == null || project == null) return null; PsiFile file = CommonDataKeys.PSI_FILE.getData(context); if (file == null) return null; PsiClass contextClass = PsiTreeU... | getComponentInContext |
63,138 | void (@NotNull AnActionEvent e) { final PsiClass target = getComponentInContext(e.getDataContext()); final Presentation presentation = e.getPresentation(); presentation.setEnabledAndVisible(target != null); } | update |
63,139 | ModuleConfigurationEditor[] (ModuleConfigurationState state) { final Module module = state.getCurrentRootModel().getModule(); if (ModuleType.get(module) != PluginModuleType.getInstance()) return ModuleConfigurationEditor.EMPTY; final DefaultModuleConfigurationEditorFactory editorFactory = DefaultModuleConfigurationEdit... | createEditors |
63,140 | ModuleType () { return PluginModuleType.getInstance(); } | getModuleType |
63,141 | Module (@NotNull Project project, @Nullable ModifiableModuleModel model) { Module module = super.commitModule(project, model); if (module != null) { RunManager runManager = RunManager.getInstance(project); RunnerAndConfigurationSettings configuration = runManager.createConfiguration(DevKitBundle.message("run.configurat... | commitModule |
63,142 | boolean () { return false; } | isAvailable |
63,143 | boolean (SdkTypeId sdk) { return sdk == IdeaJdk.getInstance(); } | isSuitableSdkType |
63,144 | String () { return JavaModuleType.JAVA_GROUP; } | getParentGroup |
63,145 | int () { return IJ_PLUGIN_WEIGHT; } | getWeight |
63,146 | ModuleWizardStep (@NotNull SettingsStep settingsStep) { final ModuleWizardStep step = StdModuleTypes.JAVA.modifyProjectTypeStep(settingsStep, this); if (step == null) return null; step.getComponent().add(SwingHelper.createHtmlLabel(DevKitBundle.message("module.wizard.devkit.simple.plugin.label"), null, null), new GridB... | modifyProjectTypeStep |
63,147 | PluginModuleType () { return (PluginModuleType)ModuleTypeManager.getInstance().findByID(ID); } | getInstance |
63,148 | boolean (@NotNull Module module) { return get(module) instanceof PluginModuleType; } | isOfType |
63,149 | PluginModuleBuilder () { return new PluginModuleBuilder(); } | createModuleBuilder |
63,150 | String () { return DevKitBundle.message("module.title"); } | getName |
63,151 | String () { return DevKitBundle.message("module.description"); } | getDescription |
63,152 | Icon (boolean isOpened) { return AllIcons.Nodes.Plugin; } | getNodeIcon |
63,153 | XmlFile (Module module) { if (module == null) return null; if (!isOfType(module)) { for (final ContentEntry entry : ModuleRootManager.getInstance(module).getContentEntries()) { for (final SourceFolder folder : entry.getSourceFolders(JavaModuleSourceRootTypes.PRODUCTION)) { final VirtualFile file = folder.getFile(); if ... | getPluginXml |
63,154 | boolean (@Nullable Module module) { if (module == null) return false; if (isOfType(module)) return true; return getCandidateModules(module).size() > 0; } | isPluginModuleOrDependency |
63,155 | List<Module> (Module module) { if (PsiUtil.isIdeaProject(module.getProject())) { Set<Module> dependents = new HashSet<>(); ModuleUtilCore.collectModulesDependsOn(module, dependents); return new ArrayList<>(dependents); } final Module[] modules = ModuleManager.getInstance(module.getProject()).getModules(); final List<Mo... | getCandidateModules |
63,156 | boolean (@NotNull final Module module, final Sdk projectSdk) { return JavaModuleType.isValidJavaSdk(module); } | isValidSdk |
63,157 | void (@NotNull ProgressIndicator progress) { } | doCollectInformation |
63,158 | void () { removeHighlighters(); final MarkupModel model = DocumentMarkupModel.forDocument(myDocument, myProject, true); final String text = myDocument.getText(); int ind = -1; while ((ind = text.indexOf(CARET, ind + 1)) >= 0) { final RangeHighlighter highlighter = model.addRangeHighlighter(ind, ind + CARET.length(), Hi... | doApplyInformationToEditor |
63,159 | void () { final MarkupModel model = DocumentMarkupModel.forDocument(myDocument, myProject, true); for (RangeHighlighter highlighter : model.getAllHighlighters()) { if (highlighter.getUserData(KEY) == VALUE) { highlighter.dispose(); } } } | removeHighlighters |
63,160 | Icon () { return AllIcons.RunConfigurations.Junit; } | getIcon |
63,161 | boolean (Object obj) { return obj instanceof MyGutterIconRenderer; } | equals |
63,162 | int () { return getIcon().hashCode(); } | hashCode |
63,163 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
63,164 | void (@NotNull AnActionEvent e) { final DataContext dataContext = e.getDataContext(); final Project project = e.getProject(); if (project == null) return; final Editor editor = e.getData(CommonDataKeys.EDITOR); final JBPopupFactory popupFactory = JBPopupFactory.getInstance(); final RelativePoint point = editor != null ... | actionPerformed |
63,165 | List<TestDataFile> (@NotNull DataContext dataContext, @NotNull Project project, boolean shouldGuess) { return ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> { List<TestDataFile> fileNames = tryFindTestDataFiles(dataContext); if (fileNames.isEmpty() && shouldGuess) { //noinspection RedundantType... | findTestDataFiles |
63,166 | List<TestDataFile> (@NotNull DataContext context) { final PsiMethod method = ReadAction.compute(() -> findTargetMethod(context)); if (method == null) { PsiClass parametrizedTestClass = ReadAction.compute(() -> findParametrizedClass(context)); return parametrizedTestClass == null ? Collections.emptyList() : TestDataGues... | tryFindTestDataFiles |
63,167 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabledAndVisible(findTargetMethod(e.getDataContext()) != null || findParametrizedClass(e.getDataContext()) != null); } | update |
63,168 | PsiClass (@NotNull DataContext context) { PsiElement element = context.getData(CommonDataKeys.PSI_ELEMENT); UClass uClass = UastContextKt.getUastParentOfType(element, UClass.class); if (uClass == null) return null; final UAnnotation annotation = UastContextKt.toUElement(AnnotationUtil.findAnnotationInHierarchy(uClass.g... | findParametrizedClass |
63,169 | PsiMethod (@NotNull DataContext context) { final Location<?> location = Location.DATA_KEY.getData(context); if (location != null) { UMethod method = UastContextKt.getUastParentOfType(location.getPsiElement(), UMethod.class, false); if (method != null) { return method.getJavaPsi(); } } final Editor editor = CommonDataKe... | findTargetMethod |
63,170 | List<TestDataFile> (@NotNull PsiMethod method) { if (!isEnabled()) return Collections.emptyList(); PsiClass testClass = ReadAction.compute(() -> method.getContainingClass()); if (testClass == null) return Collections.emptyList(); String testClassQualifiedName = ReadAction.compute(() -> testClass.getQualifiedName()); if... | collectTestDataByExistingFiles |
63,171 | List<TestDataFile> (@NotNull PsiClass parametrizedTestClass) { if (!isEnabled()) return Collections.emptyList(); String testClassQualifiedName = ReadAction.compute(() -> parametrizedTestClass.getQualifiedName()); if (testClassQualifiedName == null) return Collections.emptyList(); Project project = ReadAction.compute(()... | collectTestDataByExistingFiles |
63,172 | boolean () { return Registry.is(TestDiscoveryExtension.TEST_DISCOVERY_REGISTRY_KEY) || ApplicationManager.getApplication().isInternal(); } | isEnabled |
63,173 | void (String path) { //TODO for those strange people with community sources String fullPath = myBasePath + path; if (FileUtil.exists(fullPath)) { myTestData.add(fullPath); return; } path = StringUtil.trimStart(path, COMMUNITY_PREFIX); fullPath = myBasePath + path; if (FileUtil.exists(fullPath)) { myTestData.add(fullPat... | consume |
63,174 | boolean (@NotNull Project project, @NotNull VirtualFile file) { return file instanceof TestDataGroupVirtualFile; } | accept |
63,175 | boolean () { return false; } | acceptRequiresReadAction |
63,176 | FileEditor (@NotNull Project project, @NotNull VirtualFile file) { return new TestDataGroupFileEditor(project, (TestDataGroupVirtualFile) file); } | createEditor |
63,177 | String () { return "TestDataGroup"; } | getEditorTypeId |
63,178 | FileEditorPolicy () { return FileEditorPolicy.HIDE_DEFAULT_EDITOR; } | getPolicy |
63,179 | void (@NotNull TextEditorHighlightingPassRegistrar registrar, @NotNull Project project) { registrar.registerTextEditorHighlightingPass(this, null, null, true, -1); } | registerHighlightingPassFactory |
63,180 | TextEditorHighlightingPass (@NotNull PsiFile file, @NotNull final Editor editor) { final VirtualFile virtualFile = file.getVirtualFile(); if (virtualFile != null) { Project project = file.getProject(); Document document = file.getViewProvider().getDocument(); if (isSupported(virtualFile, project) && document != null) {... | createHighlightingPass |
63,181 | boolean (@NotNull VirtualFile file, @NotNull Project project) { if (ScratchUtil.isScratch(file)) { return false; } final String ext = file.getExtension(); if (SUPPORTED_FILE_TYPES.contains(ext)) { return ProjectRootManager.getInstance(project).getFileIndex().getSourceRootForFile(file) == null; } if (ext != null && SUPP... | isSupported |
63,182 | TestDataNavigationElement (@NotNull Project project, @NotNull TestDataFile path) { return new NonExistingTestDataFileNavigationElement(project, path); } | createForNonExistingFile |
63,183 | TestDataNavigationElement (@NotNull Project project, @NotNull TestDataFile file) { return new TestDataFileNavigationElement(project, file); } | createForFile |
63,184 | TestDataNavigationElement (@NotNull Project project, @NotNull TestDataGroupVirtualFile group) { return new TestDataGroupNavigationElement(project, group); } | createForGroup |
63,185 | TestDataNavigationElement (@NotNull List<TestDataFile> filePaths) { return new CreateMissingTestDataFilesNavigationElement(filePaths); } | createForCreateMissingFilesOption |
63,186 | void (@NotNull Project project) { Set<String> filePathsToCreate = new HashSet<>(); for (TestDataFile file : myFilePaths) { VirtualFile vFile = file.getVirtualFile(); if (vFile == null || !vFile.isValid()) { filePathsToCreate.add(file.getPath()); } } if (filePathsToCreate.size() > CREATE_MISSING_FILES_WITHOUT_CONFIRMATI... | performAction |
63,187 | Icon () { return null; } | getIcon |
63,188 | void (@NotNull Project project) { PsiNavigationSupport.getInstance().createNavigatable(project, myGroup, -1).navigate(true); } | performAction |
63,189 | Icon () { return AllIcons.Nodes.TestSourceFolder; } | getIcon |
63,190 | void (@NotNull Project project) { TestDataUtil.openOrAskToCreateFile(project, myPath); } | performAction |
63,191 | Icon () { return FileTypes.UNKNOWN.getIcon(); } | getIcon |
63,192 | void (@NotNull Project project) { TestDataUtil.openOrAskToCreateFile(project, myFile); } | performAction |
63,193 | Icon () { VirtualFile file = myFile.getVirtualFile(); assert file != null; return file.getFileType().getIcon(); } | getIcon |
63,194 | List<TestDataFile> (@NotNull PsiMethod method) { return collectTestDataReferences(method, true); } | collectTestDataReferences |
63,195 | List<TestDataFile> (@NotNull PsiMethod method, boolean collectByExistingFiles) { myContainingClass = ReadAction.compute(() -> method.getContainingClass()); List<TestDataFile> result = collectTestDataReferences(method, new HashMap<>(), new HashSet<>()); if (!myFoundTestDataParameters) { myLogMessages.add("Found no param... | collectTestDataReferences |
63,196 | List<TestDataFile> (PsiMethod method, Map<String, Computable<UValue>> argumentMap, HashSet<Pair<PsiMethod, Set<UExpression>>> proceed) { List<TestDataFile> result = new ArrayList<>(); return myTestDataPath == null ? result : ReadAction.compute(() -> { UMethod uMethod = (UMethod)UastContextKt.toUElement(method); if (uMe... | collectTestDataReferences |
63,197 | boolean (@NotNull UCallExpression expression) { String callText = expression.getMethodName(); if (callText == null) return true; PsiMethod callee = expression.resolve(); if (callee != null && callee.hasModifierProperty(PsiModifier.ABSTRACT)) { final PsiClass calleeContainingClass = callee.getContainingClass(); if (call... | visitCallExpression |
63,198 | void (UCallExpression expression, Map<String, Computable<UValue>> argumentMap, Collection<TestDataFile> result, int index) { List<UExpression> arguments = expression.getValueArguments(); if (arguments.size() > index) { handleArgument(arguments.get(index), argumentMap, result); } } | processCallArgument |
63,199 | void (UCallExpression expression, Map<String, Computable<UValue>> argumentMap, Collection<TestDataFile> result) { List<UExpression> arguments = expression.getValueArguments(); for (UExpression argument : arguments) { handleArgument(argument, argumentMap, result); } } | processVarargCallArgument |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.