Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
29,400 | PsiElementPredicate () { return new ComparisonPredicate(); } | getElementPredicate |
29,401 | void (@NotNull PsiElement element, @NotNull ActionContext context, @NotNull ModPsiUpdater updater) { final GrBinaryExpression exp = (GrBinaryExpression) element; final IElementType tokenType = exp.getOperationTokenType(); final GrExpression lhs = exp.getLeftOperand(); final String lhsText = lhs.getText(); final GrExpression rhs = exp.getRightOperand(); final String rhsText = rhs.getText(); final String negatedComparison = ComparisonUtils.getNegatedComparison(tokenType); final String newExpression = lhsText + negatedComparison + rhsText; replaceExpressionWithNegatedExpressionString(newExpression, exp); } | processIntention |
29,402 | boolean (PsiElement e) { return METHOD_IDENTIFIERS.contains(e.getNode().getElementType()); } | isIdentifier |
29,403 | String () { return GroovyCommonClassNames.GROOVY_UTIL_TEST_CASE; } | getMarkerClassFQName |
29,404 | boolean (PsiClass clazz, boolean canBePotential) { return clazz.getLanguage() == GroovyLanguage.INSTANCE && //JUnitUtil.isTestClass(clazz) && InheritanceUtil.isInheritor(clazz, GroovyCommonClassNames.GROOVY_UTIL_TEST_CASE); } | isTestClass |
29,405 | PsiMethod (@NotNull PsiClass clazz) { if (!isTestClass(clazz, false)) return null; for (PsiMethod method : clazz.getMethods()) { if (method.getName().equals("setUp")) return method; } return null; } | findSetUpMethod |
29,406 | PsiMethod (@NotNull PsiClass clazz) { if (!isTestClass(clazz, false)) return null; for (PsiMethod method : clazz.getMethods()) { if (method.getName().equals("tearDown")) return method; } return null; } | findTearDownMethod |
29,407 | String () { return "Groovy JUnit"; } | getName |
29,408 | Icon () { return JetgroovyIcons.Groovy.Groovy_16x16; } | getIcon |
29,409 | String () { return getBundledGroovyFile().get().getAbsolutePath(); } | getLibraryPath |
29,410 | String () { return GroovyCommonClassNames.GROOVY_UTIL_TEST_CASE; } | getDefaultSuperClass |
29,411 | FileTemplateDescriptor () { return new FileTemplateDescriptor(GroovyTemplates.GROOVY_JUNIT_TEST_CASE_GROOVY); } | getTestClassFileTemplateDescriptor |
29,412 | FileTemplateDescriptor () { return new FileTemplateDescriptor(GroovyTemplates.GROOVY_JUNIT_SET_UP_METHOD_GROOVY); } | getSetUpMethodFileTemplateDescriptor |
29,413 | FileTemplateDescriptor () { return new FileTemplateDescriptor(GroovyTemplates.GROOVY_JUNIT_TEAR_DOWN_METHOD_GROOVY); } | getTearDownMethodFileTemplateDescriptor |
29,414 | FileTemplateDescriptor () { return new FileTemplateDescriptor(GroovyTemplates.GROOVY_JUNIT_TEST_METHOD_GROOVY); } | getTestMethodFileTemplateDescriptor |
29,415 | Language () { return GroovyLanguage.INSTANCE; } | getLanguage |
29,416 | boolean (@NotNull PsiElement e) { return METHOD_IDENTIFIERS.contains(e.getNode().getElementType()); } | isIdentifier |
29,417 | PsiElement (final Project project, final CreateTestDialog d) { return WriteAction.compute(() -> { final PsiClass test = (PsiClass)PostprocessReformattingAspect.getInstance(project).postponeFormattingInside( (Computable<PsiElement>)() -> { try { IdeDocumentHistory.getInstance(project).includeCurrentPlaceAsChangePlace(); GrTypeDefinition targetClass = CreateClassActionBase.createClassByType( d.getTargetDirectory(), d.getClassName(), PsiManager.getInstance(project), null, GroovyTemplates.GROOVY_CLASS, true); if (targetClass == null) return null; addSuperClass(targetClass, project, d.getSuperClassName()); Editor editor = CodeInsightUtil.positionCursorAtLBrace(project, targetClass.getContainingFile(), targetClass); addTestMethods(editor, targetClass, d.getSelectedTestFrameworkDescriptor(), d.getSelectedMethods(), d.shouldGeneratedBefore(), d.shouldGeneratedAfter()); return targetClass; } catch (IncorrectOperationException e1) { showErrorLater(project, d.getClassName()); return null; } }); if (test == null) return null; JavaCodeStyleManager.getInstance(test.getProject()).shortenClassReferences(test); CodeStyleManager.getInstance(project).reformat(test); return test; }); } | generateTest |
29,418 | String () { return GroovyBundle.message("language.groovy"); } | toString |
29,419 | PsiClass (Project project, String fqName) { GlobalSearchScope scope = GlobalSearchScope.allScope(project); return JavaPsiFacade.getInstance(project).findClass(fqName, scope); } | findClass |
29,420 | void (final Project project, final String targetClassName) { ApplicationManager.getApplication().invokeLater(() -> Messages.showErrorDialog(project, JavaBundle.message("intention.error.cannot.create.class.message", targetClassName), JavaBundle.message("intention.error.cannot.create.class.title"))); } | showErrorLater |
29,421 | void (@NotNull TestIntegrationUtils.MethodKind methodKind, TestFramework descriptor, PsiClass targetClass, Editor editor, @Nullable String name, Set<? super String> existingNames) { GroovyPsiElementFactory f = GroovyPsiElementFactory.getInstance(targetClass.getProject()); PsiMethod method = (PsiMethod)targetClass.add(f.createMethod("dummy", PsiTypes.voidType())); PsiDocumentManager.getInstance(targetClass.getProject()).doPostponedOperationsAndUnblockDocument(editor.getDocument()); TestIntegrationUtils.runTestMethodTemplate(methodKind, descriptor, editor, targetClass, method, name, true, existingNames); } | generateMethod |
29,422 | boolean (@NotNull PsiElement e) { return e instanceof GrIfStatement && !isElseBlock(e); } | isApplicableTo |
29,423 | boolean (@NotNull PsiElement e) { return e instanceof GrSynchronizedStatement; } | isApplicableTo |
29,424 | boolean (@NotNull PsiElement e) { return e instanceof GrForStatement; } | isApplicableTo |
29,425 | boolean (@NotNull PsiElement e) { return e instanceof GrAnonymousClassDefinition && ((GrAnonymousClassDefinition)e).getMethods().length <= 1; } | isApplicableTo |
29,426 | PsiElement (@NotNull PsiElement e, @NotNull List<? super PsiElement> toExtract) { super.collectAffectedElements(e, toExtract); return findElementToExtractFrom(e); } | collectAffectedElements |
29,427 | PsiElement (PsiElement el) { if (el.getParent() instanceof PsiNewExpression) el = el.getParent(); el = findTopmostParentOfType(el, PsiMethodCallExpression.class); el = findTopmostParentOfType(el, PsiAssignmentExpression.class); el = findTopmostParentOfType(el, PsiDeclarationStatement.class); while (el.getParent() instanceof PsiExpressionStatement) { el = el.getParent(); } return el; } | findElementToExtractFrom |
29,428 | PsiElement (PsiElement el, Class<? extends PsiElement> clazz) { while (true) { PsiElement temp = PsiTreeUtil.getParentOfType(el, clazz, true, PsiAnonymousClass.class); if (temp == null || temp instanceof PsiFile) return el; el = temp; } } | findTopmostParentOfType |
29,429 | Unwrapper[] () { return new Unwrapper[]{ new GroovyIfUnwrapper(), new GroovyWhileUnwrapper(), new GroovyTryUnwrapper(), new GroovySynchronizedUnwrapper(), new GroovyMethodParameterUnwrapper(), new GroovyForUnwrapper(), new GroovyCatchRemover(), new GroovyBracesUnwrapper(), new GroovyElseUnwrapper(), new GroovyElseRemover(), new GroovyConditionalUnwrapper(), }; } | createUnwrappers |
29,430 | PsiElement (@NotNull PsiElement e, @NotNull List<? super PsiElement> toExtract) { super.collectAffectedElements(e, toExtract); return ((GrIfStatement)e.getParent()).getElseBranch(); } | collectAffectedElements |
29,431 | boolean (@NotNull PsiElement e) { return e instanceof GrTryCatchStatement; } | isApplicableTo |
29,432 | boolean (@NotNull PsiElement e) { return e instanceof GrCatchClause && tryHasSeveralCatches(e); } | isApplicableTo |
29,433 | boolean (PsiElement el) { return ((GrTryCatchStatement)el.getParent()).getCatchClauses().length > 1; } | tryHasSeveralCatches |
29,434 | PsiElement (@NotNull PsiElement e, @NotNull List<? super PsiElement> toExtract) { super.collectAffectedElements(e, toExtract); return findTopmostIfStatement(e); } | collectAffectedElements |
29,435 | PsiElement (PsiElement parent) { while (parent.getParent() instanceof GrIfStatement) { parent = parent.getParent(); } return parent; } | findTopmostIfStatement |
29,436 | boolean (@NotNull PsiElement e) { return e instanceof GrBlockStatement && e.getParent() instanceof GrStatementOwner; } | isApplicableTo |
29,437 | boolean (@NotNull PsiElement e) { return (isElseBlock(e) || isElseKeyword(e)) && isValidConstruct(e); } | isApplicableTo |
29,438 | boolean (PsiElement e) { PsiElement p = e.getParent(); return p instanceof GrIfStatement && PsiImplUtil.isLeafElementOfType(e, GroovyTokenTypes.kELSE); } | isElseKeyword |
29,439 | boolean (PsiElement e) { return ((GrIfStatement)e.getParent()).getElseBranch() != null; } | isValidConstruct |
29,440 | void (@NotNull PsiElement element, @NotNull Set<PsiElement> result) { PsiElement parent = element.getParent(); while (parent instanceof GrIfStatement) { result.add(parent); parent = parent.getParent(); } } | collectElementsToIgnore |
29,441 | boolean (@NotNull PsiElement e) { return e.getParent() instanceof GrConditionalExpression; } | isApplicableTo |
29,442 | PsiElement (@NotNull PsiElement e, @NotNull List<? super PsiElement> toExtract) { super.collectAffectedElements(e, toExtract); return e.getParent(); } | collectAffectedElements |
29,443 | Context () { return new Context(); } | createContext |
29,444 | boolean (@Nullable final PsiElement element) { if (element == null) return false; final PsiElement parent = element.getParent(); return parent instanceof GrIfStatement && element == ((GrIfStatement)parent).getElseBranch(); } | isElseBlock |
29,445 | boolean (PsiElement element) { return org.jetbrains.plugins.groovy.lang.psi.impl.PsiImplUtil.isWhiteSpaceOrNls(element); } | isWhiteSpace |
29,446 | String (@NotNull PsiElement e) { String text = e.getText(); if (text.length() > 20) text = text.substring(0, 17) + "..."; return CodeInsightBundle.message("unwrap.with.placeholder", text); } | getDescription |
29,447 | boolean (@NotNull PsiElement e) { return (e instanceof GrExpression) && e.getParent() instanceof GrArgumentList; } | isApplicableTo |
29,448 | PsiElement (@NotNull PsiElement e, @NotNull List<? super PsiElement> toExtract) { super.collectAffectedElements(e, toExtract); return e.getParent().getParent(); } | collectAffectedElements |
29,449 | boolean (@NotNull PsiElement e) { return e instanceof GrWhileStatement; } | isApplicableTo |
29,450 | UpdateCopyright (Project project, Module module, VirtualFile file, FileType base, CopyrightProfile options) { return new UpdateJavaFileCopyright(project, module, file, options) { @Override protected boolean accept() { return getFile() instanceof GroovyFile; } @Override protected PsiElement[] getImportsList() { return ((GroovyFile)getFile()).getImportStatements(); } @Override protected PsiElement getPackageStatement() { return ((GroovyFile)getFile()).getPackageDefinition(); } @Override protected void checkCommentsForTopClass(PsiClass topClass, int location, List<PsiComment> comments) { if (!(topClass instanceof GroovyScriptClass)) { super.checkCommentsForTopClass(topClass, location, comments); return; } final GroovyFile containingFile = (GroovyFile)topClass.getContainingFile(); PsiElement last = containingFile.getFirstChild(); while (last != null && !(last instanceof GrStatement)) { last = last.getNextSibling(); } checkComments(last, location == JavaOptions.LOCATION_BEFORE_CLASS, comments); } }; } | createInstance |
29,451 | boolean () { return getFile() instanceof GroovyFile; } | accept |
29,452 | PsiElement[] () { return ((GroovyFile)getFile()).getImportStatements(); } | getImportsList |
29,453 | PsiElement () { return ((GroovyFile)getFile()).getPackageDefinition(); } | getPackageStatement |
29,454 | void (PsiClass topClass, int location, List<PsiComment> comments) { if (!(topClass instanceof GroovyScriptClass)) { super.checkCommentsForTopClass(topClass, location, comments); return; } final GroovyFile containingFile = (GroovyFile)topClass.getContainingFile(); PsiElement last = containingFile.getFirstChild(); while (last != null && !(last instanceof GrStatement)) { last = last.getNextSibling(); } checkComments(last, location == JavaOptions.LOCATION_BEFORE_CLASS, comments); } | checkCommentsForTopClass |
29,455 | PsiType (@NotNull PsiVariable var, @NotNull PsiElement place) { if (!(var instanceof GrVariable) || !(place.getLanguage() == GroovyLanguage.INSTANCE)) return null; if (var instanceof GrField) return var.getType(); return TypeInferenceHelper.getVariableTypeInContext(place, (GrVariable)var); } | inferVarTypeAt |
29,456 | void (final Project project, final Template template, final Document document, final RangeMarker templateRange, final Editor editor) { if (!template.isToShortenLongNames()) return; PsiDocumentManager.getInstance(project).commitDocument(document); final PsiFile file = PsiUtilBase.getPsiFileInEditor(editor, project); if (file instanceof GroovyFile) { DumbService.getInstance(project).withAlternativeResolveEnabled(() -> JavaCodeStyleManager.getInstance(project).shortenClassReferences(file, templateRange.getStartOffset(), templateRange.getEndOffset())); } PsiDocumentManager.getInstance(project).doPostponedOperationsAndUnblockDocument(document); } | processText |
29,457 | String () { return CodeInsightBundle.message("dialog.edit.template.checkbox.shorten.fq.names"); } | getOptionName |
29,458 | boolean (final Template template) { return template.isToShortenLongNames(); } | isEnabled |
29,459 | boolean (@NotNull Template template, @NotNull TemplateContext context) { return false; } | isVisible |
29,460 | boolean (@NotNull final PsiFile file, final int offset) { if (PsiUtilCore.getLanguageAtOffset(file, offset).isKindOf(GroovyLanguage.INSTANCE)) { PsiElement element = file.findElementAt(offset); if (element instanceof PsiWhiteSpace) { return false; } return element != null && isInContext(element); } return false; } | isInContext |
29,461 | boolean (@NotNull PsiElement element) { return true; } | isInContext |
29,462 | boolean (@NotNull PsiElement element) { PsiElement stmt = PsiTreeUtil.findFirstParent(element, element11 -> PsiUtil.isExpressionStatement(element11)); return !isAfterExpression(element) && stmt != null && stmt.getTextRange().getStartOffset() == element.getTextRange().getStartOffset(); } | isInContext |
29,463 | boolean (@NotNull PsiElement element) { return isExpressionContext(element); } | isInContext |
29,464 | boolean (PsiElement element) { final PsiElement parent = element.getParent(); if (!(parent instanceof GrReferenceExpression)) { return false; } if (((GrReferenceExpression)parent).isQualified()) { return false; } if (parent.getParent() instanceof GrCall) { return false; } return !isAfterExpression(element); } | isExpressionContext |
29,465 | boolean (PsiElement element) { ProcessingContext context = new ProcessingContext(); if (PlatformPatterns.psiElement().afterLeaf( PlatformPatterns.psiElement().inside(PlatformPatterns.psiElement(GrExpression.class).save("prevExpr"))).accepts(element, context)) { PsiElement prevExpr = (PsiElement)context.get("prevExpr"); if (prevExpr.getTextRange().getEndOffset() <= element.getTextRange().getStartOffset()) { return true; } } return false; } | isAfterExpression |
29,466 | boolean (@NotNull PsiElement element) { if (PsiTreeUtil.getParentOfType(element, GrCodeBlock.class, false, GrTypeDefinition.class) != null) { return false; } if (element instanceof PsiComment) { return false; } return GroovyCompletionData.suggestClassInterfaceEnum(element) || GroovyCompletionData.suggestFinalDef(element); } | isInContext |
29,467 | void (@NotNull InsertionContext context, @NotNull PsiTypeLookupItem item) { GroovyCompletionUtil.addImportForItem(context.getFile(), context.getStartOffset(), item); } | handleInsert |
29,468 | List<SmartTypePointer> (TypeConstraint @NotNull [] constraints, @NotNull SmartTypePointerManager typePointerManager) { List<SmartTypePointer> result = new ArrayList<>(); for (TypeConstraint constraint : constraints) { if (constraint instanceof SubtypeConstraint) { PsiType type = constraint.getDefaultType(); result.add(typePointerManager.createSmartTypePointer(type)); } else if (constraint instanceof SupertypeConstraint) { processSuperTypes(constraint.getType(), result, typePointerManager); } } return result; } | createItems |
29,469 | void (@NotNull PsiType type, @NotNull List<SmartTypePointer> result, @NotNull SmartTypePointerManager typePointerManager) { result.add(typePointerManager.createSmartTypePointer(type)); PsiType[] superTypes = type.getSuperTypes(); for (PsiType superType : superTypes) { processSuperTypes(superType, result, typePointerManager); } } | processSuperTypes |
29,470 | PsiType (TypeConstraint @NotNull [] constraints, @NotNull GlobalSearchScope scope, @NotNull PsiManager manager) { if (constraints.length > 0) return constraints[0].getDefaultType(); return PsiType.getJavaLangObject(manager, scope); } | chooseType |
29,471 | Result (ExpressionContext context) { PsiDocumentManager.getInstance(context.getProject()).commitAllDocuments(); PsiType type = myTypePointer.getType(); if (type != null) { if (myAddDefType && (type.equalsToText(CommonClassNames.JAVA_LANG_OBJECT) || mySelectDef)) { return new TextResult(GrModifier.DEF); } type = TypesUtil.unboxPrimitiveTypeWrapper(type); if (type == null) return null; final PsiType finalType = type; return new PsiTypeResult(finalType, context.getProject()) { @Override public void handleRecalc(PsiFile psiFile, Document document, int segmentStart, int segmentEnd) { if (myItems.size() <= 1) { super.handleRecalc(psiFile, document, segmentStart, segmentEnd); } else { JavaTemplateUtil.updateTypeBindings(getType(), psiFile, document, segmentStart, segmentEnd, true); } } @Override public String toString() { return myItems.size() == 1 ? super.toString() : finalType.getPresentableText(); } }; } return null; } | calculateResult |
29,472 | void (PsiFile psiFile, Document document, int segmentStart, int segmentEnd) { if (myItems.size() <= 1) { super.handleRecalc(psiFile, document, segmentStart, segmentEnd); } else { JavaTemplateUtil.updateTypeBindings(getType(), psiFile, document, segmentStart, segmentEnd, true); } } | handleRecalc |
29,473 | String () { return myItems.size() == 1 ? super.toString() : finalType.getPresentableText(); } | toString |
29,474 | LookupElement[] (ExpressionContext context) { List<LookupElement> result = new ArrayList<>(); for (SmartTypePointer item : myItems) { PsiType type = TypesUtil.unboxPrimitiveTypeWrapper(item.getType()); if (type == null) continue; PsiTypeLookupItem lookupItem = PsiTypeLookupItem.createLookupItem(type, null, PsiTypeLookupItem.isDiamond(type), IMPORT_FIXER); result.add(lookupItem); } if (myAddDefType) { LookupElementBuilder def = LookupElementBuilder.create(GrModifier.DEF).bold(); if (mySelectDef) { result.add(0, def); } else { result.add(def); } } return result.toArray(LookupElement.EMPTY_ARRAY); } | calculateLookupItems |
29,475 | Result (ExpressionContext context) { PsiDocumentManager.getInstance(context.getProject()).commitDocument(context.getEditor().getDocument()); SuggestedNameInfo info = getNameInfo(context); if (info == null) return new TextResult("p"); String[] names = info.names; if (names.length > 0) { return new TextResult(names[0]); } return null; } | calculateResult |
29,476 | LookupElement[] (ExpressionContext context) { SuggestedNameInfo info = getNameInfo(context); if (info == null) return null; LookupElement[] result = new LookupElement[info.names.length]; int i = 0; for (String name : info.names) { result[i++] = LookupElementBuilder.create(name); } return result; } | calculateLookupItems |
29,477 | LookupFocusDegree () { return LookupFocusDegree.UNFOCUSED; } | getLookupFocusDegree |
29,478 | boolean (Editor editor, PsiFile psiFile) { return psiFile != null && GroovyFileType.GROOVY_FILE_TYPE.equals(psiFile.getFileType()); } | isValidFor |
29,479 | void (@NotNull final Project project, @NotNull Editor editor, @NotNull PsiFile file) { if (!EditorModificationUtil.checkModificationAllowed(editor)) return; PsiClass aClass = OverrideImplementUtil.getContextClass(project, editor, file, true); if (aClass instanceof GrTypeDefinition typeDefinition) { if (GroovyOverrideImplementExploreUtil.getMethodSignaturesToImplement(typeDefinition).isEmpty()) { HintManager.getInstance().showErrorHint(editor, JavaBundle.message("implement.method.no.methods.to.implement")); return; } GroovyOverrideImplementUtil.chooseAndImplementMethods(project, editor, typeDefinition); } } | invoke |
29,480 | boolean () { return false; } | startInWriteAction |
29,481 | GenerationInfo (PsiMethod method, boolean mergeIfExists) { if (method instanceof GrMethod) { return new GroovyGenerationInfo<>((GrMethod)method, mergeIfExists); } return null; } | createGenerationInfo |
29,482 | Consumer<PsiMethod> (final PsiClass targetClass, final PsiMethod baseMethod, final boolean toCopyJavaDoc, final boolean insertOverrideIfPossible) { return new PsiMethodConsumer(targetClass, toCopyJavaDoc, baseMethod, insertOverrideIfPossible); } | createDecorator |
29,483 | void (PsiMethod method) { Project project = myTargetClass.getProject(); if (myToCopyJavaDoc) { PsiDocComment baseMethodDocComment = myBaseMethod.getDocComment(); if (baseMethodDocComment != null) { GrDocComment docComment = GroovyPsiElementFactory.getInstance(project).createDocCommentFromText(baseMethodDocComment.getText()); GrDocCommentUtil.setDocComment(((GrMethod)method), docComment); } } else { PsiDocComment docComment = method.getDocComment(); if (docComment != null) { docComment.delete(); } } if (myInsertOverrideIfPossible) { if (OverrideImplementUtil.canInsertOverride(method, myTargetClass) && JavaPsiFacade.getInstance(project).findClass(CommonClassNames.JAVA_LANG_OVERRIDE, myTargetClass.getResolveScope()) != null && !method.getModifierList().hasAnnotation(CommonClassNames.JAVA_LANG_OVERRIDE)) { method.getModifierList().addAnnotation(CommonClassNames.JAVA_LANG_OVERRIDE); } } else { PsiAnnotation annotation = method.getModifierList().findAnnotation(CommonClassNames.JAVA_LANG_OVERRIDE); if (annotation != null) { annotation.delete(); } } } | consume |
29,484 | boolean (Editor editor, PsiFile psiFile) { return psiFile != null && GroovyFileType.GROOVY_FILE_TYPE.equals(psiFile.getFileType()); } | isValidFor |
29,485 | void (@NotNull final Project project, @NotNull Editor editor, @NotNull PsiFile file) { if (!EditorModificationUtil.checkModificationAllowed(editor)) return; PsiClass aClass = OverrideImplementUtil.getContextClass(project, editor, file, true); if (aClass instanceof GrTypeDefinition typeDefinition) { if (GroovyOverrideImplementExploreUtil.getMethodSignaturesToOverride(typeDefinition).isEmpty()) { HintManager.getInstance().showErrorHint(editor, JavaBundle.message("override.methods.error.no.methods")); return; } GroovyOverrideImplementUtil.chooseAndOverrideMethods(project, editor, typeDefinition); } } | invoke |
29,486 | boolean () { return false; } | startInWriteAction |
29,487 | GenerationInfo (PsiMethod method, boolean mergeIfExists) { return null; } | createGenerationInfo |
29,488 | Consumer<PsiMethod> (PsiClass targetClass, PsiMethod baseMethod, boolean toCopyJavaDoc, boolean insertOverrideIfPossible) { return new GroovyMethodImplementor.PsiMethodConsumer(targetClass, toCopyJavaDoc, baseMethod, insertOverrideIfPossible); } | createDecorator |
29,489 | ModuleWizardStep (@NotNull SettingsStep settingsStep) { return new GroovySdkForNewModuleWizardStep(this, settingsStep); } | modifyProjectTypeStep |
29,490 | void (@NotNull ModifiableRootModel rootModel) { Project project = rootModel.getProject(); if (!project.isInitialized()) { StartupManager.getInstance(project).runAfterOpened(() -> doAddGroovySample(rootModel)); } else { doAddGroovySample(rootModel); } } | addGroovySample |
29,491 | void (@NotNull ModifiableRootModel rootModel) { String rootPath = getContentEntryPath(); if (rootPath == null) { return; } VirtualFile root = LocalFileSystem.getInstance().refreshAndFindFileByPath(FileUtil.toSystemIndependentName(rootPath + "/" + myPathToGroovySample)); if (root == null) { return; } GroovyProjectWizardUtils.createSampleGroovyCodeFile(this, rootModel.getProject(), root); } | doAddGroovySample |
29,492 | ModuleWizardStep[] (@NotNull WizardContext wizardContext, @NotNull ModulesProvider modulesProvider) { return ModuleWizardStep.EMPTY_ARRAY; } | createWizardSteps |
29,493 | void (@NotNull String path) { myPathToGroovySample = path; } | addGroovySample |
29,494 | Icon () { return JetgroovyIcons.Groovy.Groovy_16x16; } | getNodeIcon |
29,495 | String () { return GroovyBundle.message("module.with.groovy"); } | getDescription |
29,496 | String () { return GroovyBundle.message("language.groovy"); } | getPresentableName |
29,497 | String () { return "Groovy"; } | getGroupName |
29,498 | String () { return "Groovy"; } | getParentGroup |
29,499 | int () { return 60; } | getWeight |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.