Bug 61273 RTF-styles no longer copied in java editor
I20040506-0200 Copying text from the java editor used to copy the selected source range also in RTF format. This no longer works - the only type in the clipboard is text.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClipboardOperationAction.java
internalDoOperation();
			}
		});
	}
	
	private Display getDisplay() {
		ITextEditor editor= getTextEditor();
		if (editor != null) {
			IWorkbenchPartSite site= editor.getSite();
			Shell shell= site.getShell();
			if (shell != null && !shell.isDisposed()) 
				return shell.getDisplay();
		}
		return null;
	}
	
	
	protected final void internalDoOperation() {
		if (PreferenceConstants.getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_IMPORTS_ON_PASTE)) {
			if (fOperationCode == ITextOperationTarget.PASTE) {
				doPasteWithImportsOperation();
			} else {
				doCutCopyWithImportsOperation();
			}
		} else {
			fOperationTarget.doOperation(fOperationCode);
		}
	}
	
	/* (non-Javadoc)