Add ability pass owner to display and focus method.
This should enable propery hierachies to be build in with/in
dialogs.
Change-Id: I5889941371ab2d83da79e809fd1493589a5fd91d
Fixes-Issue: CLIENT-431
Reviewed-on: http://gerrit.dmdirc.com/3146
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>
Previously it only released the instance if the window was closed by the user
interacting with it through the window manager, rather than if it was closed
programatically (through an OK/Cancel button, for example).
Change-Id: I07ef95ebf4e47279c027747b03c5adcd1b37eea4
Reviewed-on: http://gerrit.dmdirc.com/3091
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
Replace remaining legitimate usages with [Keyed]DialogProviders.
Remove the DialogManager itself, all the getters for it, all the places keeping
references around to it, all the dialogs taking it in the constructor, and all
the partridges in pear trees that had one hidden away.
Change-Id: I0a1234960a4e08c0a7c6afc08a5432102b17c125
Reviewed-on: http://gerrit.dmdirc.com/3048
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
This fixes the issues with injection of dialogs and the behaviour of @Singleton.
Move the swing injection related classes into a new package (a new DialogModule
will follow shortly to make use of the DialogProvider).
Also introduce a SwingPreconditions class for asserting method calls are made
on/off the EDT.
Change-Id: I92010f61f2289579603a239ab46b0a304799dedc
Reviewed-on: http://gerrit.dmdirc.com/3044
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>