Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] Non-modal dialogs, API to determine if dialog is already open

On 7-Nov-2016, at 5:24 AM, Mickael Istria <mistria@xxxxxxxxxx> wrote:
It might be interesting to attach the dialog as a "data" of the underlying shell by default. Something like, in the base Dialog class, at initialization getShell().setData(Dialog.KEY_DIALOG, this), so we could then ask for the dialog of each shell and see if it's a dialog of an expected class.

Already done.  JFace Window, which includes Dialog, sets the Shell data to the Window object.  

So you should be able to iterate through the shells (Display#getShells()) and look for instances whose data element is a dialog.

Brian.


Back to the top