@Override protected IFile[] getChangedFiles() throws CoreException { if (!fWillRenameType) { IFile file= ResourceUtil.getFile(fCu); if (file != null) return new IFile[] {file}; } return new IFile[0]; }
@Override protected IFile[] getChangedFiles() throws CoreException { List<IFile> result= new ArrayList<>(); result.addAll(Arrays.asList(ResourceUtil.getFiles(fChangeManager.getAllCompilationUnits()))); if (fQualifiedNameSearchResult != null) result.addAll(Arrays.asList(fQualifiedNameSearchResult.getAllFiles())); if (willRenameCU()) result.add(ResourceUtil.getFile(fType.getCompilationUnit())); return result.toArray(new IFile[result.size()]); }
@Override protected IFile[] getChangedFiles() throws CoreException { return new IFile[] {ResourceUtil.getFile(fCu)}; }
@Override protected IFile[] getChangedFiles() throws CoreException { List<IFile> result= new ArrayList<>(); result.addAll(Arrays.asList(ResourceUtil.getFiles(fChangeManager.getAllCompilationUnits()))); if (fQualifiedNameSearchResult != null) result.addAll(Arrays.asList(fQualifiedNameSearchResult.getAllFiles())); if (willRenameCU()) result.add(ResourceUtil.getFile(fType.getCompilationUnit())); return result.toArray(new IFile[result.size()]); }
@Override protected IFile[] getChangedFiles() throws CoreException { return new IFile[] {ResourceUtil.getFile(fCu)}; }
protected IFile[] getChangedFiles() throws CoreException { List result= new ArrayList(); result.addAll(Arrays.asList(ResourceUtil.getFiles(fChangeManager.getAllCompilationUnits()))); if (fQualifiedNameSearchResult != null) result.addAll(Arrays.asList(fQualifiedNameSearchResult.getAllFiles())); if (willRenameCU()) result.add(ResourceUtil.getFile(fType.getCompilationUnit())); return (IFile[]) result.toArray(new IFile[result.size()]); }
protected IFile[] getChangedFiles() throws CoreException { return new IFile[] {ResourceUtil.getFile(fCu)}; }
protected IFile[] getChangedFiles() throws CoreException { if (!fWillRenameType) { IFile file= ResourceUtil.getFile(fCu); if (file != null) return new IFile[] {file}; } return new IFile[0]; }
@Override protected IFile[] getChangedFiles() throws CoreException { if (!fWillRenameType) { IFile file= ResourceUtil.getFile(fCu); if (file != null) return new IFile[] {file}; } return new IFile[0]; }
@Override protected IFile[] getChangedFiles() throws CoreException { return new IFile[] {ResourceUtil.getFile(fTypeParameter.getDeclaringMember().getCompilationUnit())}; }
protected IFile[] getChangedFiles() throws CoreException { return new IFile[] {ResourceUtil.getFile(fTypeParameter.getDeclaringMember().getCompilationUnit())}; }
@Override protected IFile[] getChangedFiles() throws CoreException { return new IFile[] {ResourceUtil.getFile(fTypeParameter.getDeclaringMember().getCompilationUnit())}; }
arguments.put(JDTRefactoringDescriptor.ATTRIBUTE_ELEMENT + (offset + fMembersToMove.length + fDeletedMethods.length + fAbstractMethods.length + 1), descriptor.elementToHandle(fTypesToExtract[offset])); final DynamicValidationRefactoringChange change= new DynamicValidationRefactoringChange(descriptor, RefactoringCoreMessages.ExtractSupertypeProcessor_extract_supertype, fChangeManager.getAllChanges()); final IFile file= ResourceUtil.getFile(declaring.getCompilationUnit()); if (fSuperSource != null && fSuperSource.length() > 0) change.add(new CreateCompilationUnitChange(declaring.getPackageFragment().getCompilationUnit(JavaModelUtil.getRenamedCUName(declaring.getCompilationUnit(), fTypeName)), fSuperSource, file.getCharset(false)));
arguments.put(JavaRefactoringDescriptorUtil.ATTRIBUTE_ELEMENT + (offset + fMembersToMove.length + fDeletedMethods.length + fAbstractMethods.length + 1), JavaRefactoringDescriptorUtil.elementToHandle(project, fTypesToExtract[offset])); final DynamicValidationRefactoringChange change= new DynamicValidationRefactoringChange(descriptor, RefactoringCoreMessages.ExtractSupertypeProcessor_extract_supertype, fChangeManager.getAllChanges()); final IFile file= ResourceUtil.getFile(declaring.getCompilationUnit()); if (fSuperSource != null && fSuperSource.length() > 0) change.add(new CreateCompilationUnitChange(declaring.getPackageFragment().getCompilationUnit(JavaModelUtil.getRenamedCUName(declaring.getCompilationUnit(), fTypeName)), fSuperSource, file.getCharset(false)));
arguments.put(ATTRIBUTE_INSTANCEOF, Boolean.valueOf(fInstanceOf).toString()); final DynamicValidationRefactoringChange change= new DynamicValidationRefactoringChange(descriptor, RefactoringCoreMessages.ExtractInterfaceRefactoring_name, fChangeManager.getAllChanges()); final IFile file= ResourceUtil.getFile(fSubType.getCompilationUnit()); if (fSuperSource != null && fSuperSource.length() > 0) change.add(new CreateCompilationUnitChange(fSubType.getPackageFragment().getCompilationUnit(JavaModelUtil.getRenamedCUName(fSubType.getCompilationUnit(), fSuperName)), fSuperSource, file.getCharset(false)));
arguments.put(ATTRIBUTE_INSTANCEOF, Boolean.valueOf(fInstanceOf).toString()); final DynamicValidationRefactoringChange change= new DynamicValidationRefactoringChange(descriptor, RefactoringCoreMessages.ExtractInterfaceRefactoring_name, fChangeManager.getAllChanges()); final IFile file= ResourceUtil.getFile(fSubType.getCompilationUnit()); if (fSuperSource != null && fSuperSource.length() > 0) change.add(new CreateCompilationUnitChange(fSubType.getPackageFragment().getCompilationUnit(JavaModelUtil.getRenamedCUName(fSubType.getCompilationUnit(), fSuperName)), fSuperSource, file.getCharset(false)));
arguments.put(ATTRIBUTE_INSTANCEOF, Boolean.valueOf(fInstanceOf).toString()); final DynamicValidationRefactoringChange change= new DynamicValidationRefactoringChange(descriptor, RefactoringCoreMessages.ExtractInterfaceRefactoring_name, fChangeManager.getAllChanges()); final IFile file= ResourceUtil.getFile(fSubType.getCompilationUnit()); if (fSuperSource != null && fSuperSource.length() > 0) change.add(new CreateCompilationUnitChange(fSubType.getPackageFragment().getCompilationUnit(JavaModelUtil.getRenamedCUName(fSubType.getCompilationUnit(), fSuperName)), fSuperSource, file.getCharset(false)));
String charset= ResourceUtil.getFile(unit).getCharset(false); Document document= new Document(content); try {
String charset= ResourceUtil.getFile(fCompilationUnit).getCharset(false); Document document= new Document(content); try {
String charset= ResourceUtil.getFile(unit).getCharset(false); Document document= new Document(content); try {