Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EPF » Exception at RichText formatHTML
Exception at RichText formatHTML [message #1079832] Mon, 05 August 2013 06:11
Dhanya M is currently offline Dhanya MFriend
Messages: 19
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: Thu Sep 19 14:48:52 GMT 2024

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

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

Back to the top