String[] source= Strings.convertIntoLines(elems[i].getSource()); MemberEdit edit= new MemberEdit(element, style, source, tabWidth);
String[] sourceLines= removeTrailingEmptyLines(Strings.convertIntoLines(elems[i].getSource())); MemberEdit edit= new MemberEdit(element, style, sourceLines, tabWidth);
	private  void paste(int style, ISourceReference selected) throws CoreException{		TextBuffer tb= TextBuffer.acquire(SourceReferenceUtil.getFile(selected));		try{			TextBufferEditor tbe= new TextBufferEditor(tb);			TypedSource[] elems= getContentsToPaste();						IJavaElement element= (IJavaElement)selected;			int tabWidth= CodeFormatterUtil.getTabWidth();			for (int i= 0; i < elems.length; i++) {				String[] source= Strings.convertIntoLines(elems[i].getSource());				MemberEdit edit= new MemberEdit(element, style, source, tabWidth);				tbe.add(edit);			}			if (! tbe.canPerformEdits())				return; ///XXX			tbe.performEdits(new NullProgressMonitor());				TextBuffer.commitChanges(tb, false, new NullProgressMonitor());		} finally{				if (tb != null)				TextBuffer.release(tb);		}	}