Page 1 of 1

Launching SWT dialog in Oxygen Web author 19.1

Posted: Fri Dec 29, 2017 11:49 am
by mu258770
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.


Re: Launching SWT dialog in Oxygen Web author 19.1

Posted: Fri Dec 29, 2017 1:07 pm
by cristi_talau

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.


[1] ... ction.html
[2] ... ation_tips