Is it possible to hide a jface dialog without disposing it? I would like it to exist during the entire lifetime of an editor.
I have a dialog which can logically be seen as part of the form in my editor. It is simply only visible to the user when he clicks a button. It is a detail view of a selected master entity; it contains a table whose input I would like to set to a detail observable list of my model.
But when the dialog is disposed the table gets disposed so I lose my binding.
Am 01.10.10 10:01, schrieb SlowStrider:
> Is it possible to hide a jface dialog without disposing it? I would like
> it to exist during the entire lifetime of an editor.
>
> I have a dialog which can logically be seen as part of the form in my
> editor. It is simply only visible to the user when he clicks a button.
> It is a detail view of a selected master entity; it contains a table
> whose input I would like to set to a detail observable list of my model.
>
> But when the dialog is disposed the table gets disposed so I lose my
> binding.
As a related issue: when I do the binding I have to create the contents of the dialog without showing it yet. I solved this by simply calling create() on the dialog instead of open(). If I later do setVisible(true) when the user clicks a button it opens correctly.