Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » HTML editor inside a dialog?
HTML editor inside a dialog? [message #524164] Wed, 31 March 2010 01:37 Go to next message
chengdong is currently offline chengdongFriend
Messages: 17
Registered: July 2009
Junior Member
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] Mon, 05 April 2010 01:44 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2334
Registered: July 2009
Senior Member
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


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:No SQL Scrapbook Page
Next Topic:Can I link a dynamic web project source and output folders to external directories ?
Goto Forum:
  


Current Time: Tue Nov 25 00:45:01 GMT 2014

Powered by FUDForum. Page generated in 0.01940 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software