Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
47,600 | String (@NotNull ASTNode node) { return UIDesignerBundle.message("uidesigner.generated.code.folding.placeholder.text"); } | getPlaceholderText |
47,601 | boolean (@NotNull ASTNode node) { return true; } | isCollapsedByDefault |
47,602 | boolean (PsiClassInitializer initializer) { PsiCodeBlock body = initializer.getBody(); if (body.getStatementCount() != 1) return false; PsiStatement statement = body.getStatements()[0]; if (!(statement instanceof PsiExpressionStatement) || !(((PsiExpressionStatement)statement).getExpression() instanceof PsiMethodCallEx... | isGeneratedUIInitializer |
47,603 | void (@NotNull PsiMethod method) { String methodName = method.getName(); if (AsmCodeGenerator.SETUP_METHOD_NAME.equals(methodName) || AsmCodeGenerator.GET_ROOT_COMPONENT_METHOD_NAME.equals(methodName) || AsmCodeGenerator.LOAD_BUTTON_TEXT_METHOD.equals(methodName) || AsmCodeGenerator.LOAD_LABEL_TEXT_METHOD.equals(method... | visitMethod |
47,604 | void (@NotNull PsiField field) { if (AsmCodeGenerator.CACHED_GET_BUNDLE_METHOD.equals(field.getName())) { addFoldingData(field); } } | visitField |
47,605 | void (@NotNull PsiClassInitializer initializer) { if (isGeneratedUIInitializer(initializer)) { addFoldingData(initializer); } } | visitClassInitializer |
47,606 | void (final PsiElement element) { PsiElement prevSibling = PsiTreeUtil.skipWhitespacesBackward(element); synchronized (myFoldingData) { if (myLastElement == null || prevSibling != myLastElement) { myFoldingData.add(new FoldingDescriptor(element, element.getTextRange())); } else { FoldingDescriptor lastDescriptor = myFo... | addFoldingData |
47,607 | PsiElement () { PsiClass enumClass = myEnumClass.resolve(); if (enumClass == null) return null; return enumClass.findFieldByName(getRangeText(), false); } | resolve |
47,608 | boolean (@NotNull final PsiElement element) { if (!(element instanceof PsiClass)) return false; List<PsiFile> forms = FormClassIndex.findFormsBoundToClass(element.getProject(), (PsiClass)element); return forms.size() > 0; } | isApplicable |
47,609 | String () { return RefactoringBundle.message("rename.bound.forms"); } | getOptionName |
47,610 | boolean () { return true; } | isEnabled |
47,611 | void (final boolean enabled) { } | setEnabled |
47,612 | AutomaticRenamer (final PsiElement element, final String newName, final Collection<UsageInfo> usages) { return new FormsRenamer((PsiClass) element, newName); } | createRenamer |
47,613 | PsiElement () { final Project project = myFile.getProject(); final ProjectFileIndex fileIndex = ProjectRootManager.getInstance(project).getFileIndex(); final VirtualFile formVirtualFile = myFile.getVirtualFile(); if (formVirtualFile == null) { return null; } final Module module = fileIndex.getModuleForFile(formVirtualF... | resolve |
47,614 | boolean (@NotNull final PsiElement element) { if (!(element instanceof PropertiesFile)) return false; String baseName = ResourceBundleManager.getInstance(element.getProject()).getFullName((PropertiesFile)element); if (baseName == null) return false; baseName = baseName.replace('.', '/'); final String rangeText = getRan... | isReferenceTo |
47,615 | PsiElement (@NotNull final String newElementName) { return handleFileRename(newElementName, PropertiesFileType.DOT_DEFAULT_EXTENSION, false); } | handleElementRename |
47,616 | String () { return QuickFixBundle.message("uidesigner.change.gui.component.type"); } | getFamilyName |
47,617 | ModCommand (@NotNull ActionContext context) { return FormReferenceProvider.setGUIComponentType(myFormFile, myFieldName, myComponentTypeToSet); } | perform |
47,618 | KeyDescriptor<String> () { return EnumeratorStringDescriptor.INSTANCE; } | getKeyDescriptor |
47,619 | boolean () { return true; } | dependsOnFileContent |
47,620 | int () { return 0; } | getVersion |
47,621 | List<PsiFile> (Project project, String className) { return findFormsBoundToClass(project, className, ProjectScope.getAllScope(project)); } | findFormsBoundToClass |
47,622 | List<PsiFile> (final Project project, final String className, final GlobalSearchScope scope) { try (AccessToken ignore = SlowOperations.knownIssue("IDEA-307701, EA-648610")) { return ReadAction.compute(() -> { final Collection<VirtualFile> files; try { files = FileBasedIndex.getInstance().getContainingFiles(NAME, class... | findFormsBoundToClass |
47,623 | List<PsiFile> (Project project, @NotNull PsiClass psiClass) { String qName = FormReferencesSearcher.getQualifiedName(psiClass); if (qName == null) return Collections.emptyList(); return findFormsBoundToClass(project, qName); } | findFormsBoundToClass |
47,624 | List<PsiFile> (Project project, PsiClass psiClass, GlobalSearchScope scope) { String qName = FormReferencesSearcher.getQualifiedName(psiClass); if (qName == null) return Collections.emptyList(); return findFormsBoundToClass(project, qName, scope); } | findFormsBoundToClass |
47,625 | boolean (@NotNull PsiElement element) { if (element instanceof PsiMethod method) { if ((AsmCodeGenerator.CREATE_COMPONENTS_METHOD_NAME.equals(method.getName()) || AsmCodeGenerator.GET_ROOT_COMPONENT_METHOD_NAME.equals(method.getName()) || AsmCodeGenerator.SETUP_METHOD_NAME.equals(method.getName())) && method.getParamet... | isImplicitUsage |
47,626 | boolean (@NotNull PsiElement element) { return false; } | isImplicitRead |
47,627 | boolean (@NotNull PsiElement element) { return element instanceof PsiField && FormReferenceProvider.getFormFile((PsiField)element) != null; } | isImplicitWrite |
47,628 | boolean (@NotNull PsiElement element) { return isImplicitWrite(element); } | isImplicitlyNotNullInitialized |
47,629 | boolean (@NotNull PsiElement element) { return element instanceof PsiClass && Stream.of(((PsiClass)element).getMethods()).anyMatch(this::isImplicitUsage); } | isClassWithCustomizedInitialization |
47,630 | void (@NotNull PsiElement psiElement, @NotNull AnnotationHolder holder) { if (psiElement instanceof PsiField field) { final PsiFile boundForm = FormReferenceProvider.getFormFile(field); if (boundForm != null) { annotateFormField(field, boundForm, holder); } } else if (psiElement instanceof PsiClass aClass) { final List... | annotate |
47,631 | void (final PsiField field, final PsiFile boundForm, final AnnotationHolder holder) { holder.newSilentAnnotation(HighlightSeverity.INFORMATION).gutterIconRenderer(new BoundIconRenderer(field)).create(); LOG.assertTrue(boundForm instanceof PsiPlainTextFile); final PsiType guiComponentType = FormReferenceProvider.getGUIC... | annotateFormField |
47,632 | boolean (@NotNull PsiElement target) { return target instanceof PsiClass || target instanceof PsiPackage || target instanceof PsiField || target instanceof PsiFile || PropertyReferenceBase.isPropertyPsi(target); } | acceptsTarget |
47,633 | PsiFile (PsiField field) { PsiReference ref = getFormReference(field); if (ref != null) { return ref.getElement().getContainingFile(); } return null; } | getFormFile |
47,634 | PsiReference (PsiField field) { final PsiClass containingClass = field.getContainingClass(); if (containingClass != null && containingClass.getQualifiedName() != null) { final List<PsiFile> forms = FormClassIndex.findFormsBoundToClass(containingClass.getProject(), containingClass); for (PsiFile formFile : forms) { fina... | getFormReference |
47,635 | ModCommand (PsiPlainTextFile file, String fieldName, String typeText) { final Map<String, Pair<PsiType, TextRange>> fieldNameToTypeMap = getCachedData(file).myFieldNameToTypeMap; final Pair<PsiType, TextRange> typeRangePair = fieldNameToTypeMap.get(fieldName); if (typeRangePair != null) { final TextRange range = typeRa... | setGUIComponentType |
47,636 | void (final PsiPlainTextFile file, final PsiReferenceProcessor processor) { final Project project = file.getProject(); final XmlTag rootTag = ReadAction.compute(() -> { final XmlFile xmlFile = (XmlFile)PsiFileFactory.getInstance(project) .createFileFromText("a.xml", XmlFileType.INSTANCE, file.getViewProvider().getConte... | processReferences |
47,637 | TextRange (final XmlAttribute classToBind) { final XmlAttributeValue valueElement = classToBind.getValueElement(); final TextRange textRange = valueElement.getTextRange(); return new TextRange(textRange.getStartOffset() + 1, textRange.getEndOffset() - 1); // skip " " } | getValueRange |
47,638 | void (final XmlTag tag, final PsiReference classReference, final PsiPlainTextFile file, final PsiReferenceProcessor processor) { final XmlAttribute clsAttribute = tag.getAttribute(UIFormXmlConstants.ATTRIBUTE_CLASS, null); final String classNameStr = clsAttribute != null? clsAttribute.getValue().replace('$','.') : null... | processReferences |
47,639 | void (final PsiPlainTextFile file, final PsiReferenceProcessor processor, final XmlAttribute titleBundleAttribute) { processPackageReferences(file, processor, titleBundleAttribute); processor.execute(new ResourceBundleFileReference(file, getValueRange(titleBundleAttribute))); } | processResourceBundleFileReferences |
47,640 | void (final PsiPlainTextFile file, final PsiReferenceProcessor processor, final XmlAttribute attribute) { final TextRange valueRange = getValueRange(attribute); final String value = attribute.getValue(); int pos=-1; while(true) { pos = value.indexOf('/', pos+1); if (pos < 0) { break; } processor.execute(new FormPackage... | processPackageReferences |
47,641 | void (final XmlTag tag, final PsiReferenceProcessor processor, final PsiPlainTextFile file) { final XmlAttribute formFileAttribute = tag.getAttribute(UIFormXmlConstants.ATTRIBUTE_FORM_FILE, null); if (formFileAttribute != null) { processPackageReferences(file, processor, formFileAttribute); processor.execute(new Resour... | processNestedFormReference |
47,642 | void (final XmlTag tag, final PsiReferenceProcessor processor, final PsiPlainTextFile file, final PsiReference classReference) { final XmlAttribute boundAttribute = tag.getAttribute(UIFormXmlConstants.ATTRIBUTE_BOUND, null); final XmlAttribute nameAttribute = tag.getAttribute(UIFormXmlConstants.ATTRIBUTE_NAME, null); i... | processButtonGroupReference |
47,643 | void (final XmlTag tag, final PsiReferenceProcessor processor, final PsiPlainTextFile file, final String className) { final XmlAttribute valueAttribute = tag.getAttribute(UIFormXmlConstants.ATTRIBUTE_VALUE, null); if (valueAttribute != null) { PsiReference reference = ReadAction.compute(() -> { final JavaPsiFacade psiF... | processPropertyReference |
47,644 | String (final PropertiesFile propertiesFile) { final PsiDirectory directory = propertiesFile.getParent(); if (directory == null) { return null; } final String packageName; final PsiPackage aPackage = JavaDirectoryService.getInstance().getPackage(directory); if (aPackage == null) { packageName = ""; } else { packageName... | getBundleName |
47,645 | CachedFormData (final PsiPlainTextFile element) { CachedValue<CachedFormData> data = element.getUserData(CACHED_DATA); if(data == null) { data = CachedValuesManager.getManager(element.getProject()).createCachedValue(new CachedValueProvider<>() { final Map<String, Pair<PsiType, TextRange>> map = new HashMap<>(); @Overri... | getCachedData |
47,646 | Result<CachedFormData> () { final PsiReferenceProcessor.CollectElements processor = new PsiReferenceProcessor.CollectElements() { @Override public boolean execute(PsiReference ref) { if (ref instanceof FieldFormReference fieldRef) { final String componentClassName = fieldRef.getComponentClassName(); if (componentClassN... | compute |
47,647 | boolean (PsiReference ref) { if (ref instanceof FieldFormReference fieldRef) { final String componentClassName = fieldRef.getComponentClassName(); if (componentClassName != null) { final PsiClassType type = JavaPsiFacade.getInstance(element.getProject()).getElementFactory() .createTypeByFQClassName(componentClassName, ... | execute |
47,648 | void () { } | projectOpened |
47,649 | void () { } | projectClosed |
47,650 | String () { return "FormReferenceProvider"; } | getComponentName |
47,651 | void () { } | initComponent |
47,652 | void () { } | disposeComponent |
47,653 | void (@NotNull CharSequence fileText, @NotNull final Processor<? super WordOccurrence> processor) { super.processWords(fileText, processor); try { LwRootContainer container = Utils.getRootContainer(fileText.toString(), null/*no need component classes*/); String className = container.getClassToBind(); if (className != n... | processWords |
47,654 | boolean (IComponent iComponent) { String componentClassName = iComponent.getComponentClassName(); processClassAndPackagesNames(componentClassName, processor); final String binding = iComponent.getBinding(); if (binding != null) { if (occurence == null) occurence = new WordOccurrence(binding, 0, binding.length(),WordOcc... | visit |
47,655 | void (String qName, final Processor<? super WordOccurrence> processor) { WordOccurrence occurrence = new WordOccurrence(qName, 0, qName.length(), WordOccurrence.Kind.FOREIGN_LANGUAGE); processor.process(occurrence); int idx = qName.lastIndexOf('.'); while (idx > 0) { qName = qName.substring(0, idx); occurrence.init(qNa... | processClassAndPackagesNames |
47,656 | PsiElement () { final Module module = ModuleUtilCore.findModuleForFile(myFile); if (module == null) { return null; } final PropertiesFile propertiesFile = PropertiesUtilBase.getPropertiesFile(myBundleName, module, null); if (propertiesFile == null) { return null; } IProperty property = propertiesFile.findPropertyByKey(... | resolve |
47,657 | boolean (@NotNull final PsiElement element) { if (!(element instanceof IProperty property)) { return false; } String baseName = ResourceBundleManager.getInstance(element.getProject()).getFullName(property.getPropertiesFile()); return baseName != null && myBundleName.equals(baseName) && getRangeText().equals(property.ge... | isReferenceTo |
47,658 | String (String name, PsiNamedElement psiFile) { if (name.endsWith(GuiFormFileType.DOT_DEFAULT_EXTENSION)) return name.substring(0, name.length() - GuiFormFileType.DOT_DEFAULT_EXTENSION.length()); return name; } | nameToCanonicalName |
47,659 | String (String canonicalName, PsiNamedElement psiFile) { return canonicalName.contains(".") ? canonicalName : canonicalName + GuiFormFileType.DOT_DEFAULT_EXTENSION; } | canonicalNameToName |
47,660 | boolean () { return true; } | isSelectedByDefault |
47,661 | String () { return RefactoringBundle.message("rename.bound.forms.title"); } | getDialogTitle |
47,662 | String () { return RefactoringBundle.message("rename.forms.with.the.following.names.to"); } | getDialogDescription |
47,663 | String () { return RefactoringBundle.message("entity.name.form"); } | entityName |
47,664 | String () { return QuickFixBundle.message("uidesigner.change.bound.field.type"); } | getFamilyName |
47,665 | void (@NotNull ActionContext context, @NotNull PsiField field, @NotNull ModPsiUpdater updater) { PsiTypeElement element = field.getTypeElement(); if (element == null) return; element.replace(JavaPsiFacade.getInstance(context.project()).getElementFactory().createTypeElement(myTypeToSet)); } | invoke |
47,666 | PsiElement () { return myFile; } | getElement |
47,667 | PsiElement (@NotNull final String newElementName) { return handleElementRenameBase(newElementName); } | handleElementRename |
47,668 | PsiElement (final String newElementName) { updateRangeText(newElementName); return myFile; } | handleElementRenameBase |
47,669 | TextRange () { return myRangeMarker.getTextRange(); } | getRangeInElement |
47,670 | String () { return getRangeText(); } | getCanonicalText |
47,671 | void (final String text) { final Document document = myRangeMarker.getDocument(); document.replaceString(myRangeMarker.getStartOffset(), myRangeMarker.getEndOffset(), text); PsiDocumentManager.getInstance(myFile.getProject()).commitDocument(document); } | updateRangeText |
47,672 | String () { return myRangeMarker.getDocument().getCharsSequence().subSequence(myRangeMarker.getStartOffset(), myRangeMarker.getEndOffset()).toString(); } | getRangeText |
47,673 | boolean (@NotNull final PsiElement element) { return resolve() == element; } | isReferenceTo |
47,674 | boolean () { return true; } | isSoft |
47,675 | PsiElement (final String newElementName, @NonNls final String extension, final boolean includeExtensionInReference) { final String currentName = getRangeText(); final String baseName = newElementName.endsWith(extension)? newElementName.substring(0, newElementName.length() - extension.length()) : newElementName; final i... | handleFileRename |
47,676 | void (@NotNull final PsiReferenceRegistrar registrar) { registrar.registerReferenceProvider(psiFile(PsiPlainTextFile.class), new FormReferenceProvider()); } | registerReferenceProviders |
47,677 | PsiElement () { final Project project = myFile.getProject(); String text = getRangeText().replace('/', '.'); return JavaPsiFacade.getInstance(project).findPackage(text); } | resolve |
47,678 | boolean (@NotNull final PsiElement element) { if (!(element instanceof PsiPackage)) { return false; } final String qName = ((PsiPackage)element).getQualifiedName().replace('.', '/'); final String rangeText = getRangeText(); return qName.equals(rangeText); } | isReferenceTo |
47,679 | PsiElement (@NotNull final String newElementName) { final String s = getRangeText(); int pos = s.lastIndexOf("/"); if (pos < 0) { updateRangeText(newElementName); } else { updateRangeText(s.substring(0, pos+1) + newElementName); } return myFile; } | handleElementRename |
47,680 | boolean () { return false; } | startInWriteAction |
47,681 | void (@NotNull Project project, CommonProblemDescriptor @NotNull [] descriptors, @NotNull List<PsiElement> psiElementsToIgnore, @Nullable Runnable refreshViews) { final List<I18nizedPropertyData<HardcodedStringInFormData>> dataList = new ArrayList<>(); final HashSet<PsiFile> contextFiles = new HashSet<>(); final Map<Vi... | applyFix |
47,682 | void (@NotNull Project project, @NotNull List<I18nizedPropertyData<HardcodedStringInFormData>> dataList, @NotNull HashSet<PsiFile> contextFiles, @NotNull ResourceBundleManager bundleManager, @NotNull Map<VirtualFile, RadRootContainer> containerMap, @NotNull Map<String, List<I18nizedPropertyData<HardcodedStringInFormDat... | showI18nizeMultipleStringsDialog |
47,683 | void (@NotNull Project project, CommonProblemDescriptor @NotNull [] descriptors, List<I18nizedPropertyData<HardcodedStringInFormData>> dataList, HashSet<PsiFile> contextFiles, Map<VirtualFile, RadRootContainer> containerMap, Map<String, List<I18nizedPropertyData<HardcodedStringInFormData>>> duplicates) { final UniqueNa... | fillDuplicates |
47,684 | Module () { return module; } | getModule |
47,685 | Project () { return project; } | getProject |
47,686 | String (@NotNull RadComponent component, @NotNull String propertyName) { Class<?> componentClass = component.getComponentClass(); for (DefaultPrefixSuggestion suggestion : PREFIX_SUGGESTIONS) { if (suggestion.getPropertyName().equals(propertyName) && suggestion.getComponentClass().isAssignableFrom(componentClass)) { re... | suggestPropertyKeyPrefix |
47,687 | List<UsageInfo> (HardcodedStringInFormData data) { RadComponent component = data.getComponent(); PsiFile file = data.getContainingFile(); TextRange range = getComponentRange(component, file); UsageInfo usageInfo = range != null ? new UsageInfo(file, range, false) : new UsageInfo(file); return Collections.singletonList(... | createUsageInfo |
47,688 | TextRange (RadComponent component, PsiFile file) { CharSequence contents = file.getViewProvider().getContents(); int componentId = StringUtil.indexOf(contents, "id=\"" + component.getId() + "\""); if (componentId == -1) return null; PsiFileFactory fileFactory = PsiFileFactory.getInstance(file.getProject()); XmlFile xml... | getComponentRange |
47,689 | void (RadComponent component, String propertyName, StringDescriptor stringDescriptor) { if (BorderProperty.NAME.equals(propertyName)) { ((RadContainer)component).setBorderTitle(stringDescriptor); } else if (propertyName.equals(ITabbedPane.TAB_TITLE_PROPERTY) || propertyName.equals(ITabbedPane.TAB_TOOLTIP_PROPERTY)) { t... | setPropertyValue |
47,690 | String (IComponent component, String propertyName) { if (BorderProperty.NAME.equals(propertyName)) { return ((IContainer)component).getBorderTitle().getValue(); } else if (propertyName.equals(ITabbedPane.TAB_TITLE_PROPERTY) || propertyName.equals(ITabbedPane.TAB_TOOLTIP_PROPERTY)) { return ((ITabbedPane)component.getPa... | getValue |
47,691 | void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { } | applyFix |
47,692 | RadComponent () { return myComponent; } | getComponent |
47,693 | String () { return myPropertyName; } | getPropertyName |
47,694 | PsiFile () { return myContainingFile; } | getContainingFile |
47,695 | String () { return myPropertyName; } | getPropertyName |
47,696 | String () { return myDefaultPrefix; } | getDefaultPrefix |
47,697 | RadComponent () { return myContainer; } | getComponent |
47,698 | StringDescriptor () { return myContainer.getBorderTitle(); } | getStringDescriptorValue |
47,699 | void (final Module module, final IComponent component, final IProperty prop, final StringDescriptor descriptor, final FormErrorCollector collector) { String error = checkDescriptor(descriptor, module); if (error != null) { collector.addError(getID(), component, prop, error); } } | checkStringDescriptor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.