Project

General

Profile

« Previous | Next » 

Revision c4a7540a

Added by Patrick Plitzner about 7 years ago

ref #4611 i18n for molecular plugin

View differences:

eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/handler/ShowPherogramHandler.java
17 17
import eu.etaxonomy.cdm.model.molecular.SingleRead;
18 18
import eu.etaxonomy.taxeditor.editor.EditorUtil;
19 19
import eu.etaxonomy.taxeditor.model.MessagingUtils;
20
import eu.etaxonomy.taxeditor.molecular.Messages;
20 21
import eu.etaxonomy.taxeditor.molecular.TaxeditorMolecularPlugin;
21 22
import eu.etaxonomy.taxeditor.molecular.editor.AlignmentEditor;
22 23
import eu.etaxonomy.taxeditor.molecular.editor.PherogramViewPart;
......
48 49
			    }
49 50

  
50 51
			    if (uri == null) {
51
	                MessagingUtils.messageDialog("No pherogram available", this,
52
	                        "The selected read does not have an associated pherogram.");
52
	                MessagingUtils.messageDialog(Messages.ShowPherogramHandler_NO_PHEROGRAM, this,
53
	                        Messages.ShowPherogramHandler_NO_PHEROGRAM_MESSAGE);
53 54
			    }
54 55
			    else {
55 56
	              showPherogram(new PherogramComponentModel(AlignmentEditor.readPherogram(uri)));
56 57
			    }
57 58
			}
58 59
	        catch (Exception e) {
59
	            MessagingUtils.errorDialog("Error", null, e.getLocalizedMessage(), TaxeditorMolecularPlugin.PLUGIN_ID,
60
	            MessagingUtils.errorDialog(Messages.ShowPherogramHandler_ERROR, null, e.getLocalizedMessage(), TaxeditorMolecularPlugin.PLUGIN_ID,
60 61
	                    e, false);
61 62
	        }
62 63
        }

Also available in: Unified diff