本文整理汇总了Java中org.intellij.plugins.relaxNG.compact.psi.RncFileReference类的典型用法代码示例。如果您正苦于以下问题:Java RncFileReference类的具体用法?Java RncFileReference怎么用?Java RncFileReference使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RncFileReference类属于org.intellij.plugins.relaxNG.compact.psi包,在下文中一共展示了RncFileReference类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleContentChange
import org.intellij.plugins.relaxNG.compact.psi.RncFileReference; //导入依赖的package包/类
@Override
public RncFileReference handleContentChange(@NotNull RncFileReference element, @NotNull TextRange range, String newContent) throws
IncorrectOperationException {
final ASTNode node = element.getNode();
assert node != null;
final ASTNode literal = node.findChildByType(RncTokenTypes.LITERAL);
if (literal != null) {
assert range.equals(element.getReferenceRange());
final PsiManager manager = element.getManager();
final ASTNode newChild = RenameUtil.createLiteralNode(manager, newContent);
literal.getTreeParent().replaceChild(literal, newChild);
}
return element;
}
示例2: handleContentChange
import org.intellij.plugins.relaxNG.compact.psi.RncFileReference; //导入依赖的package包/类
public RncFileReference handleContentChange(RncFileReference element, TextRange range, String newContent) throws
IncorrectOperationException {
final ASTNode node = element.getNode();
assert node != null;
final ASTNode literal = node.findChildByType(RncTokenTypes.LITERAL);
if (literal != null) {
assert range.equals(element.getReferenceRange());
final PsiManager manager = element.getManager();
final ASTNode newChild = RenameUtil.createLiteralNode(manager, newContent);
literal.getTreeParent().replaceChild(literal, newChild);
}
return element;
}
示例3: getRangeInElement
import org.intellij.plugins.relaxNG.compact.psi.RncFileReference; //导入依赖的package包/类
@NotNull
@Override
public TextRange getRangeInElement(@NotNull RncFileReference element) {
return element.getReferenceRange();
}
示例4: getRangeInElement
import org.intellij.plugins.relaxNG.compact.psi.RncFileReference; //导入依赖的package包/类
@Override
public TextRange getRangeInElement(RncFileReference element) {
return element.getReferenceRange();
}