HTML editor inside a dialog? [message #524164] |
Tue, 30 March 2010 21:37  |
Eclipse User |
|
|
|
The WTP project has a nice html editor, and I want to use this editor inside my view or dialog. Can anyone give me some hint about how to implement it?
I had tried to use the StructuredTextViewer, unfortunately, the StructuredTextViewer is not a public API. Is there any plan to expose this in future release?
Thanks
-chengdong
|
|
|
Re: HTML editor inside a dialog? [message #524978 is a reply to message #524164] |
Sun, 04 April 2010 21:44  |
Eclipse User |
|
|
|
On 3/30/2010 9:37 PM, chengdong wrote:
> The WTP project has a nice html editor, and I want to use this editor
> inside my view or dialog. Can anyone give me some hint about how to
> implement it?
>
> I had tried to use the StructuredTextViewer, unfortunately, the
> StructuredTextViewer is not a public API. Is there any plan to expose
> this in future release?
No, as it was always intended to be a lean extension to the standard
source viewer. You should see how far you can get with code similar to
org.eclipse.wst.html.ui.internal.preferences.ui.HTMLTemplate PreferencePage#doCreateViewer(Composite,
SourceViewerConfiguration) , but with a ProjectionViewer. The
functionality is intended to degrade gracefully if needed.
--
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
|
|
|
Powered by
FUDForum. Page generated in 0.03121 seconds