Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
56,900
boolean (Class hintClass) { return true; }
isClassAcceptable
56,901
void (@NotNull PsiReferenceRegistrar registrar) { registrar.registerReferenceProvider(FXML_PATTERN, new JavaFxFileReferenceProvider(JavaFxFileTypeFactory.FXML_EXTENSION)); registrar.registerReferenceProvider(STYLESHEET_PATTERN, new JavaFxFileReferenceProvider("css") { @Override protected String preprocessValue(String v...
registerReferenceProviders
56,902
String (String value) { if (value.endsWith(".bss")) { return StringUtil.trimEnd(value, ".bss") + ".css"; } return value; }
preprocessValue
56,903
PsiReference[] (@NotNull PsiClass controllerClass, XmlAttributeValue xmlAttributeValue, ProcessingContext context) { final String attValueString = xmlAttributeValue.getValue(); LOG.assertTrue(attValueString.startsWith("#")); final XmlAttribute attribute = (XmlAttribute)xmlAttributeValue.getParent(); if (attribute == nu...
getReferencesByElement
56,904
PsiClass () { return myPsiClass; }
getPsiClass
56,905
PsiReference[] (final @NotNull PsiClass aClass, final XmlAttributeValue xmlAttributeValue, ProcessingContext context) { final String name = xmlAttributeValue.getValue(); PsiMember fieldOrGetterMethod = aClass.findFieldByName(name, true); if (fieldOrGetterMethod == null) { final PsiMethod[] methods = aClass.findMethodsB...
getReferencesByElement
56,906
XmlAttributeValue () { return myXmlAttributeValue; }
getXmlAttributeValue
56,907
PsiClass () { return myAClass; }
getAClass
56,908
boolean () { if (myFieldOrMethod == null && myAClass != null) { final XmlFile xmlFile = (XmlFile)myXmlAttributeValue.getContainingFile(); if (xmlFile.getRootTag() != null && !JavaFxPsiUtil.isOutOfHierarchy(myXmlAttributeValue)) { return true; } } return false; }
isUnresolved
56,909
PsiClass () { final PsiElement xmlAttribute = myXmlAttributeValue.getParent(); final XmlTag xmlTag = ((XmlAttribute)xmlAttribute).getParent(); if (xmlTag == null) return null; final PsiElement parentTag = xmlTag.getParent(); if (parentTag == null) return null; String className = null; if (parentTag instanceof XmlDocume...
getGuessedTagClass
56,910
boolean (@NotNull PsiElement target) { if (!(target instanceof PsiField)) return false; PsiClass psiClass = ((PsiField)target).getContainingClass(); return psiClass != null && JavaFxCommonNames.JAVAFX_SCENE_COLOR.equals(psiClass.getQualifiedName()); }
acceptsTarget
56,911
void (@NotNull CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet result) { PsiReference reference = parameters.getPosition().getContainingFile().findReferenceAt(parameters.getOffset()); if (reference instanceof JavaFxTagNameReference) { addJavaFxTagVariants((JavaFxTagName...
addCompletions
56,912
void (JavaFxTagNameReference reference, CompletionResultSet result) { final XmlTag xmlTag = (XmlTag)reference.getElement(); List<String> namespaces = Arrays.asList(xmlTag.knownNamespaces()); final List<XmlElementDescriptor> variants = TagNameVariantCollector.getTagDescriptors(xmlTag, namespaces, null); for (XmlElementD...
addJavaFxTagVariants
56,913
void (@NotNull InsertionContext context, @NotNull LookupElement item) { super.handleInsert(context, item); final Object object = item.getObject(); if (object instanceof JavaFxClassTagDescriptorBase) { final XmlFile xmlFile = (XmlFile)context.getFile(); final String shortName = ((JavaFxClassTagDescriptorBase)object).get...
handleInsert
56,914
PsiReference[] (@NotNull PsiElement element, String value, int startInElement) { final int atSignIndex = value.indexOf('@'); if (atSignIndex >= 0 && (atSignIndex == 0 || StringUtil.trimLeading(value).startsWith("@"))) { value = value.substring(atSignIndex + 1); startInElement += atSignIndex + 1; } final FileReferenceSe...
collectRefs
56,915
Condition<PsiFileSystemItem> () { return item -> { if (item instanceof PsiDirectory) return true; final VirtualFile virtualFile = item.getVirtualFile(); if (virtualFile == null) return false; return myAcceptedFileTypes.contains(virtualFile.getExtension()); }; }
getReferenceCompletionFilter
56,916
int (@NotNull String propertyName, @NotNull PsiReferenceBase reference, int positionInExpression) { final TextRange range = reference.getRangeInElement(); final int startOffset = range.getStartOffset() + positionInExpression; final int endOffset = startOffset + propertyName.length(); reference.setRangeInElement(new Tex...
adjustTextRange
56,917
PsiReferenceBase (XmlAttributeValue xmlAttributeValue, String referencesId, Map<String, XmlAttributeValue> fileIds, Map<String, TypeMatch> typeMatches, PsiClass controllerClass) { if (controllerClass != null && !FxmlConstants.CONTROLLER.equals(referencesId)) { final PsiField controllerField = controllerClass.findFieldB...
getIdReferenceBase
56,918
double (TypeMatch match) { return match != null ? match.myPriority : 0.0; }
getPriority
56,919
TypeMatch (PsiClass valueClass, PsiClass targetPropertyClass, boolean isConvertible) { if (valueClass == null || targetPropertyClass == null) return UNDEFINED; if (InheritanceUtil.isInheritorOrSelf(valueClass, targetPropertyClass, true)) return ASSIGNABLE; if (isConvertible) return CONVERTIBLE; return INCOMPATIBLE; }
getMatch
56,920
boolean () { return FxmlConstants.CONTROLLER.equals(myReferencesId) || myReferencesId.endsWith(FxmlConstants.CONTROLLER_SUFFIX); }
isBuiltIn
56,921
Object[] (@NotNull PsiType propertyType, @NotNull Project project) { final PsiType resolvedType = JavaFxPsiUtil.getWritablePropertyType(propertyType, project); final List<LookupElement> objs = new ArrayList<>(); final Collection<PsiMember> readableProperties = JavaFxPsiUtil.getReadableProperties(myPsiClass).values(); f...
collectProperties
56,922
String () { return myFieldName; }
getPropertyName
56,923
Color (@NotNull PsiElement element) { if (!(element instanceof PsiIdentifier)) return null; PsiElement parent = element.getParent(); PsiElement gp = parent == null ? null : parent.getParent(); if (gp instanceof PsiNewExpression newExpression && ((PsiNewExpression)gp).getClassReference() == parent) { if (isColorClass(Ps...
getColorFrom
56,924
boolean (@Nullable PsiClass aClass) { return aClass != null && JavaFxCommonNames.JAVAFX_SCENE_COLOR.equals(aClass.getQualifiedName()); }
isColorClass
56,925
Integer (Object value) { if (value instanceof Number) { int component = ((Number)value).intValue(); if (component >= 0 && component <= 255) { return component; } } return null; }
getComponent
56,926
Integer (Object value) { if (value instanceof Number) { double doubleValue = ((Number)value).doubleValue(); int component = (int)(doubleValue * 255 + 0.5); if (component >= 0 && component <= 255) { return component; } } return null; }
getScaledComponent
56,927
Float (Object value, boolean checkRange) { if (value instanceof Number) { float component = ((Number)value).floatValue(); if (!checkRange || component >= 0.0f && component <= 1.0f) { return component; } } return null; }
getHsbComponent
56,928
void (@NotNull PsiElement element, @NotNull Color color) { Runnable command = null; if (element instanceof PsiNewExpression expr) { PsiExpressionList argumentList = expr.getArgumentList(); assert argumentList != null; command = () -> replaceConstructorArgs(color, argumentList); } if (element instanceof PsiMethodCallExp...
setColorTo
56,929
void (@NotNull Color color, PsiExpressionList argumentList) { PsiElementFactory factory = JavaPsiFacade.getElementFactory(argumentList.getProject()); String text = JavaFxCommonNames.JAVAFX_SCENE_COLOR + "(" + formatScaledComponent(color.getRed()) + "," + formatScaledComponent(color.getGreen()) + "," + formatScaledCompo...
replaceConstructorArgs
56,930
void (@NotNull PsiMethodCallExpression methodCall, @NotNull String callText) { PsiElementFactory factory = JavaPsiFacade.getElementFactory(methodCall.getProject()); PsiMethodCallExpression newCall = (PsiMethodCallExpression)factory.createExpressionFromText(callText, methodCall); methodCall.getArgumentList().replace(new...
replaceColor
56,931
Color (Object hValue, Object sValue, Object bValue, Object alphaValue) { Float h = getHsbComponent(hValue, false); Float s = getHsbComponent(sValue, true); Float b = getHsbComponent(bValue, true); Integer alpha = getScaledComponent(alphaValue); if (h != null && s != null && b != null && alpha != null) { Color hsbColor ...
getHsbColor
56,932
String (@NotNull Color color) { return getCallText(color, COLOR, GRAY, JavaFxColorProvider::formatScaledComponent); }
getScaledRgbCallText
56,933
String (@NotNull Color color) { return getCallText(color, RGB, GRAY_RGB, String::valueOf); }
getRgbCallText
56,934
String (@NotNull Color color, String colorMethodName, String grayMethodName, IntFunction<String> formatter) { String methodName; StringJoiner args = new StringJoiner(",", "(", ")"); if (color.getRed() == color.getGreen() && color.getRed() == color.getBlue()) { methodName = grayMethodName; args.add(formatter.apply(color...
getCallText
56,935
String (int colorComponent) { DecimalFormat df = new DecimalFormat(DECIMAL_FORMAT_PATTERN, DECIMAL_FORMAT_SYMBOLS); // not thread safe - can't have a constant return df.format(colorComponent / 255.0); }
formatScaledComponent
56,936
String (Color color) { float[] hsb = Color.RGBtoHSB(color.getRed(), color.getGreen(), color.getBlue(), null); DecimalFormat df = new DecimalFormat(DECIMAL_FORMAT_PATTERN, DECIMAL_FORMAT_SYMBOLS); StringJoiner args = new StringJoiner(",", "(", ")"); args.add(df.format(hsb[0] * 360)); args.add(df.format(hsb[1])); args.ad...
getHsbCallText
56,937
boolean (@NotNull PsiFile file) { return JavaFxFileTypeFactory.isFxml(file); }
supports
56,938
Runnable (final @NotNull PsiFile file) { VirtualFile vFile = file.getVirtualFile(); if (vFile instanceof VirtualFileWindow) vFile = ((VirtualFileWindow)vFile).getDelegate(); final Project project = file.getProject(); if (vFile == null || !ProjectRootManager.getInstance(project).getFileIndex().isInSourceContent(vFile)) ...
processFile
56,939
void (final @NotNull List<ImportHelper.Import> names, final @NotNull Collection<String> demandedForNested, @NotNull XmlFile file) { file.accept(new JavaFxUsedClassesVisitor() { @Override protected void appendClassName(String fqn) { names.add(new ImportHelper.Import(fqn, false)); } @Override protected void appendDemande...
collectNamesToImport
56,940
void (String fqn) { names.add(new ImportHelper.Import(fqn, false)); }
appendClassName
56,941
void (@NotNull String packageName) { demandedForNested.add(packageName); }
appendDemandedPackageName
56,942
void (@NotNull XmlProlog prolog) {}
visitXmlProlog
56,943
void (@NotNull XmlProcessingInstruction processingInstruction) {}
visitXmlProcessingInstruction
56,944
void (@NotNull XmlAttribute attribute) { final XmlAttributeDescriptor descriptor = attribute.getDescriptor(); if (descriptor instanceof JavaFxStaticSetterAttributeDescriptor) { final PsiElement declaration = descriptor.getDeclaration(); if (declaration instanceof PsiMember) { appendClassName(((PsiMember)declaration).ge...
visitXmlAttribute
56,945
void (@NotNull XmlTag tag) { super.visitXmlTag(tag); final XmlElementDescriptor descriptor = tag.getDescriptor(); if (descriptor instanceof JavaFxClassTagDescriptorBase) { appendClassName(descriptor.getDeclaration()); } else if (descriptor instanceof JavaFxPropertyTagDescriptor && ((JavaFxPropertyTagDescriptor)descript...
visitXmlTag
56,946
void (PsiElement declaration) { if (declaration instanceof PsiClass psiClass) { final String ownerClassQN = getTopmostOwnerClassQualifiedName(psiClass); if (ownerClassQN != null) { appendClassName(ownerClassQN); final String ownerClassPackageName = StringUtil.getPackageName(ownerClassQN); if (!StringUtil.isEmpty(ownerC...
appendClassName
56,947
void (@NotNull PsiElement element, final @NotNull Collection<? super RelatedItemLineMarkerInfo<?>> result) { PsiElement f; if (element instanceof PsiIdentifier && (f = element.getParent()) instanceof PsiField) { final PsiField field = (PsiField)f; if (JavaFxPsiUtil.isVisibleInFxml(field) && !field.hasModifierProperty(P...
collectNavigationMarkers
56,948
void (MouseEvent e, PsiIdentifier fieldName) { List<PsiElement> relatedItems = new ArrayList<>(); PsiElement f = fieldName.getParent(); if (f instanceof PsiField) { collectTargets((PsiField)f, relatedItems, Functions.id(), false); } if (relatedItems.size() == 1) { NavigationUtil.activateFileWithPsiElement(relatedItems....
navigate
56,949
boolean (@NotNull Project project, Editor editor, @NotNull PsiElement element) { if (element instanceof XmlToken && ((XmlToken)element).getTokenType() == XmlTokenType.XML_NAME && element.getParent() instanceof XmlTag tag) { for (XmlTag xmlTag : tag.getSubTags()) { if (xmlTag.getAttribute(FxmlConstants.FX_VALUE) == null...
isAvailable
56,950
String () { return JavaFXBundle.message("javafx.collapse.subtag.to.attribute.intention.family.name"); }
getFamilyName
56,951
Set<String> (Project project) { final List<ScriptEngineFactory> engineFactories = new ScriptEngineManager(composeUserClassLoader(project)).getEngineFactories(); if (engineFactories != null) { final Set<String> availableNames = new TreeSet<>(); for (ScriptEngineFactory factory : engineFactories) { final String engineNam...
getAvailableLanguages
56,952
ClassLoader (Project project) { final List<URL> urls = new ArrayList<>(); final List<String> list = OrderEnumerator.orderEntries(project).recursively().librariesOnly().runtimeOnly().getPathsList().getPathList(); for (String path : list) { try { urls.add(new File(FileUtil.toSystemIndependentName(path)).toURI().toURL());...
composeUserClassLoader
56,953
void (final Project project, final XmlFile containingFile, final String languageName) { WriteCommandAction.writeCommandAction(project).withName(getFamilyName()).run(() -> { final PsiFileFactory factory = PsiFileFactory.getInstance(project); final XmlFile dummyFile = (XmlFile)factory.createFileFromText("_Dummy_.fxml", X...
registerPageLanguage
56,954
boolean (@NotNull Project project, Editor editor, @NotNull PsiElement element) { if (ContainerUtil.isEmpty(getAvailableLanguages(project))) { return false; } setText(getFamilyName()); return element.isValid(); }
isAvailable
56,955
String () { return JavaFXBundle.message("javafx.inject.page.language.intention.family.name"); }
getFamilyName
56,956
boolean () { return false; }
startInWriteAction
56,957
String () { return JavaFXBundle.message("javafx.wrap.with.fx.define.intention.family.name"); }
getFamilyName
56,958
boolean (@NotNull Project project, Editor editor, @NotNull PsiElement element) { setText( JavaFXBundle.message("javafx.wrap.id.with.fx.define.intention",myId)); return myTag.isValid(); }
isAvailable
56,959
boolean (@NotNull Project project, Editor editor, @NotNull PsiElement element) { if (element instanceof XmlToken && ((XmlToken)element).getTokenType() == XmlTokenType.XML_NAME) { final PsiElement parent = element.getParent(); if (parent instanceof XmlAttribute) { final XmlAttributeDescriptor descriptor = ((XmlAttribute...
isAvailable
56,960
String () { return JavaFXBundle.message("javafx.expand.attribute.to.tag.intention.family.name"); }
getFamilyName
56,961
PsiElementVisitor (final @NotNull ProblemsHolder holder, boolean isOnTheFly, @NotNull LocalInspectionToolSession session) { if (!JavaFxFileTypeFactory.isFxml(session.getFile())) return PsiElementVisitor.EMPTY_VISITOR; return new XmlElementVisitor() { @Override public void visitXmlTag(@NotNull XmlTag tag) { super.visitX...
buildVisitor
56,962
void (@NotNull XmlTag tag) { super.visitXmlTag(tag); final XmlElementDescriptor descriptor = tag.getDescriptor(); if (descriptor instanceof JavaFxPropertyTagDescriptor) { final PsiClass parentTagClass = JavaFxPsiUtil.getTagClass(tag.getParentTag()); if (parentTagClass != null) { final String propertyName = JavaFxPsiUti...
visitXmlTag
56,963
boolean (@NotNull PsiClass parentTagClass, @NotNull String propertyName, @NotNull XmlTag tag) { final XmlTag[] subTags = tag.getSubTags(); if (subTags.length != 0) { final PsiClass tagValueClass = JavaFxPsiUtil.getTagValueClass(subTags[subTags.length - 1]); if (JavaFxPsiUtil.isObservableCollection(tagValueClass)) { fin...
isCollectionAssignment
56,964
void (String fqn) { usedNames.add(fqn); final String packageName = StringUtil.getPackageName(fqn); if (!StringUtil.isEmpty(packageName)) { usedNames.add(packageName); } }
appendClassName
56,965
void (@NotNull String packageName) { usedNames.add(packageName); }
appendDemandedPackageName
56,966
String () { return QuickFixBundle.message("optimize.imports.fix"); }
getFamilyName
56,967
void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement psiElement = descriptor.getPsiElement(); if (psiElement == null) return; final PsiFile file = psiElement.getContainingFile(); if (file == null || !JavaFxFileTypeFactory.isFxml(file)) return; new JavaFxImportsOptimizer().processFil...
applyFix
56,968
String () { return JavaFXBundle.message("inspection.javafx.default.tag.unwrap.tag.fix.name", myTagName); }
getName
56,969
String () { return JavaFXBundle.message("inspection.javafx.default.tag.unwrap.tag.fix.family.name"); }
getFamilyName
56,970
void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement element = descriptor.getPsiElement(); if (element != null) { final PsiFile containingFile = element.getContainingFile(); LOG.assertTrue(containingFile != null && JavaFxFileTypeFactory.isFxml(containingFile), containingFile == null...
applyFix
56,971
PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly, @NotNull LocalInspectionToolSession session) { if (!JavaFxFileTypeFactory.isFxml(session.getFile())) return PsiElementVisitor.EMPTY_VISITOR; return new XmlElementVisitor() { @Override public void visitXmlAttributeValue(@NotNull XmlAttributeValue xml...
buildVisitor
56,972
void (@NotNull XmlAttributeValue xmlAttributeValue) { super.visitXmlAttributeValue(xmlAttributeValue); final PsiElement valueParent = xmlAttributeValue.getParent(); if (!(valueParent instanceof XmlAttribute attribute)) return; final List<PsiMethod> eventHandlerMethods = getEventHandlerMethods(attribute); if (eventHandl...
visitXmlAttributeValue
56,973
List<PsiMethod> (@NotNull XmlAttribute attribute) { final PsiClass controllerClass = JavaFxPsiUtil.getControllerClass(attribute.getContainingFile()); if (controllerClass == null) return Collections.emptyList(); final String valueText = attribute.getValue(); if (valueText == null || !valueText.startsWith("#")) return Co...
getEventHandlerMethods
56,974
boolean (@NotNull PsiMethod method) { final PsiParameter[] parameters = method.getParameterList().getParameters(); return parameters.length == 0 || parameters.length == 1 && InheritanceUtil.isInheritor(parameters[0].getType(), JavaFxCommonNames.JAVAFX_EVENT); }
hasEventArgument
56,975
OptPane () { return pane( checkbox("myDetectNonVoidReturnType", JavaFXBundle.message("inspection.javafx.event.handler.create.options.panel"))); }
getOptionsPane
56,976
void (@NotNull XmlAttribute attribute, @NotNull PsiClassType eventType, @NotNull List<LocalQuickFix> quickFixes) { final XmlTag xmlTag = attribute.getParent(); if (xmlTag == null) return; final XmlAttribute idAttribute = xmlTag.getAttribute(FxmlConstants.FX_ID); if (idAttribute == null) return; final XmlAttributeValue ...
collectFieldTypeFixes
56,977
boolean () { return false; }
startInWriteAction
56,978
String () { return myText; }
getText
56,979
boolean (@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { return startElement instanceof XmlAttribute; }
isAvailable
56,980
void (@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { if (!FileModificationService.getInstance().prepareFileForWrite(file)) return; if (!(startElement instanceof XmlAttribute attribute)) return; final List<PsiMethod> eventHandlerMethods = getEventHand...
invoke
56,981
PsiElementVisitor (final @NotNull ProblemsHolder holder, final boolean isOnTheFly, @NotNull LocalInspectionToolSession session) { if (!JavaFxFileTypeFactory.isFxml(session.getFile())) return PsiElementVisitor.EMPTY_VISITOR; return new XmlElementVisitor() { @Override public void visitXmlAttribute(@NotNull XmlAttribute a...
buildVisitor
56,982
void (@NotNull XmlAttribute attribute) { super.visitXmlAttribute(attribute); if (FxmlConstants.FX_ID.equals(attribute.getName())) { final XmlAttributeValue valueElement = attribute.getValueElement(); if (valueElement != null && valueElement.getTextLength() > 0) { final PsiClass controllerClass = JavaFxPsiUtil.getContro...
visitXmlAttribute
56,983
PsiClass (final XmlAttributeValue attributeValue) { if (attributeValue == null) return null; final PsiElement parent = attributeValue.getParent(); if (parent instanceof XmlAttribute) { return checkClass(((XmlAttribute)parent).getParent()); } return null; }
checkContext
56,984
PsiClass (XmlTag tag) { if (tag != null) { final XmlElementDescriptor descriptor = tag.getDescriptor(); if (descriptor instanceof JavaFxClassTagDescriptorBase) { final PsiElement declaration = descriptor.getDeclaration(); if (declaration instanceof PsiClass) { return (PsiClass)declaration; } } else if (descriptor insta...
checkClass
56,985
String () { return CommonQuickFixBundle.message("fix.create.title.x", JavaElementKind.FIELD.object(), myCanonicalName); }
getName
56,986
String () { return QuickFixBundle.message("create.field.from.usage.family"); }
getFamilyName
56,987
void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement psiElement = descriptor.getPsiElement(); final XmlAttributeValue attrValue = PsiTreeUtil.getParentOfType(psiElement, XmlAttributeValue.class, false); assert attrValue != null; final JavaFxFieldIdReferenceProvider.JavaFxControllerF...
applyFix
56,988
boolean (@NotNull PsiElement element) { if (element instanceof PsiMethod) { return isImplicitMethodUsage((PsiMethod)element); } return isImplicitWrite(element); }
isImplicitUsage
56,989
boolean (@NotNull PsiMethod method) { if (!isImplicitFxmlAccess(method)) return false; if (isInvokedByFxmlLoader(method)) { return true; } final GlobalSearchScope projectScope = GlobalSearchScope.projectScope(method.getProject()); final GlobalSearchScope fxmlScope = new JavaFxScopeEnlarger.GlobalFxmlSearchScope(project...
isImplicitMethodUsage
56,990
boolean (PsiMember member, GlobalSearchScope scope) { final String name = member.getName(); if (name == null) return false; final Project project = member.getProject(); final PsiSearchHelper searchHelper = PsiSearchHelper.getInstance(project); final PsiSearchHelper.SearchCostResult searchCost = searchHelper.isCheapEnou...
isFxmlUsage
56,991
boolean (@NotNull PsiElement element) { return false; }
isImplicitRead
56,992
boolean (@NotNull PsiElement element) { if (element instanceof PsiField field) { if (!isImplicitFxmlAccess(field)) return false; final String fieldName = field.getName(); final PsiClass containingClass = field.getContainingClass(); if (containingClass == null) return false; final String qualifiedName = containingClass....
isImplicitWrite
56,993
boolean (@NotNull PsiMethod method) { return "initialize".equals(method.getName()) && method.getParameterList().isEmpty() && isDeclaredInControllerClass(method); }
isInvokedByFxmlLoader
56,994
boolean (@NotNull PsiField field) { final String fieldName = field.getName(); final PsiType fieldType = field.getType(); return ("resources".equals(fieldName) && InheritanceUtil.isInheritor(fieldType, "java.util.ResourceBundle") || "location".equals(fieldName) && InheritanceUtil.isInheritor(fieldType, "java.net.URL")) ...
isInjectedByFxmlLoader
56,995
boolean (@NotNull PsiMember member) { final PsiClass containingClass = member.getContainingClass(); final String qualifiedName = containingClass != null ? containingClass.getQualifiedName() : null; return qualifiedName != null && !JavaFxControllerClassIndex.findFxmlsWithController(member.getProject(), qualifiedName).is...
isDeclaredInControllerClass
56,996
boolean (PsiModifierListOwner member) { return !member.hasModifierProperty(PsiModifier.PUBLIC) && AnnotationUtil.isAnnotated(member, JavaFxCommonNames.JAVAFX_FXML_ANNOTATION, 0); }
isImplicitFxmlAccess
56,997
PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly, @NotNull LocalInspectionToolSession session) { if (!JavaFxFileTypeFactory.isFxml(session.getFile())) return PsiElementVisitor.EMPTY_VISITOR; return new XmlElementVisitor() { @Override public void visitXmlAttribute(@NotNull XmlAttribute attribute) { ...
buildVisitor
56,998
void (@NotNull XmlAttribute attribute) { super.visitXmlAttribute(attribute); final String attributeValue = attribute.getValue(); if (attributeValue == null) return; final XmlAttributeDescriptor descriptor = attribute.getDescriptor(); if (descriptor instanceof JavaFxPropertyAttributeDescriptor) { final PsiClass psiClass...
visitXmlAttribute
56,999
void (@NotNull XmlTag tag) { super.visitXmlTag(tag); if (tag.getSubTags().length != 0) return; final XmlElementDescriptor descriptor = tag.getDescriptor(); if (descriptor instanceof JavaFxPropertyTagDescriptor) { final PsiClass psiClass = ((JavaFxPropertyTagDescriptor)descriptor).getPsiClass(); if (psiClass != null && ...
visitXmlTag