\r
if( dataSourceNomenclaturalCode != null && ! dataSourceNomenclaturalCode.equals(applicationNomenclaturalCode)){\r
PreferencesUtil.setPreferredNomenclaturalCode(dataSourceNomenclaturalCode);\r
- StoreUtil.warningDialog("Nomenclatural Code Change", "The Datasource that was just " +\r
- "loaded has a different nomenclatural code than the one stored in Preferences." +\r
+ StoreUtil.informationDialog("Nomenclatural Code Change", "The Datasource that was just " +\r
+ "loaded has a different nomenclatural code than the one stored in Preferences. " +\r
"The nomenclatural code was changed in the application.");\r
}\r
return true;\r
warningDialog("Not yet implemented", "This functionality is not yet implemented.");
}
+ public static void informationDialog(String title, String message){
+ MessageDialog.openInformation(getShell(), title, message);
+ }
+
public static void warningDialog(String title, String message){
MessageDialog.openWarning(getShell(), title, message);
}
return Status.CANCEL_STATUS;\r
}\r
\r
- \r
- // delete the taxon in an isolated conversation\r
-// deleteTaxonNodeIsolated(taxonNode.getUuid());\r
taxonNode.delete();\r
\r
return postExecute(null);\r
throws ExecutionException {\r
// FIXME we have to add old citation\r
parentNode.addChildTaxon(taxon, null, "", null);\r
- // FIXME readding has to take place in an isolated conversation as well\r
- // so that all the mediation magic does the rest for us\r
return postExecute(null);\r
}\r
- \r
- /**\r
- * \r
- * @param taxonNodeUuid\r
- * @return\r
- */\r
- private boolean deleteTaxonNodeIsolated(UUID taxonNodeUuid){\r
- // get a new conversation\r
- ConversationHolder conversation = CdmStore.NewTransactionalConversation();\r
- try{\r
- TaxonNode taxonNode = CdmStore.getTaxonTreeService().getTaxonNodeByUuid(taxonNodeUuid);\r
- \r
- boolean result = taxonNode.delete();\r
- \r
- // commit the conversation and throw it away\r
- conversation.commit(true);\r
- return result;\r
- }finally{\r
- conversation.close();\r
- }\r
- }\r
}\r