Exception at RichText formatHTML [message #1079832] |
Mon, 05 August 2013 06:11 |
Dhanya M 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
|
|
|
Powered by
FUDForum. Page generated in 0.02779 seconds