-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEIIDDES-1459: Make server manager initialisation lazy
* Plugin start() methods are executed by worker threads when eclipse starts. The UI can be stopped by requests for passwords and other dialogs while the plugins continue to be initialised. This means it is dangerous to initialise components using the plugin start() methods when other parts of eclipse are not actually started. * DqpPlugin * The server manager should be initialised lazily as its Teiid Servers are now dependent on checking installed jboss server, which need access to the eclipse secure storage, which may have not been initialised if the master password is requested from the user. * DqpUiPlugin * Requests the server manager in it start() method which is no longer appropriate. Instead, it simply sets the DqpPlugin's password provider for use by the server manager's own preview manager when it is initialised. * Remove shell field in the password provider as it cannot be guaranteed that a shell has been assigned to the workbench when the plugin is started. * The PasswordProvider implementation fetches the shell from the workbench when its dialog display is requested. * Tidy up calls to shells for display of dialogs.
- Loading branch information
Paul Richardson
committed
Aug 30, 2012
1 parent
8b6cb3f
commit ed71afc
Showing
8 changed files
with
57 additions
and
486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.