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

> as a "data" ... WDYT?

Sounds hacky. Also, it is interesting to know if the garbage collector is smart enough to see that an object is holding on to itself through some map? I would anyway suggest to add an API.

Cheers,

Wim

On Mon, Nov 7, 2016 at 11:24 AM, Mickael Istria <mistria@xxxxxxxxxx> wrote:
On 11/07/2016 11:17 AM, Dirk Fauth wrote:

I am not aware of such an api. I used to check the shell title or something similar to determine if a specific dialog is currently open.

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.
WDYT?
--
Mickael Istria
Eclipse developer for Red Hat Developers
My blog - My Tweets

_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev


Back to the top