Java 类com.intellij.util.xml.highlighting.ResolvingElementQuickFix 实例源码

项目:intellij-ce-playground    文件:DomResolveConverter.java   
@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);
}
项目:tools-idea    文件:DomResolveConverter.java   
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);
}
项目:consulo-xml    文件:DomResolveConverter.java   
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);
}