Hello,
I am making my first SWT application which has a menu on the shell and
several dialogs and other shells which can all be opened by clicking
buttons, menu items, tree items etc. When a menu item is clicked it
opens up a dialog box. Now if I click the menu item again, another
instance of the same dialog will open up which is redundant and possibly
erroneous. Some of these dialogs are not necessarily application modal
(eg. About box, Welcome screen, Help etc.).
One way I can think of preventing a window from opening if already open
is keeping a list of opened shell/dialog in the primary UI class and
checking the list before opening the shell/dialog.
I want to know if there is a general way or a better way of solving this.
Thanks,
Karan