本文整理汇总了Java中com.intellij.util.xml.ConvertContext.getInvocationElement方法的典型用法代码示例。如果您正苦于以下问题:Java ConvertContext.getInvocationElement方法的具体用法?Java ConvertContext.getInvocationElement怎么用?Java ConvertContext.getInvocationElement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.util.xml.ConvertContext
的用法示例。
在下文中一共展示了ConvertContext.getInvocationElement方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fromString
import com.intellij.util.xml.ConvertContext; //导入方法依赖的package包/类
@Nullable
@Override
public PsiField fromString(@Nullable final String text, final ConvertContext context) {
DomElement host = context.getInvocationElement();
if (host instanceof GenericAttributeValue<?>) {
DomElement domProperty = host.getParent();
return domProperty instanceof Property ? BeansUtils.resolveToPsiField((Property) domProperty, text) : null;
}
return null;
}
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:11,代码来源:BeansPropertyNameConverter.java
示例2: getValues
import com.intellij.util.xml.ConvertContext; //导入方法依赖的package包/类
protected Collection<String> getValues(@NotNull ConvertContext context) {
DomElement element = context.getInvocationElement();
MavenProject project = MavenDomUtil.findContainingProject(element);
if (project == null) return Collections.emptyList();
return getValues(context, project);
}
示例3: resolveString
import com.intellij.util.xml.ConvertContext; //导入方法依赖的package包/类
public String resolveString(@Nullable String unresolvedText, @NotNull ConvertContext context) {
// todo: speed optimization: disable string resolution in places where it is not applicable
if (unresolvedText == null) {
return null;
}
final DomElement element = context.getInvocationElement();
return AntStringResolver.computeString(element, unresolvedText);
}