ref #7086 i18n for WS editor
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / workingSet / TaxonNodeDropAdapter.java
index cfd712cabfbb7fb7d94f72728eabedddfccc8871..fbeb9a0b58bed7318a45f62df3775e9856db728a 100644 (file)
@@ -18,6 +18,7 @@ import org.eclipse.jface.viewers.ViewerDropAdapter;
 import org.eclipse.swt.dnd.TransferData;
 
 import eu.etaxonomy.cdm.model.taxon.TaxonNode;
+import eu.etaxonomy.taxeditor.editor.l10n.Messages;
 import eu.etaxonomy.taxeditor.model.MessagingUtils;
 
 /**
@@ -44,9 +45,8 @@ public class TaxonNodeDropAdapter extends ViewerDropAdapter {
         Set<TaxonNode> taxonSubtreeFilter = workingSetEditor.getWorkingSet().getTaxonSubtreeFilter();
         if(taxonSubtreeFilter!=null && !taxonSubtreeFilter.isEmpty()){
             if(!taxonSubtreeFilter.iterator().next().getClassification().equals(taxonNode.getClassification())){
-                MessagingUtils.warningDialog("Classifications do not match", this.getClass(),
-                        "The taxon node you are trying to add belongs to another classification "
-                        + "than the node(s) belonging to the working set.");
+                MessagingUtils.warningDialog(Messages.TaxonNodeDropAdapter_CLASSIFICATIONS_NO_MATCH, this.getClass(),
+                        Messages.TaxonNodeDropAdapter_CLASSIFICATIONS_NO_MATCH_MESSAGE);
                 return false;
             }