Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » RichTextEditor integration problem(JavaScript is not executed in PDE application)
RichTextEditor integration problem [message #1755120] Tue, 28 February 2017 09:24 Go to next message
J. Bergmann is currently offline J. BergmannFriend
Messages: 2
Registered: February 2017
Junior Member
Hi everybody,

i tried the RichTextEditorExample as standalone java class. It works fine.

After that i used the example code to integrate RichTextEditor within a swt dialog that is called in a Eclipse PDE application.
I get the following exception and only an empty text area is displayed:
org.eclipse.swt.SWTException: "CKEDITOR" ist undefiniert
at org.eclipse.swt.browser.WebBrowser$EvaluateFunction.function(WebBrowser.java:191)
at org.eclipse.swt.browser.WebSite.Invoke(WebSite.java:774)
at org.eclipse.swt.browser.WebSite$7.method6(WebSite.java:130)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
at org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:64)
at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:571)
at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:534)
at org.eclipse.swt.browser.IE.execute(IE.java:1205)
at org.eclipse.swt.browser.WebBrowser.evaluate(WebBrowser.java:435)
at org.eclipse.swt.browser.WebBrowser.evaluate(WebBrowser.java:394)
at org.eclipse.swt.browser.Browser.evaluate(Browser.java:663)
at org.eclipse.swt.browser.Browser.evaluate(Browser.java:610)
at org.eclipse.nebula.widgets.richtext.RichTextEditor$3.completed(RichTextEditor.java:297)
at org.eclipse.swt.browser.IE$7.handleEvent(IE.java:672)
at org.eclipse.swt.ole.win32.OleEventTable.sendEvent(OleEventTable.java:55)
at org.eclipse.swt.ole.win32.OleEventSink.notifyListener(OleEventSink.java:152)
at org.eclipse.swt.ole.win32.OleEventSink.Invoke(OleEventSink.java:120)
at org.eclipse.swt.ole.win32.OleEventSink.access$1(OleEventSink.java:97)
at org.eclipse.swt.ole.win32.OleEventSink$1.method6(OleEventSink.java:71)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3767)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
at org.eclipse.jface.window.Window.open(Window.java:803)
at de.mypackage.MyDialog.open(MyDialog.java:182)

I am using Mars Release (4.5.0) with an 64 Bit Java 1.8.

It seems that the javascript could't be executed. Any ideas?

Best regards!
Re: RichTextEditor integration problem [message #1755178 is a reply to message #1755120] Tue, 28 February 2017 17:34 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2903
Registered: July 2012
Senior Member
Not sure what you mean with a PDE application. Probably you mean RCP application.

The error indicates that it can't execute the javascript. Mostly because the resources can't be loaded. Don't know what you did and how you included the richtext plug-in. But we have also an E4 example to verify that the RichText control is also working in an OSGi context.

https://git.eclipse.org/c/nebula/org.eclipse.nebula.git/plain/widgets/richtext/org.eclipse.nebula.widgets.richtext.example.e4/

Re: RichTextEditor integration problem [message #1755209 is a reply to message #1755178] Wed, 01 March 2017 07:59 Go to previous messageGo to next message
J. Bergmann is currently offline J. BergmannFriend
Messages: 2
Registered: February 2017
Junior Member
My fault. I've posted this problem too early. I solved the problem by correctly adding the rich text feature to my eclipse target platform.
In my first attempt i added only the richt text jar file as plugin library. In this way the ckeditor resources was missing in my RCP application.
Sorry for this confusion.
Re: RichTextEditor integration problem [message #1755212 is a reply to message #1755209] Wed, 01 March 2017 08:38 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2903
Registered: July 2012
Senior Member
I actually assumed that. Adding it as a plugin jar will not work, because the internal resources need to be unpacked in order to work correctly. For OSGi and plain Java this is different.
Previous Topic: PGroup Widget Does Not Work Properly with TabFolder
Next Topic:Licensing of particular elements of nebula
Goto Forum:
  


Current Time: Sat Nov 09 04:10:23 GMT 2024

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

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

Back to the top