Launching SWT dialog in Oxygen Web author 19.1

Post here questions and problems related to oXygen frameworks/document types.
Posts: 150
Joined: Mon Aug 18, 2014 4:11 pm

Launching SWT dialog in Oxygen Web author 19.1

Post by mu258770 » 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.


Posts: 345
Joined: Thu Sep 04, 2014 4:22 pm

Re: Launching SWT dialog in Oxygen Web author 19.1

Post by cristi_talau » Fri Dec 29, 2017 1:07 pm


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

Post Reply