[oXygen-sdk] Insert content reference / key reference dialog not modal anyomre since oXygen 15
Oxygen XML Editor Support (Radu Coravu)
support at oxygenxml.com
Tue Jun 17 09:06:11 CDT 2014
Right, so the "Insert Content Reference" dialog is not modal anymore.
The dialog has a drop-down containing browse actions and you probably
added your own action for browsing the CMS to it, right? Your action,
when invoked should show a modal Java dialog allowing the user to browse
the CMS. What does it currently do? Does it show a modeless window? Is
the window Java based or is it a native window?
If you are showing a modeless native window you could start a thread
which shows the native window and then show an empty not-decorated modal
Java dialog over the parent dialog just to block the user interface
thread from responding until the native window is closed.
For example when you use File->Open in Oxygen on Windows, the file
chooser is a native window called via JNI. But it looks like it is modal
because it gets as a parent a handler to the main Oxygen frame. Also
behind the native window we show a small (0 pixels width and heigth)
undecorated modal dialog to block the Java AWT thread while the native
window is displayed.
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
On 6/17/2014 4:03 PM, Jan Bevers wrote:
> We currently have an issue with our browse window which is attached to
> the insert content reference dialog. In oXygen 14.2 this dialog used to
> modal and was blocking the user to click / do something in the main
> window. The dialog which pops up when inserting an image/hyperlink is
> still modal though.
> Because the dialog is not modal anymore the user can minimize the
> application. When the user does this our dialog gets lost somewhere in
> the background.
> Can you provide us with a workaround to get this behavior back for our
> Thanks in advance
> *Jan Bevers |* Developer *|* SDL *| *+32 (0)15 400 970 *|* jbevers at sdl.com
> *SDL PLC confidential, all rights reserved.* If you are not the intended
> recipient of this mail SDL requests and requires that you delete it
> without acting upon or copying any of its contents, and we further
> request that you advise us.
> SDL PLC is a public limited company registered in England and Wales.
> Registered number: 02675207.
> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire
> SL6 7DY, UK.
> This message has been scanned for malware by Websense. www.websense.com
> oXygen-sdk mailing list
> oXygen-sdk at oxygenxml.com
More information about the oXygen-sdk