Java 类com.intellij.psi.impl.source.PsiTypeCodeFragmentImpl 实例源码

项目:consulo-java    文件:CompoundRendererConfigurable.java   
private ClassNameEditorWithBrowseButton(ActionListener browseActionListener, final Project project)
{
    super(browseActionListener, project, s ->
    {
        JavaCodeFragment fragment = new PsiTypeCodeFragmentImpl(project, true, "fragment.java", s, 0, null)
        {
            @Override
            public boolean importClass(PsiClass aClass)
            {
                return false;
            }
        };
        fragment.setVisibilityChecker(JavaCodeFragment.VisibilityChecker.EVERYTHING_VISIBLE);
        return PsiDocumentManager.getInstance(project).getDocument(fragment);
    }, "");
}
项目:intellij-ce-playground    文件:JavaCodeFragmentFactoryImpl.java   
@NotNull
@Override
public PsiTypeCodeFragment createTypeCodeFragment(@NotNull final String text, @Nullable final PsiElement context, final boolean isPhysical, final int flags) {
  return new PsiTypeCodeFragmentImpl(myProject, isPhysical, "fragment.java", text, flags, context);
}
项目:tools-idea    文件:JavaCodeFragmentFactoryImpl.java   
@NotNull
@Override
public PsiTypeCodeFragment createTypeCodeFragment(@NotNull final String text, @Nullable final PsiElement context, final boolean isPhysical, final int flags) {
  return new PsiTypeCodeFragmentImpl(myProject, isPhysical, "fragment.java", text, flags, context);
}
项目:consulo-java    文件:JavaCodeFragmentFactoryImpl.java   
@NotNull
@Override
public PsiTypeCodeFragment createTypeCodeFragment(@NotNull final String text, @Nullable final PsiElement context, final boolean isPhysical, final int flags)
{
    return new PsiTypeCodeFragmentImpl(myProject, isPhysical, "fragment.java", text, flags, context);
}