Launching SWT dialog in Oxygen Web author 19.1

Post here questions and problems related to oXygen frameworks/document types.
mu258770
Posts: 111

Launching SWT dialog in Oxygen Web author 19.1

Fri Dec 29, 2017 11:49 am

Hi oXygen,



We have been using eclipse oXygen version. Now we are planning to use oXygen Web Client 19.1.



We had done so many customizations to eclipse oXygen in which some of those are still working well with web client.



We have added one SWT dialog in eclipse oXygen which we would like to reuse or recreate for web client as well. Could you please suggest how we can make the dialog working in web client as well. Currently if I use the same SWT dialog, it does not work. It does not even shows up the menu item which we have added using Document type Association.



Any help would be great here.



Regards,
Shabeer.
cristi_talau
Posts: 168

Re: Launching SWT dialog in Oxygen Web author 19.1

Fri Dec 29, 2017 1:07 pm

Hello,

You are right, some of of the actions that you developed for the Oxygen Eclipse plugin work in Web Author, but some of them don't.

There are two causes for the action with the SWT dialog to not work:
1. Technology mismatch. Unfortunately, SWT is a desktop GUI technology while Web Author is a web-based application. To make the action the action work in Web Author you have to re-implement the dialog using web technologies. We had to take the same route with the actions in our default frameworks. We have a tutorial for implementing a simple action in JS [1].
2. Beaurocracy. If you have an AuthorOperation in your framework, you should annotate it with @WebappCompatible. More details here [2]. Once you annotate it, the action will appear on the toolbar/context menu.

Please let us know if you need more assistance.

Best,
Cristian

[1] https://www.oxygenxml.com/maven/com/oxy ... ction.html
[2] https://www.oxygenxml.com/doc/versions/ ... ation_tips

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest