private String createExtractedInterfaceCUSource(ICompilationUnit newCu) throws CoreException { StringBuffer buffer= new StringBuffer(); if (! getInputClassPackage().isDefaultPackage()) buffer.append(createPackageDeclarationSource()); buffer.append(createImportsSource()); if (fCodeGenerationSettings.createComments){ String template= StubUtility.getTypeComment(newCu, fNewInterfaceName, ""); if (template != null){ buffer.append(getLineSeperator()); buffer.append(template); } } buffer.append(createInterfaceSource()); return buffer.toString();
private String createExtractedInterfaceCUSource(ICompilationUnit newCu, IProgressMonitor pm) throws CoreException { String template= StubUtility.getTypeComment(newCu, fNewInterfaceName, ""); newCu.getBuffer().setContents(StubUtility.getCompilationUnitContent(newCu, template, createInterfaceSource(), getLineSeperator())); addImportsToNewCu(newCu, pm); return newCu.getSource();
	private String createExtractedInterfaceCUSource(ICompilationUnit newCu) throws CoreException {		StringBuffer buffer= new StringBuffer();		if (! getInputClassPackage().isDefaultPackage())				buffer.append(createPackageDeclarationSource());		buffer.append(createImportsSource());		if (fCodeGenerationSettings.createComments){			String template= StubUtility.getTypeComment(newCu, fNewInterfaceName, "");//$NON-NLS-1$			if (template != null){				buffer.append(getLineSeperator());				buffer.append(template);			}		}			buffer.append(createInterfaceSource());		return buffer.toString();	}