Project

General

Profile

« Previous | Next » 

Revision bcad19b9

Added by Cherian Mathew over 9 years ago

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

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStore.java
99 99
			return instance;
100 100
		} else{// if (instance == null || !instance.isConnected) {
101 101

  
102
			MessagingUtils
103
					.warningDialog(
104
							"Application is not connected to a datastore",
105
							instance,
106
							"The requested operation is only available when "
107
							+ "connected to a datasource. You may choose a datasource to connect to or create a new one in the datasource view.");
102
			MessagingUtils.noDataSourceWarningDialog(instance);
108 103

  
109 104
			AbstractUtility.showView(CdmDataSourceViewPart.ID);
110 105
			return null;

Also available in: Unified diff