I am writing an Eclipse plugin, and in response to some action I am interesting in starting a series of operations (within a separate job). One of these operations is to request the user to provide a filename, which I’m trying to do with the JFace JDialog.
However, I’m not clear how to do this in a modeless way; for example, where do I obtain a display and shell? How do I ensure the UI continues to work while the developer can edit stuff in the dialog?
May be you could see how Eclipse itself does it:
FindAndReplaceDialog.javaIt does manage its parent shell depending on the focus of the Dialog.
A
ShellAdapteris provides default implementations for the methods described by theShellListenerinterface, which provides methods that deal with changes in state ofShell.