[oXygen-sdk] Insert content reference / key reference dialog not modal anyomre since oXygen 15

Jan Bevers jbevers at sdl.com
Wed Jun 18 02:55:08 CDT 2014


Hi Radu

Thanks for the explanation. Creating a hidden dialog does the trick. We are using a native dialog indeed.
We have an extra action to browse the CMS yes. It was at certain dialogs like the "insert content reference" where we had this problem.

Are there any other locations beside the CustomInputURLChooserCustomizer where I should implement this?

Kind Regards
Jan

-----Original Message-----
From: oxygen-sdk-bounces at oxygenxml.com [mailto:oxygen-sdk-bounces at oxygenxml.com] On Behalf Of Oxygen XML Editor Support (Radu Coravu) 
Sent: dinsdag 17 juni 2014 16:06
To: oxygen-sdk at oxygenxml.com
Subject: Re: [oXygen-sdk] Insert content reference / key reference dialog not modal anyomre since oXygen 15

Hi Jan,

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.

Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com

On 6/17/2014 4:03 PM, Jan Bevers wrote:
> Hi
>
> 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 
> integration?
>
> Thanks in advance
>
> *Jan Bevers |* Developer *|* SDL *| *+32 (0)15 400 970 *|* 
> jbevers at sdl.com
>
>
> www.sdl.com
> <http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm
> _campaign=SDL%2BStandard%2BEmail%2BSignature>
>
> *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 <http://www.websense.com/>
>
>
>
> _______________________________________________
> oXygen-sdk mailing list
> oXygen-sdk at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
>
_______________________________________________
oXygen-sdk mailing list
oXygen-sdk at oxygenxml.com
http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk


More information about the oXygen-sdk mailing list