本文整理汇总了Java中com.intellij.codeInsight.daemon.GroupNames.BUGS_GROUP_NAME属性的典型用法代码示例。如果您正苦于以下问题:Java GroupNames.BUGS_GROUP_NAME属性的具体用法?Java GroupNames.BUGS_GROUP_NAME怎么用?Java GroupNames.BUGS_GROUP_NAME使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.intellij.codeInsight.daemon.GroupNames
的用法示例。
在下文中一共展示了GroupNames.BUGS_GROUP_NAME属性的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getGroupDisplayName
@Nls
@NotNull
@Override
public String getGroupDisplayName()
{
return GroupNames.BUGS_GROUP_NAME;
}
示例2: getGroupDisplayName
@Nls
@NotNull
@Override
public String getGroupDisplayName() {
return GroupNames.BUGS_GROUP_NAME;
}
示例3: getGroupDisplayName
@NotNull
public String getGroupDisplayName() {
return GroupNames.BUGS_GROUP_NAME;
}
示例4: getGroupDisplayName
@Override
@NotNull
public String getGroupDisplayName() {
return GroupNames.BUGS_GROUP_NAME;
}
示例5: getGroupDisplayName
@Nls
@NotNull
@Override
public String getGroupDisplayName() {
return GroupNames.BUGS_GROUP_NAME;
}
示例6: getGroupDisplayName
@NotNull
@Override
public String getGroupDisplayName() {
return GroupNames.BUGS_GROUP_NAME;
}
示例7: getGroupDisplayName
@NotNull
public String getGroupDisplayName() {
return GroupNames.BUGS_GROUP_NAME;
}
示例8: checkForDataFieldInitializationProblems
public static void checkForDataFieldInitializationProblems(final ProblemsHolder holder,
final PsiAnnotation annotation) {
final PsiElement ownerElement = Util.getImmediateOwnerElement(annotation);
final boolean fieldIsInject = Util.fieldOrMethodIsAnnotated(ownerElement, Types.JAVAX_INJECT);
final boolean fieldInitialized = Util.fieldElementIsInitialized(ownerElement);
if (!fieldIsInject && !fieldInitialized) {
holder.registerProblem(ownerElement, "Un-injected @DataField element is not initialized and may fail at runtime.");
}
else if (fieldIsInject && fieldInitialized) {
final LocalQuickFix localQuickFix = new LocalQuickFix() {
@NotNull
@Override
public String getName() {
return "Remove @Inject annotation";
}
@NotNull
@Override
public String getFamilyName() {
return GroupNames.BUGS_GROUP_NAME;
}
@Override
public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
final PsiElement psiElement = Util.getImmediateOwnerElement(annotation);
final PsiField psiField = (PsiField) psiElement;
final PsiModifierList modifierList = psiField.getModifierList();
if (modifierList != null) {
for (PsiAnnotation psiAnnotation : modifierList.getAnnotations()) {
final String qualifiedName = psiAnnotation.getQualifiedName();
if (qualifiedName != null && qualifiedName.equals(Types.JAVAX_INJECT)) {
psiAnnotation.delete();
}
}
}
}
};
if (ownerElement != null) {
holder.registerProblem(ownerElement, "Injected @DataField element has a default value which will be overwritten at runtime.",
localQuickFix);
}
}
}
示例9: ensureDataFieldIsValid
public static void ensureDataFieldIsValid(final ProblemsHolder holder,
final PsiAnnotation annotation) {
final PsiElement ownerElement = Util.getImmediateOwnerElement(annotation);
final boolean fieldIsInject = Util.fieldOrMethodIsAnnotated(ownerElement, Types.JAVAX_INJECT);
final boolean fieldInitialized = Util.fieldElementIsInitialized(ownerElement);
if (!fieldIsInject && !fieldInitialized) {
holder.registerProblem(ownerElement, "Un-injected @DataField element is not initialized and may fail at runtime.");
}
else if (fieldIsInject && fieldInitialized) {
final LocalQuickFix localQuickFix = new LocalQuickFix() {
@NotNull
@Override
public String getName() {
return "Remove @Inject annotation";
}
@NotNull
@Override
public String getFamilyName() {
return GroupNames.BUGS_GROUP_NAME;
}
@Override
public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
final PsiElement psiElement = Util.getImmediateOwnerElement(annotation);
final PsiField psiField = (PsiField) psiElement;
final PsiModifierList modifierList = psiField.getModifierList();
if (modifierList != null) {
for (PsiAnnotation psiAnnotation : modifierList.getAnnotations()) {
final String qualifiedName = psiAnnotation.getQualifiedName();
if (qualifiedName != null && qualifiedName.equals(Types.JAVAX_INJECT)) {
psiAnnotation.delete();
}
}
}
}
};
if (ownerElement != null) {
holder.registerProblem(ownerElement, "Injected @DataField element has a default value which will be overwritten at runtime.",
localQuickFix);
}
}
}
示例10: getGroupDisplayName
@Override
@NotNull
public String getGroupDisplayName()
{
return GroupNames.BUGS_GROUP_NAME;
}