Revision bcad19b9
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/MessagingUtils.java | ||
---|---|---|
490 | 490 |
MessagingUtils.warningDialog(title, source, status.getMessage()); |
491 | 491 |
} |
492 | 492 |
|
493 |
/** |
|
494 |
* Standard warning dialog for the case when the application is not yet connected to the datasource |
|
495 |
* |
|
496 |
* @param source |
|
497 |
*/ |
|
498 |
public static void noDataSourceWarningDialog(Object source) { |
|
499 |
MessagingUtils |
|
500 |
.warningDialog( |
|
501 |
"Application is not connected to a datastore", |
|
502 |
source, |
|
503 |
"The requested operation is only available when " |
|
504 |
+ "connected to a datasource. You may choose a datasource to connect to or create a new one in the datasource view."); |
|
505 |
} |
|
506 |
|
|
493 | 507 |
/** |
494 | 508 |
* Displays a warning {@link org.eclipse.jface.dialogs.MessageDialog}. |
495 | 509 |
* |
Also available in: Unified diff
MessagingUtils : added new method for a warning dialog when not connected to a datasource
CdmStore : changed warning dialog to new method mentioned above
LanguagePreferencePage, PreferencesUtil, AbstractMenuPreferences : checks to fail nicely if not connected to a datasoruce