Java 类com.intellij.psi.impl.PomTargetPsiElementImpl 实例源码

项目:intellij-ce-playground    文件:GenericDomValueReference.java   
@Override
public boolean isReferenceTo(final PsiElement element) {
  final Converter<T> converter = getConverter();
  if (converter instanceof ResolvingConverter) {
    T value = myGenericValue.getValue();
    if (value instanceof DomElement && element instanceof PomTargetPsiElementImpl) {
      PomTarget target = ((PomTargetPsiElementImpl)element).getTarget();
      if (target instanceof DomTarget) {
        if (value.equals(((DomTarget)target).getDomElement())) {
          return true;
        }
      }
    }
    return ((ResolvingConverter<T>)converter).isReferenceTo(element, getStringValue(), value, getConvertContext());
  }
  return super.isReferenceTo(element);
}
项目:tools-idea    文件:GenericDomValueReference.java   
public boolean isReferenceTo(final PsiElement element) {
  final Converter<T> converter = getConverter();
  if (converter instanceof ResolvingConverter) {
    T value = myGenericValue.getValue();
    if (value instanceof DomElement && element instanceof PomTargetPsiElementImpl) {
      PomTarget target = ((PomTargetPsiElementImpl)element).getTarget();
      if (target instanceof DomTarget) {
        if (value.equals(((DomTarget)target).getDomElement())) {
          return true;
        }
      }
    }
    return ((ResolvingConverter<T>)converter).isReferenceTo(element, getStringValue(), value, getConvertContext());
  }
  return super.isReferenceTo(element);
}
项目:consulo-xml    文件:GenericDomValueReference.java   
public boolean isReferenceTo(final PsiElement element) {
  final Converter<T> converter = getConverter();
  if (converter instanceof ResolvingConverter) {
    T value = myGenericValue.getValue();
    if (value instanceof DomElement && element instanceof PomTargetPsiElementImpl) {
      PomTarget target = ((PomTargetPsiElementImpl)element).getTarget();
      if (target instanceof DomTarget) {
        if (value.equals(((DomTarget)target).getDomElement())) {
          return true;
        }
      }
    }
    return ((ResolvingConverter<T>)converter).isReferenceTo(element, getStringValue(), value, getConvertContext());
  }
  return super.isReferenceTo(element);
}
项目:intellij-ce-playground    文件:PomServiceImpl.java   
@NotNull
@Override
public PsiElement convertToPsi(@NotNull PomTarget target) {
  if (target instanceof PsiElement) {
    return (PsiElement)target;
  }
  return new PomTargetPsiElementImpl(myProject, target);
}
项目:tools-idea    文件:PomServiceImpl.java   
@NotNull
@Override
public PsiElement convertToPsi(@NotNull PomTarget target) {
  if (target instanceof PsiElement) {
    return (PsiElement)target;
  }
  return new PomTargetPsiElementImpl(myProject, target);
}
项目:consulo    文件:PomServiceImpl.java   
@Nonnull
@Override
public PsiElement convertToPsi(@Nonnull PomTarget target) {
  if (target instanceof PsiElement) {
    return (PsiElement)target;
  }
  return new PomTargetPsiElementImpl(myProject, target);
}