Project

General

Profile

« Previous | Next » 

Revision 939829bc

Added by Patrick Plitzner about 7 years ago

ref #4611 i18n for taxeditor.navigator plugin

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/handler/RemotingChangeAcceptedTaxonToSynonymHandler.java
18 18
import eu.etaxonomy.cdm.api.conversation.ConversationHolderMock;
19 19
import eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode;
20 20
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
21
import eu.etaxonomy.taxeditor.navigation.l10n.Messages;
21 22
import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigatorLabels;
22 23
import eu.etaxonomy.taxeditor.navigation.navigator.operation.RemotingChangeAcceptedTaxonToSynonymOperation;
23 24
import eu.etaxonomy.taxeditor.operation.RemotingCdmHandler;
......
53 54
        // check that only a single taxon tree node has been selected
54 55
        if(selection.size() > 1) {
55 56
            return new Status(IStatus.ERROR,
56
                    "unknown",
57
                    "unknown", //$NON-NLS-1$
57 58
                    TaxonNavigatorLabels.SINGLE_TAXON_SELECTION_MESSAGE);
58 59
        }
59 60

  
60 61
        // check for no taxon tree node selected
61 62
        if(selection.size() == 0) {
62 63
            return new Status(IStatus.ERROR,
63
                    "unknown",
64
                    "unknown", //$NON-NLS-1$
64 65
                    TaxonNavigatorLabels.NO_TAXON_SELECTION_MESSAGE);
65 66
        }
66 67

  
......
70 71
            oldTaxonNode = (ITaxonTreeNode)obj;
71 72
        } else {
72 73
            return new Status(IStatus.ERROR,
73
                    "unknown",
74
                    "unknown", //$NON-NLS-1$
74 75
                    TaxonNavigatorLabels.SELECTED_OBJECT_NOT_TREE_NODE_MESSAGE);
75 76
        }
76 77
        // check that the source taxon node does not have children
77 78
        if(((TaxonNode)oldTaxonNode).getCountChildren() > 0) {
78 79
            return new Status(IStatus.ERROR,
79
                    "unknown",
80
                    "unknown", //$NON-NLS-1$
80 81
                    TaxonNavigatorLabels.SOURCE_TAXON_HAS_CHILDREN_MESSAGE);
81 82

  
82 83
        }
......
85 86
        boolean editorClosed = NavigatorHandlerUtils.closeObsoleteEditor(event, (TaxonNode) oldTaxonNode);
86 87
        if(editorClosed != true) {
87 88
            return new Status(IStatus.ERROR,
88
                    "unknown",
89
                    "unknown", //$NON-NLS-1$
89 90
                    TaxonNavigatorLabels.RELATED_EDITOR_NOT_CLOSED_MESSAGE);
90 91
        }
91 92

  
......
100 101
        excludeTaxa.add(((TaxonNode)oldTaxonNode).getTaxon().getUuid());
101 102
        TaxonNode newAcceptedTaxonNode = TaxonNodeSelectionDialog.select(HandlerUtil.getActiveShell(event),
102 103
                new ConversationHolderMock(),
103
                "Choose the accepted taxon",
104
                Messages.RemotingChangeAcceptedTaxonToSynonymHandler_CHOOSE_TAXON,
104 105
                excludeTaxa,
105 106
                null,
106 107
                ((TaxonNode)oldTaxonNode).getClassification());

Also available in: Unified diff