Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EPF » Exception at RichText formatHTML
Exception at RichText formatHTML [message #1079832] Mon, 05 August 2013 06:11
Dhanya M is currently offline Dhanya M
Messages: 16
Registered: April 2013
Junior Member
Hello,

I have a RichTextEditor for viewing or modifing a subset of HTML tags (eg tags: p,b,i,u etc).

DescriptionEditor descEditor = new DescriptionEditor(composite, SWT.BORDER,
editorSite);

IRichText descRichText = descEditor.getRichTextControl();

descRichText.setEditable(true);

It appears on my ViewPart. The moment i start typing on the editor or I do a descRichText.setText("") method, a NullPointerException occurs in the RichText code.

java.lang.NullPointerException
at org.eclipse.epf.richtext.RichText.formatHTML(RichText.java:522)
at org.eclipse.epf.richtext.RichText.setText(RichText.java:551)

Is there some settings i am missing while using the richTextEditor?

I have already done some analysis on viewing RichText code:

I see that the htmlFormatter was null in RichText.java code.
and it seems this is set by an extension point (org.eclipse.epf.common.htmlFormatter) internally.

I tried setting this formatter externally as well.

<extension
point="org.eclipse.epf.common.htmlFormatter">
<htmlFormatter
class="org.eclipse.epf.common.html.DefaultHTMLFormatter"/>
</extension>

<extension
point="org.eclipse.epf.common.htmlParser">
<htmlParser
class="org.eclipse.epf.common.html.DefaultHTMLParser"/>
</extension>
>

Still the same problem. What could be wrong??

Thanks.

Regards,
Dhanya
Previous Topic:EPF RichtText latest sources
Next Topic:EPF richtext editor on Eclipse Kepler
Goto Forum:
  


Current Time: Mon Oct 20 04:44:23 GMT 2014

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

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