@Override public LocalQuickFix[] getQuickFixes(final ConvertContext context) { final DomElement element = context.getInvocationElement(); final GenericDomValue value = ((GenericDomValue)element).createStableCopy(); final String newName = value.getStringValue(); if (newName == null) return LocalQuickFix.EMPTY_ARRAY; final DomElement scope = value.getManager().getResolvingScope(value); return ResolvingElementQuickFix.createFixes(newName, myClass, scope); }
public LocalQuickFix[] getQuickFixes(final ConvertContext context) { final DomElement element = context.getInvocationElement(); final GenericDomValue value = ((GenericDomValue)element).createStableCopy(); final String newName = value.getStringValue(); if (newName == null) return LocalQuickFix.EMPTY_ARRAY; final DomElement scope = value.getManager().getResolvingScope(value); return ResolvingElementQuickFix.createFixes(newName, myClass, scope); }