public final class ExternalAnnotationsManagerImpl extends ReadableExternalAnnotationsManager
BaseExternalAnnotationsManager.AnnotationData
ExternalAnnotationsManager.AnnotationPlace, ExternalAnnotationsManager.CanceledConfigurationException
myPsiManager
ANNOTATIONS_XML, TOPIC
Constructor and Description |
---|
ExternalAnnotationsManagerImpl(Project project) |
dropCache, getExternalAnnotationsRoots, hasAnyAnnotationsRoots, isUnderAnnotationRoot
findDefaultConstructorExternalAnnotations, findDefaultConstructorExternalAnnotations, findExternalAnnotation, findExternalAnnotations, findExternalAnnotations, findExternalAnnotationsFiles, getDataFromFile, getExternalName, isExternalAnnotation, isExternalAnnotationWritable, registerExternalAnnotations
getInstance
public ExternalAnnotationsManagerImpl(Project project)
public void annotateExternally(PsiModifierListOwner listOwner, java.lang.String annotationFQName, PsiFile fromFile, PsiNameValuePair [] value) throws ExternalAnnotationsManager.CanceledConfigurationException
annotateExternally
in class BaseExternalAnnotationsManager
ExternalAnnotationsManager.CanceledConfigurationException
public boolean deannotate(PsiModifierListOwner listOwner, java.lang.String annotationFQN)
deannotate
in class BaseExternalAnnotationsManager
public void elementRenamedOrMoved(PsiModifierListOwner element, java.lang.String oldExternalName)
elementRenamedOrMoved
in class ExternalAnnotationsManager
public boolean editExternalAnnotation(PsiModifierListOwner listOwner, java.lang.String annotationFQN, PsiNameValuePair [] value)
editExternalAnnotation
in class BaseExternalAnnotationsManager
public ExternalAnnotationsManager.AnnotationPlace chooseAnnotationsPlaceNoUi(PsiElement element)
chooseAnnotationsPlaceNoUi
in class BaseExternalAnnotationsManager
element
- element to add new annotation forExternalAnnotationsManager.AnnotationPlace.NEED_ASK_USER
if the user confirmation is necessary.public ExternalAnnotationsManager.AnnotationPlace chooseAnnotationsPlace(PsiElement element)
chooseAnnotationsPlace
in class BaseExternalAnnotationsManager
element
- element to add new annotation forpublic static java.lang.String createAnnotationTag(java.lang.String annotationFQName, PsiNameValuePair [] values)
public static XmlFile createAnnotationsXml(VirtualFile root, java.lang.String packageName, PsiManager manager)
public boolean hasAnnotationRootsForFile(VirtualFile file)
hasAnnotationRootsForFile
in class BaseExternalAnnotationsManager
protected void duplicateError(PsiFile file, java.lang.String externalName, java.lang.String text)
duplicateError
in class BaseExternalAnnotationsManager
public static boolean areExternalAnnotationsApplicable(PsiModifierListOwner owner)