*/
protected void smartPaste(IDocument document, DocumentCommand command) {
if (command.offset == -1 || document.getLength() == 0)
return;
StringBuffer helpBuffer = new StringBuffer();
IndentationObject indentationObject = null;
try {
if (document instanceof IStructuredDocument) {
indentationObject = new IndentationObject(
(IStructuredDocument) document);
defaultStrategy.placeMatchingBlanksForStructuredDocument(
(IStructuredDocument) document, helpBuffer,
document.getLineOfOffset(command.offset),
command.offset);