Java 类com.intellij.psi.PsiPlainText 实例源码

项目:manifold-ij    文件:RenameTypeManifoldFileProcessor.java   
private boolean isElementInsidePlainTextFile( PsiElement element )
{
  if( element instanceof PsiPlainText )
  {
    element = element.getContainingFile();
  }

  if( element instanceof PsiPlainTextFile )
  {
    PsiElement fakeElement = ResourceToManifoldUtil.findFakePlainTextElement( (PsiPlainTextFile)element );
    return fakeElement != null && !(fakeElement instanceof PsiPlainTextFile) && !isTopLevelClassDeclaration( fakeElement );

  }
  return false;
}
项目:intellij-ce-playground    文件:NaturalLanguageTextSelectioner.java   
@Override
public boolean canSelect(PsiElement e) {
  return (e instanceof PsiPlainText || e instanceof PsiComment) &&
         !(e.getContainingFile().getFileType() instanceof CustomSyntaxTableFileType);
}
项目:intellij-ce-playground    文件:PlainTextLineSelectioner.java   
@Override
public boolean canSelect(PsiElement e) {
  return e instanceof PsiPlainText;
}
项目:GitToolBox    文件:CurrentBranchCompletionContributor.java   
public CurrentBranchCompletionContributor() {
  extend(CompletionType.BASIC, PlatformPatterns.psiElement(PsiPlainText.class), new Completer());
}
项目:tools-idea    文件:NaturalLanguageTextSelectioner.java   
@Override
public boolean canSelect(PsiElement e) {
  return e instanceof PsiPlainText || e instanceof PsiComment;
}
项目:tools-idea    文件:PlainTextLineSelectioner.java   
@Override
public boolean canSelect(PsiElement e) {
  return e instanceof PsiPlainText;
}
项目:consulo    文件:NaturalLanguageTextSelectioner.java   
@Override
public boolean canSelect(PsiElement e) {
  return e instanceof PsiPlainText || e instanceof PsiComment;
}
项目:consulo    文件:PlainTextLineSelectioner.java   
@Override
public boolean canSelect(PsiElement e) {
  return e instanceof PsiPlainText;
}