Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
57,000 | void (@NotNull PsiClass psiClass, @NotNull String propertyName, @NotNull String propertyValue, @NotNull PsiElement location) { final PsiMember declaration = JavaFxPsiUtil.getWritableProperties(psiClass).get(propertyName); final String boxedQName = JavaFxPsiUtil.getBoxedPropertyType(psiClass, declaration); if (CommonCla... | validateColorComponent |
57,001 | 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 |
57,002 | void (@NotNull XmlAttribute attribute) { super.visitXmlAttribute(attribute); final XmlAttributeDescriptor descriptor = attribute.getDescriptor(); if (!(descriptor instanceof JavaFxPropertyAttributeDescriptor)) return; final String attributeName = attribute.getName(); final String attributeValue = attribute.getValue(); ... | visitXmlAttribute |
57,003 | void (@NotNull XmlTag tag) { super.visitXmlTag(tag); final XmlElementDescriptor descriptor = tag.getDescriptor(); if (!(descriptor instanceof JavaFxPropertyTagDescriptor)) { return; } if (tag.getSubTags().length != 0) return; final String tagText = tag.getValue().getTrimmedText(); if (tagText.startsWith("$") || tagText... | visitXmlTag |
57,004 | boolean (@Nullable PsiClass containingClass, @NotNull String attributeValue, @NotNull String defaultValue, @Nullable PsiElement declaration) { if (!(declaration instanceof PsiMember)) return false; final String boxedQName = JavaFxPsiUtil.getBoxedPropertyType(containingClass, (PsiMember)declaration); if (boxedQName == n... | isEqualValue |
57,005 | boolean (Object object) { if (object instanceof SceneBuilderInfo info) { return Objects.equals(path, info.path) && Objects.equals(libPath, info.libPath); } return false; } | equals |
57,006 | SceneBuilderInfo (Project project, boolean choosePathIfEmpty) { JavaFxSettings settings = JavaFxSettings.getInstance(); String pathToSceneBuilder = settings.getPathToSceneBuilder(); if (StringUtil.isEmptyOrSpaces(pathToSceneBuilder) || !new File(pathToSceneBuilder).exists()) { VirtualFile sceneBuilderFile = null; if (c... | get |
57,007 | String (String... paths) { File sb = FileUtil.findFirstThatExist(paths); return sb == null ? null : sb.getPath(); } | findFirstThatExist |
57,008 | void (String programFilesPath, List<String> suspiciousPaths, String... sb) { for (String sbi : sb) { suspiciousPaths.add(new File(programFilesPath, "Oracle").getPath() + sbi); } } | fillPaths |
57,009 | URLClassLoader () { return new URLClassLoader(getLibUrls(), SceneBuilderUtil.class.getClassLoader()); } | createClassLoader |
57,010 | void () { ourLoader = createClassLoader(); } | updateLoader |
57,011 | URL[] () { try { final Path javaFxJar = Paths.get(PathUtil.getJarPathForClass(SceneBuilderUtil.class)); boolean isDevMode = Files.isDirectory(javaFxJar); final Path sceneBuilder = getSceneBuilder11Path(); final Path sceneBuilderImpl = getJarPath(isDevMode ? "intellij.javaFX.sceneBuilder" : "rt/sceneBuilderBridge.jar", ... | getLibUrls |
57,012 | Path () { return Paths.get(PathManager.getConfigPath(), "plugins", "javaFX", "rt", SCENE_BUILDER_VERSION).resolve(SCENE_BUILDER_KIT_FULL_NAME); } | getSceneBuilder11Path |
57,013 | Path (@NotNull String relativePath, @NotNull Path javafxRuntimePath) { return javafxRuntimePath.getParent().resolve(relativePath); } | getJarPath |
57,014 | boolean (@NotNull Project project, @NotNull VirtualFile file) { return JavaFxFileTypeFactory.FXML_EXTENSION.equalsIgnoreCase(file.getExtension()) && Registry.is("embed.scene.builder"); } | accept |
57,015 | boolean () { return false; } | acceptRequiresReadAction |
57,016 | FileEditor (@NotNull Project project, @NotNull VirtualFile file) { return new SceneBuilderEditor(project, file); } | createEditor |
57,017 | String () { return "JavaFX-Scene-Builder"; } | getEditorTypeId |
57,018 | FileEditorPolicy () { return FileEditorPolicy.PLACE_AFTER_DEFAULT_EDITOR; } | getPolicy |
57,019 | void () { myErrorLabel.setOpaque(false); myErrorLabel.addHyperlinkListener(new HyperlinkListener() { @Override public void hyperlinkUpdate(HyperlinkEvent e) { updateState(); } }); myErrorStack = new JTextArea(50, 20); myErrorStack.setEditable(false); myErrorPanel.add(myErrorLabel, BorderLayout.NORTH); myErrorPanel.add(... | createErrorPage |
57,020 | void (HyperlinkEvent e) { updateState(); } | hyperlinkUpdate |
57,021 | void (Throwable e) { if (e != null) { LOG.info(e); } removeSceneBuilder(); if (JavaVersion.current().feature > 11 && e instanceof NoClassDefFoundError && !SceneBuilderUtil.getSceneBuilder11Path().toFile().isFile()) { myErrorLabel.addHyperlinkListener(e1 -> { DownloadableFileService service = DownloadableFileService.get... | showErrorPage |
57,022 | void () { myErrorLabel.setIcon(AllIcons.General.Error); } | setErrorIcon |
57,023 | void () { for (String coordinate : SceneBuilderUtil.JAVAFX_ARTIFACTS) { RepositoryLibraryProperties libraryProperties = new RepositoryLibraryProperties("org.openjfx:" + coordinate + ":" + SceneBuilderUtil.JAVAFX_VERSION, true); JarRepositoryManager.loadDependenciesModal(myProject, libraryProperties, false, false, null,... | downloadJavaFxDependencies |
57,024 | String (Throwable e) { final String message = e.getMessage(); final String className = e.getClass().getName(); if (StringUtil.isEmpty(message)) { if (e instanceof ClassNotFoundException) { return className + ": Unresolved import"; } return className; } if (!message.contains(className)) { return className + ": " + messa... | getErrorMessage |
57,025 | void (final String content) { ApplicationManager.getApplication().invokeLater(() -> { if (mySceneBuilder != null) { if (!myDocument.isWritable() && ReadonlyStatusHandler.getInstance(myProject).ensureFilesWritable(Collections.singletonList(myFile)).hasReadonlyFiles()) { return; } try { myChangeListener.setRunState(false... | saveChanges |
57,026 | void (final Throwable e) { UIUtil.invokeLaterIfNeeded(() -> showErrorPage(e)); } | handleError |
57,027 | void () { addSceneBuilder(); } | updateState |
57,028 | void () { ApplicationManager.getApplication().invokeLater(this::addSceneBuilderImpl, ModalityState.defaultModalityState()); } | addSceneBuilder |
57,029 | void () { try { ApplicationManager.getApplication().runWriteAction(() -> FileDocumentManager.getInstance().saveDocument(myDocument)); if (mySceneBuilder != null && mySceneBuilder.reload()) { return; } removeSceneBuilder(); mySceneBuilder = SceneBuilderUtil.create(new File(myFile.getPath()).toURI().toURL(), myProject, t... | addSceneBuilderImpl |
57,030 | void () { myChangeListener.stop(); if (mySceneBuilder != null) { myPanel.remove(mySceneBuilder.getPanel()); mySceneBuilder.close(); mySceneBuilder = null; } } | removeSceneBuilder |
57,031 | JComponent () { return myPanel; } | getComponent |
57,032 | void () { removeSceneBuilder(); myChangeListener.dispose(); } | dispose |
57,033 | String () { return JavaFXBundle.message("scene.builder.editor.tab.name"); } | getName |
57,034 | void () { updateState(); } | selectNotify |
57,035 | void () { myChangeListener.stop(); } | deselectNotify |
57,036 | void (@NotNull FileEditorState state) { } | setState |
57,037 | boolean () { return myFile.isValid(); } | isValid |
57,038 | boolean () { return false; } | isModified |
57,039 | VirtualFile () { return myFile; } | getFile |
57,040 | void (@NotNull PropertyChangeListener listener) { } | addPropertyChangeListener |
57,041 | void (@NotNull PropertyChangeListener listener) { } | removePropertyChangeListener |
57,042 | void () { if (!myRunState) { myRunState = true; } } | start |
57,043 | void () { if (myRunState) { myRunState = false; } } | stop |
57,044 | void (boolean state) { myRunState = state; } | setRunState |
57,045 | void () { myDocument.removeDocumentListener(this); } | dispose |
57,046 | void (@NotNull DocumentEvent e) { if (myRunState) { addSceneBuilder(); } } | documentChanged |
57,047 | void (@NotNull AnActionEvent e) { final VirtualFile virtualFile = e.getData(CommonDataKeys.VIRTUAL_FILE); LOG.assertTrue(virtualFile != null); final String path = virtualFile.getPath(); final Project project = getEventProject(e); final SceneBuilderInfo info = SceneBuilderInfo.get(project, true); if (info == SceneBuilde... | actionPerformed |
57,048 | void (@NotNull AnActionEvent e) { final Presentation presentation = e.getPresentation(); presentation.setEnabledAndVisible(false); final VirtualFile virtualFile = e.getData(CommonDataKeys.VIRTUAL_FILE); if (virtualFile != null && JavaFxFileTypeFactory.isFxml(virtualFile) && e.getProject() != null) { presentation.setEna... | update |
57,049 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
57,050 | boolean (@NotNull FileTemplate template) { return "JavaFXApplication".equals(template.getName()); } | handlesTemplate |
57,051 | boolean (PsiDirectory @NotNull [] dirs) { // see CreateJavaFxApplicationAction return false; } | canCreate |
57,052 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
57,053 | FileTemplate (Project project, PsiDirectory dir) { return FileTemplateManager.getInstance(project).getInternalTemplate(INTERNAL_TEMPLATE_NAME); } | getTemplate |
57,054 | String (String name) { int start; for (start = 0; start < name.length(); start++) { char c = name.charAt(start); if (Character.isJavaIdentifierStart(c) && c != '_' && c != '$') { break; } } StringBuilder className = new StringBuilder(); boolean skip = true; for (int i = start; i < name.length(); i++) { char c = name.ch... | toClassName |
57,055 | void (final @NotNull AnActionEvent e) { final DataContext dataContext = e.getDataContext(); final Presentation presentation = e.getPresentation(); presentation.setEnabledAndVisible(isJavaFxTemplateAvailable(dataContext, JavaModuleSourceRootTypes.PRODUCTION)); } | update |
57,056 | boolean (DataContext dataContext, Set<? extends JpsModuleSourceRootType<?>> requiredRootTypes) { final Project project = CommonDataKeys.PROJECT.getData(dataContext); final IdeView view = LangDataKeys.IDE_VIEW.getData(dataContext); if (project == null || view == null) { return false; } final PsiDirectory[] directories =... | isJavaFxTemplateAvailable |
57,057 | boolean (@Nullable Module module) { if (module == null || module.isDisposed()) return false; return CachedValuesManager.getManager(module.getProject()).getCachedValue(module, () -> { boolean hasClass = JavaPsiFacade.getInstance(module.getProject()) .findClass(JAVAFX_APPLICATION_APPLICATION, moduleWithDependenciesAndLib... | hasJavaFxDependency |
57,058 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
57,059 | FileTemplate (Project project, PsiDirectory dir) { return FileTemplateManager.getInstance(project).getTemplate(FILE_TEMPLATE_NAME); } | getTemplate |
57,060 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabledAndVisible(isJavaFxTemplateAvailable(e.getDataContext(), Set.of(JavaSourceRootType.SOURCE))); } | update |
57,061 | String () { return JavaFXBundle.message("intention.family.name.convert.to.javafx.property"); } | getFamilyName |
57,062 | String () { return JavaFXBundle.message("intention.family.name.convert.to.javafx.property"); } | getText |
57,063 | boolean (@NotNull Project project, Editor editor, @NotNull PsiElement element) { final PsiField field = getField(element); if (field != null) { final PsiFile file = field.getContainingFile(); if (JavaFxModuleUtil.isInJavaFxProject(file) || JavaFxPsiUtil.isJavaFxPackageImported(file)) { return PropertyInfo.createPropert... | isAvailable |
57,064 | IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { // As the action spawns the search which could be very long, let's disable preview here return IntentionPreviewInfo.EMPTY; } | generatePreview |
57,065 | void (@NotNull ProgressIndicator indicator) { ReadAction.run(() -> { myReferences = ReferencesSearch.search(myProperty.myField).findAll(); final Set<PsiElement> occurrences = new HashSet<>(); occurrences.add(myProperty.myField); occurrences.addAll(ContainerUtil.mapNotNull(myReferences, PsiReference::getElement)); myFil... | run |
57,066 | void () { LOG.assertTrue(myProject != null, "myProject"); final PsiField field = myProperty.myField; field.normalizeDeclaration(); final PsiElementFactory elementFactory = JavaPsiFacade.getInstance(myProject).getElementFactory(); final PsiType fromType = field.getType(); final PsiType toType = elementFactory.createType... | replaceOccurrences |
57,067 | PropertyInfo (@NotNull PsiField field, @NotNull Project project) { final String fieldName = field.getName(); final PsiClass containingClass = field.getContainingClass(); final PsiTypeElement typeElement = field.getTypeElement(); if (containingClass != null && typeElement != null) { final ObservableType observableType =... | createPropertyInfo |
57,068 | void () { final Project project = myContainingClass.getProject(); final PsiElementFactory elementFactory = JavaPsiFacade.getInstance(project).getElementFactory(); final PsiTypeElement newTypeElement = elementFactory.createTypeElementFromText(myObservableType.myText, myField); myTypeElement.replace(newTypeElement); fina... | convertField |
57,069 | PsiExpression (PsiExpression expression, @NotNull TypeEvaluator evaluator) { final PsiExpression replaced = super.replace(expression, evaluator); // Replace the getter's return type: List -> ObservableList final PsiElement parent = replaced.getParent(); if (parent instanceof PsiReturnStatement returnStatement) { final ... | replace |
57,070 | boolean (PsiField field) { return field.isValid() && InheritanceUtil.isInheritor(field.getType(), JavaFxCommonNames.JAVAFX_BEANS_VALUE_OBSERVABLE_VALUE) && JavaFxPsiUtil.getWrappedPropertyType(field, field.getProject(), JavaFxCommonNames.ourReadOnlyMap) != null; } | canGeneratePrototypeFor |
57,071 | PsiMethod[] (PsiField field) { final Project project = field.getProject(); final PsiElementFactory factory = JavaPsiFacade.getElementFactory(project); final PsiMethod getter = GenerateMembersUtil.generateSimpleGetterPrototype(field); final PsiType wrappedType = JavaFxPsiUtil.getWrappedPropertyType(field, project, JavaF... | generateGetters |
57,072 | PsiMethod[] (PsiField field) { final PsiMethod setter = GenerateMembersUtil.generateSimpleSetterPrototype(field); final Project project = field.getProject(); final PsiType wrappedType = JavaFxPsiUtil.getWrappedPropertyType(field, project, JavaFxCommonNames.ourWritableMap); LOG.assertTrue(wrappedType != null, field.getT... | generateSetters |
57,073 | PsiMethod[] (PsiClass psiClass, String propertyName) { final String getterName = suggestGetterName(propertyName); PsiMethod specificGetter = findGetterByName(psiClass, getterName); if (specificGetter != null) { final PsiMethod getter = PropertyUtilBase.findPropertyGetter(psiClass, propertyName, false, false); return ge... | findGetters |
57,074 | String (String propertyName) { return propertyName + JavaFxCommonNames.PROPERTY_METHOD_SUFFIX; } | suggestGetterName |
57,075 | boolean (PsiMethod method, String oldPropertyName) { return method.getName().equals(suggestGetterName(oldPropertyName)); } | isSimpleGetter |
57,076 | boolean (PsiField field) { return !InheritanceUtil.isInheritor(field.getType(), JavaFxCommonNames.JAVAFX_BEANS_VALUE_WRITABLE_VALUE); } | isReadOnly |
57,077 | String () { return JavaFXBundle.message("javafx.refactoring.property.element.type.name"); } | getTypeName |
57,078 | JavaFxPropertyReference () { return myPropertyReference; } | getPropertyReference |
57,079 | boolean (@NotNull DataContext dataContext) { final PsiReference reference = getKnownReference(getReferences(dataContext)); return reference != null; } | isAvailableOnDataContext |
57,080 | void (@NotNull Project project, Editor editor, PsiFile file, DataContext dataContext) { performInvoke(project, editor, dataContext); } | invoke |
57,081 | void (@NotNull Project project, PsiElement @NotNull [] elements, DataContext dataContext) { performInvoke(project, null, dataContext); } | invoke |
57,082 | void (@NotNull Project project, @Nullable Editor editor, DataContext dataContext) { final PsiReference[] references = getReferences(dataContext); final PsiReference reference = getKnownReference(references); if (reference == null) return; if (reference instanceof JavaFxComponentIdReferenceProvider.JavaFxIdReferenceBase... | performInvoke |
57,083 | boolean (@NotNull Project project, @Nullable Editor editor, @NotNull Collection<PsiElement> elements) { return elements.stream().allMatch(element -> PsiElementRenameHandler.canRename(project, editor, element)); } | canRename |
57,084 | void (JavaFxPropertyReference reference, String newName, final boolean searchInComments, boolean isPreview) { final PsiElement psiElement = JavaFxPropertyElement.fromReference(reference); if (psiElement == null) return; final RenameRefactoring rename = new JavaRenameRefactoringImpl(psiElement.getProject(), psiElement, ... | doRename |
57,085 | boolean (PsiReference reference) { if (reference instanceof JavaFxPropertyReference || reference instanceof JavaFxFieldIdReferenceProvider.JavaFxControllerFieldRef) { return true; } if (reference instanceof JavaFxComponentIdReferenceProvider.JavaFxIdReferenceBase) { return ((JavaFxComponentIdReferenceProvider.JavaFxIdR... | isKnown |
57,086 | void (XmlAttributeValue fxIdValueElement, String newName, boolean searchInComments, boolean previewUsages) { final RenameRefactoring rename = new JavaRenameRefactoringImpl(fxIdValueElement.getProject(), fxIdValueElement, newName, searchInComments, false); rename.setPreviewUsages(previewUsages); final PsiField nestedCon... | doRenameFxId |
57,087 | void () { final String newName = getNewName(); final boolean searchInComments = isSearchInComments(); doRename(myPropertyReference, newName, searchInComments, isPreviewUsages()); close(DialogWrapper.OK_EXIT_CODE); } | doAction |
57,088 | void () { final String newName = getNewName(); final PsiElement element = getPsiElement(); assert element instanceof XmlAttributeValue; doRenameFxId(((XmlAttributeValue)element), newName, isSearchInComments(), isPreviewUsages()); close(DialogWrapper.OK_EXIT_CODE); } | doAction |
57,089 | boolean (@NotNull PsiElement element) { if (element instanceof XmlAttributeValue && JavaFxFileTypeFactory.isFxml(element.getContainingFile())) { final PsiElement parent = element.getParent(); return parent instanceof XmlAttribute && FxmlConstants.FX_ID.equals(((XmlAttribute)parent).getName()); } return false; } | canProcessElement |
57,090 | void (@NotNull PsiElement element, @NotNull String newName, @NotNull Map<PsiElement, String> allRenames, @NotNull SearchScope scope) { visitReferencedElements(element.getReferences(), psiElement -> { if (psiElement instanceof PsiNamedElement && psiElement != element) { allRenames.put(psiElement, newName); } }); } | prepareRenaming |
57,091 | void (PsiReference[] references, NullableConsumer<? super PsiElement> consumer) { for (PsiReference reference : references) { if (reference instanceof PsiPolyVariantReference) { final ResolveResult[] resolveResults = ((PsiPolyVariantReference)reference).multiResolve(false); for (ResolveResult resolveResult : resolveRes... | visitReferencedElements |
57,092 | boolean (@NotNull PsiElement element) { final NestedControllerCandidate nestedControllerCandidate = findNestedControllerCandidate(element); final Collection<PsiFile> fxmls = findFxmlWithController(nestedControllerCandidate); return !fxmls.isEmpty(); } | canProcessElement |
57,093 | boolean () { return false; } | isInplaceRenameSupported |
57,094 | void (@NotNull PsiElement element, @NotNull String newName, @NotNull Map<PsiElement, String> allRenames, @NotNull SearchScope scope) { final NestedControllerCandidate nestedControllerCandidate = findNestedControllerCandidate(element); if (nestedControllerCandidate != null) { final Collection<PsiFile> fxmls = findFxmlWi... | prepareRenaming |
57,095 | void (@NotNull XmlTag tag) { super.visitXmlTag(tag); if (found.get()) return; if (FxmlConstants.FX_INCLUDE.equals(tag.getName())) { final String value = tag.getAttributeValue(FxmlConstants.FX_ID); if (StringUtil.equals(nestedControllerCandidate.fxId, value)) { found.set(true); } } } | visitXmlTag |
57,096 | Collection<PsiFile> (@Nullable NestedControllerCandidate nestedControllerCandidate) { if (nestedControllerCandidate != null) { final String qualifiedName = nestedControllerCandidate.controllerClass.getQualifiedName(); if (qualifiedName != null) { final Project project = nestedControllerCandidate.controllerClass.getProj... | findFxmlWithController |
57,097 | URL () { return JavaFx9Migration.class.getResource("JavaFx8__9.xml"); } | getMigrationMap |
57,098 | KeyDescriptor<String> () { return EnumeratorStringDescriptor.INSTANCE; } | getKeyDescriptor |
57,099 | boolean () { return true; } | dependsOnFileContent |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.