final ICompilationUnit original= declaring.getPackageFragment().getCompilationUnit(name); final ICompilationUnit copy= getSharedWorkingCopy(original.getPrimary(), new SubProgressMonitor(monitor, 10)); fSuperSource= createSuperTypeSource(copy, superType, declaringDeclaration, status, new SubProgressMonitor(monitor, 10)); if (fSuperSource != null) { copy.getBuffer().setContents(fSuperSource);
final ICompilationUnit original= declaring.getPackageFragment().getCompilationUnit(name); final ICompilationUnit copy= getSharedWorkingCopy(original.getPrimary(), new SubProgressMonitor(monitor, 10)); fSuperSource= createSuperTypeSource(copy, superType, declaringDeclaration, status, new SubProgressMonitor(monitor, 10)); if (fSuperSource != null) { copy.getBuffer().setContents(fSuperSource);
final ICompilationUnit original= declaring.getPackageFragment().getCompilationUnit(name); final ICompilationUnit copy= getSharedWorkingCopy(original.getPrimary(), new SubProgressMonitor(monitor, 10)); fSuperSource= createSuperTypeSource(copy, superType, declaringDeclaration, status, new SubProgressMonitor(monitor, 10)); if (fSuperSource != null) { copy.getBuffer().setContents(fSuperSource);