Bug 20151 Copy/Paste inserts two new lines [ccp]
F3 - select a method in ouliner - copy - select CU - paste observe: method has two trailing newlines. There should be only one. May be this is a regression of the CodeFormatter fix
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/PasteSourceReferencesFromClipboardAction.java
String[] source= Strings.convertIntoLines(elems[i].getSource());
				MemberEdit edit= new MemberEdit(element, style, source, tabWidth);
				tbe.add(edit);
			}
			if (! tbe.canPerformEdits())
				return; 
			tbe.performEdits(new NullProgressMonitor());	
			TextBuffer.commitChanges(tb, false, new NullProgressMonitor());
		} finally{	
			if (tb != null)
				TextBuffer.release(tb);
		}
	}
	
	private  void pasteInCompilationUnit(ICompilationUnit unit) throws CoreException{
		TextBuffer tb= TextBuffer.acquire(SourceReferenceUtil.getFile(unit));
		try{
			TextBufferEditor tbe= new TextBufferEditor(tb);
			TypedSource[] elems= getContentsToPaste();
			
			for (int i= 0; i < elems.length; i++) {
				tbe.add(new PasteInCompilationUnitEdit(elems[i].getSource(), elems[i].getType(), unit));
			}
			if (! tbe.canPerformEdits())
				return; 
			tbe.performEdits(new NullProgressMonitor());	
			TextBuffer.commitChanges(tb, false, new NullProgressMonitor());
		} finally{	
			if (tb != null)
				TextBuffer.release(tb);