Revision 87bae5e8
Added by Andreas Kohlbecker about 10 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStore.java | ||
---|---|---|
41 | 41 |
import eu.etaxonomy.taxeditor.datasource.CdmDataSourceRepository; |
42 | 42 |
import eu.etaxonomy.taxeditor.io.ExportManager; |
43 | 43 |
import eu.etaxonomy.taxeditor.io.ImportManager; |
44 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
|
44 | 45 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
45 | 46 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
46 | 47 |
import eu.etaxonomy.taxeditor.view.datasource.CdmDataSourceViewPart; |
... | ... | |
98 | 99 |
return instance; |
99 | 100 |
} else if (instance == null || !instance.isConnected) { |
100 | 101 |
|
101 |
StoreUtil
|
|
102 |
AbstractUtility
|
|
102 | 103 |
.warningDialog( |
103 | 104 |
"Application is not connected to a datastore", |
104 | 105 |
instance, |
105 | 106 |
"The requested operation is only available when " |
106 |
+ "connected to a datasource. You may choose a datasource to connect to or create a new one in the datasource view.");
|
|
107 |
+ "connected to a datasource. You may choose a datasource to connect to or create a new one in the datasource view."); |
|
107 | 108 |
|
108 |
StoreUtil.showView(CdmDataSourceViewPart.ID);
|
|
109 |
AbstractUtility.showView(CdmDataSourceViewPart.ID);
|
|
109 | 110 |
|
110 | 111 |
} |
111 | 112 |
|
... | ... | |
388 | 389 |
*/ |
389 | 390 |
|
390 | 391 |
/** |
391 |
* <p> |
|
392 |
* getDefaultLanguage |
|
393 |
* </p> |
|
392 |
* Provides access to the global default language set in the application preferences. |
|
394 | 393 |
* |
395 | 394 |
* @return a {@link eu.etaxonomy.cdm.model.common.Language} object. |
396 | 395 |
*/ |
Also available in: Unified diff
implementing #4120: User always needs to have the right to change password and hiding all user related menu contributions if no user is logged in