本文整理汇总了Java中com.intellij.util.xml.highlighting.ResolvingElementQuickFix类的典型用法代码示例。如果您正苦于以下问题:Java ResolvingElementQuickFix类的具体用法?Java ResolvingElementQuickFix怎么用?Java ResolvingElementQuickFix使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ResolvingElementQuickFix类属于com.intellij.util.xml.highlighting包,在下文中一共展示了ResolvingElementQuickFix类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getQuickFixes
import com.intellij.util.xml.highlighting.ResolvingElementQuickFix; //导入依赖的package包/类
@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);
}
示例2: getQuickFixes
import com.intellij.util.xml.highlighting.ResolvingElementQuickFix; //导入依赖的package包/类
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);
}