@NotNull private static List<PsiTypeCodeFragment> initTypeCodeFragment(int length) { final List<PsiTypeCodeFragment> result = new ArrayList<PsiTypeCodeFragment>(); for (int i = 0; i < length; i++) { result.add(null); } return result; }
public ChangeClassSignatureDialog(@NotNull PsiClass aClass, @NotNull Collection<TypeParameterInfo> typeParameterInfos, @NotNull Collection<PsiTypeCodeFragment> typeCodeFragments, boolean hideDefaultValueColumn) { super(aClass.getProject(), true); myHideDefaultValueColumn = hideDefaultValueColumn; setTitle(REFACTORING_NAME); myClass = aClass; myProject = myClass.getProject(); myOriginalParameters = myClass.getTypeParameters(); myTypeParameterInfos = new ArrayList<TypeParameterInfo>(typeParameterInfos); myTypeCodeFragments = new ArrayList<PsiTypeCodeFragment>(typeCodeFragments); myTableModel = new MyTableModel(); init(); }
public PsiTypeCodeFragment getTypeFragment() { return myType; }
@NotNull @Override public PsiTypeCodeFragment createTypeCodeFragment(@NotNull final String text, @Nullable final PsiElement context, final boolean isPhysical) { return createTypeCodeFragment(text, context, isPhysical, 0); }
@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); }
public ChangeClassSignatureDialog(@NotNull PsiClass aClass, @NotNull Map<TypeParameterInfo, PsiTypeCodeFragment> parameters, boolean hideDefaultValueColumn) { this(aClass, parameters.keySet(), parameters.values(), hideDefaultValueColumn); }
private PsiTypeCodeFragment createValueCodeFragment() { final JavaCodeFragmentFactory factory = JavaCodeFragmentFactory.getInstance(myProject); return factory.createTypeCodeFragment("", myClass.getLBrace(), true); }