When you use Eclipse RCP to develop your own applications, you often need to use the editing and presentation of the format text. But the Swt/jface component does not provide the right components to accomplish this task, text is far from our requirements. The body part of the official document in my OA system needs a suitable rich editor to complete this task.
So the world looks for the right Java Rich Editor component to complete this requirement, and finally finds two technical solutions that are easier to use in Eclipse RCP, which I've used in my system
1, the use of Ekit components, Ekit is not a lot of open source Java Rich Editor components, and in terms of functionality can better meet the requirements of the text format. Because it is an AWT component, it is used in Eclipse RCP to perform the conversion of SWT Compsite to AWT frame using the Swt_awt bridge. The method I used was to wrap the Ekit in swt_awt and make an SWT component easy for my program to call. The disadvantage of this approach is that Ekit itself does not support the copy of OLE, from other OLE program paste content copy to write their own corresponding paste processing program, very annoying
2, use the JavaScript based Web rich editor component such as FCKeditor or TINYMCE, and invoke it using the Htmlcomposer component in SWT. The advantage of this way is to support a variety of programs ole paste, worry-saving.
By the way, show us the rich editor of our system and see how it works. If the other students have a better way also welcome to exchange!