Revision 61c51c84
Added by Patrick Plitzner about 7 years ago
eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/messages.properties | ||
---|---|---|
150 | 150 |
|
151 | 151 |
CdmAuthorityEditor_SAVING_AUTHORITY_EDITOR=Saving CDM Authority Editor |
152 | 152 |
|
153 |
EditCdmAuthoritiesHandler_COULD_NOT_OPEN_AUTHORITIES=Could not open CDM Authority Editor |
|
154 |
EditCdmAuthoritiesHandler_OPEN_AUTHORITIES=Opening Cdm Authorities |
|
155 |
|
|
156 |
KeyEditor_GRAPH=Graph |
|
157 |
KeyEditor_LIST=List |
|
158 |
KeyEditor_SAVING=Saving Editor |
|
159 |
|
|
160 |
AbstractGroupedContainer_EDIT_IN_DETAILS_VIEW=This name may only be edited in the details view. |
|
161 |
AbstractGroupedContainer_MULTIPLE_USE=The name of this taxons is used multiple times. |
|
162 |
AbstractGroupedContainer_NEW_HETERO_SYNONYM=New Heterotypic Synonym |
|
163 |
ConceptContainer_SEC_REQUIRED=This taxon requires a sec. reference. |
|
164 |
EditorAnnotation_ERROR=Error: |
|
165 |
EditorAnnotation_WARNING=Warning: |
|
166 |
IContainerConstants_CLICK_ADD_NAME=Click to add name |
|
167 |
MisapplicationContainer_SEC_REF_REQUIRED=This misapplication requires a sec. reference. |
|
168 |
SynonymContainer_SYNONYM_NULL_NAME=Synonym with a null name detected. This should never happen. |
|
169 |
|
|
170 |
NameEditorDropTargetListener_CHANGE=Change |
|
171 |
NameEditorDropTargetListener_CHANGE_ACC_TAXON=Change accepted Taxon |
|
172 |
NameEditorDropTargetListener_CHANGE_HOMOTYPICAL_GROUP=Change Homotypical Group |
|
173 |
NameEditorDropTargetListener_CHANGE_SYNONYM=Change to Synonym |
|
174 |
NameEditorDropTargetListener_CHANGE_SYNONYM_TO_MISAPP=Change Synonym to Misapplication |
|
175 |
NameEditorDropTargetListener_UNSUCCESSFULL_DROP=User unsuccessfully tried to drop: %s. Target: %s |
|
176 |
|
|
177 |
ChangeSynonymToAcceptedTaxonHandler_CHANGE_SYN_TO_ACC_TAXON=Change synonym to accepted taxon |
|
178 |
ChangeSynonymToAcceptedTaxonHandler_CREATE_FAILURE=Could not create Taxon |
|
179 |
ChangeSynonymToAcceptedTaxonHandler_SELECT_PARENT=Select parent |
|
180 |
MoveSynonymToAnotherAcceptedTaxonHandler_CHANGE_ACC_TAXON=Change accepted Taxon of Synonym |
|
181 |
MoveSynonymToAnotherAcceptedTaxonHandler_NO_SELECTION=No selection |
|
182 |
MoveSynonymToAnotherAcceptedTaxonHandler_NO_SELECTION_MESSAGE=No synonym selected |
|
183 |
MoveSynonymToAnotherAcceptedTaxonHandler_SELECT_ACC_TAXON=Select new accepted taxon |
|
184 |
SwapSynonymAndAcceptedHandler_COULD_NOT_OPEN=Could not open editor for taxon |
|
185 |
|
|
186 |
ChangeConceptRelationshipTypeOperation_NOT_IMPLEMENTED=Not implemented yet. See developer documentation for details |
|
187 |
ChangeConceptToSynonymOperation_MULTI_REPS=Multiple relations between taxa |
|
188 |
ChangeConceptToSynonymOperation_MULTI_REPS_MESSAGE=There are multiple relations between the accepted and the related taxon. This case is not handled by the software yet. |
|
189 |
ChangeSynonymToAcceptedTaxonOperation_INCONSISTENT_DATA=Operation may lead to inconsistent data |
|
190 |
ChangeSynonymToAcceptedTaxonOperation_NOT_IMPLEMENTED=Not yet implemented |
|
191 |
SwapSynonymAndAcceptedOperation_NOT_IMPLEMENTED=Not yet implemented |
|
192 |
SwapSynonymAndAcceptedOperation_SWAP_SYN_ACC_TAXON=Swap Synonym And Accepted Taxon Operation |
|
193 |
|
|
194 |
ChecklistDropdownSelectionListener_ADD_DISTRIBUTION=Add Distribution |
|
195 |
|
|
196 |
ChecklistEditor_DIST_STATUS=Distribution Status |
|
197 |
ChecklistEditor_DIST_STATUS_TOOLTIP=Show Distribution Status for selected Areas |
|
198 |
ChecklistEditor_ELEMENT_COUNT=Element count: |
|
199 |
ChecklistEditor_LOAD_CNT_TAXA=Loading %d Taxa... |
|
200 |
ChecklistEditor_LOAD_TAXA=loading Taxa |
|
201 |
ChecklistEditor_NO_AREAS=No Areas to display |
|
202 |
ChecklistEditor_NO_AREAS_MESSAGE=Please choose the areas you want to display. Go to the preferences, choose the Checklist Editor and choose the areas in the Distribution Selection Wizard. |
|
203 |
ChecklistEditor_RANK=Rank |
|
204 |
ChecklistEditor_RETRIEVE_NODES=Retrieving TaxonNodes |
|
205 |
ChecklistEditor_SAVE_EDITOR=Saving Editor |
|
206 |
ChecklistEditor_SEARCH=Search: |
|
207 |
ChecklistEditor_TAXON=Taxon |
|
208 |
ChecklistEditor_UNKNOWN=unknown |
|
209 |
|
|
210 |
OpenRelatedConceptHandler_COULD_NOT_OPEN=Could not open taxon |
|
211 |
OpenRelatedConceptHandler_COULD_NOT_OPEN_MESSAGE=Could not open the taxon: %s |
|
212 |
|
|
213 |
ListenToSelectionChangeContextMenu_LINK=Link with taxon selection |
|
214 |
ListenToSelectionChangeContextMenu_UNLINK=Unlink from taxon selection |
|
215 |
|
|
216 |
DeleteDerivateHandler_INVALID_SELECTION=Selection is not valid for this delete handler |
|
217 |
OpenDerivativeEditorForDescriptionElement_NO_SPECIMENS=No specimens found |
|
218 |
OpenDerivativeEditorForDescriptionElement_NO_SPECIMENS_MESSAGE=No specimens found for the selected object. (Maybe there are unsaved changes) |
|
219 |
OpenDerivativeEditorForTaxonNode_COULD_NOT_OPEN=Specimen editor could not be opened |
|
220 |
|
|
221 |
DerivateSearchComposite_ALL=All |
|
222 |
DerivateSearchComposite_DERIVATE_TYPE=Derivative Type |
|
223 |
DerivateSearchComposite_NEW_TEXT=New Text |
|
224 |
DerivateSearchComposite_NO=No |
|
225 |
DerivateSearchComposite_SEARCH=Search |
|
226 |
DerivateSearchComposite_TAXON=Taxon |
|
227 |
DerivateSearchComposite_TAXON_ASSIGNMENT=Taxon assignment |
|
228 |
DerivateSearchComposite_TITLE_CACHE=Title Cache |
|
229 |
DerivateSearchComposite_YES=Yes |
eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/messages_de.properties | ||
---|---|---|
149 | 149 |
UseObjectManager_RESET_DATA=Wiederherstellen der Nutzugsdaten |
150 | 150 |
|
151 | 151 |
CdmAuthorityEditor_SAVING_AUTHORITY_EDITOR=Speichere CDM Authority Editor |
152 |
|
|
153 |
EditCdmAuthoritiesHandler_COULD_NOT_OPEN_AUTHORITIES=Konnte CDM-Authority-Editor nicht ?ffnen |
|
154 |
EditCdmAuthoritiesHandler_OPEN_AUTHORITIES=?ffne Cdm-Authorities |
|
155 |
|
|
156 |
KeyEditor_GRAPH=Graph |
|
157 |
KeyEditor_LIST=Liste |
|
158 |
KeyEditor_SAVING=Speichere Editor |
|
159 |
|
|
160 |
AbstractGroupedContainer_EDIT_IN_DETAILS_VIEW=Diser Name kann nur im Details-View bearbeitet werden. |
|
161 |
AbstractGroupedContainer_MULTIPLE_USE=Dieser Taxonname wird mehrfach verwendet. |
|
162 |
AbstractGroupedContainer_NEW_HETERO_SYNONYM=Neues heterotypisches Synonym |
|
163 |
ConceptContainer_SEC_REQUIRED=Dieses Taxon ben?tigt eine sec. Referenz. |
|
164 |
EditorAnnotation_ERROR=Error: |
|
165 |
EditorAnnotation_WARNING=Warunung: |
|
166 |
IContainerConstants_CLICK_ADD_NAME=Klicken, um Namen hinzuzuf?gen |
|
167 |
MisapplicationContainer_SEC_REF_REQUIRED=Diese Misapplikation ben?tigt eine sec. Referenz. |
|
168 |
SynonymContainer_SYNONYM_NULL_NAME=Synonym mit einem null-Namen entdeckt. Das sollte nicht passieren. |
|
169 |
|
|
170 |
NameEditorDropTargetListener_CHANGE=?ndern |
|
171 |
NameEditorDropTargetListener_CHANGE_ACC_TAXON=?ndere akzeptiertes Taxon |
|
172 |
NameEditorDropTargetListener_CHANGE_HOMOTYPICAL_GROUP=?ndere homotypische Gruppe |
|
173 |
NameEditorDropTargetListener_CHANGE_SYNONYM=?ndere in Synonym |
|
174 |
NameEditorDropTargetListener_CHANGE_SYNONYM_TO_MISAPP=?ndere Synonym in Misapplikation |
|
175 |
NameEditorDropTargetListener_UNSUCCESSFULL_DROP=Das Ziehen von %s auf %s war nicht erfolgreich. |
|
176 |
|
|
177 |
ChangeSynonymToAcceptedTaxonHandler_CHANGE_SYN_TO_ACC_TAXON=?ndere Synonym in akzeptiertes Taxon |
|
178 |
ChangeSynonymToAcceptedTaxonHandler_CREATE_FAILURE=Konnte Taxon nicht erstellen |
|
179 |
ChangeSynonymToAcceptedTaxonHandler_SELECT_PARENT=W?hle Elternelement |
|
180 |
MoveSynonymToAnotherAcceptedTaxonHandler_CHANGE_ACC_TAXON=?ndere akzeptiertes Taxon des Synonyms |
|
181 |
MoveSynonymToAnotherAcceptedTaxonHandler_NO_SELECTION=Keine Auswahl |
|
182 |
MoveSynonymToAnotherAcceptedTaxonHandler_NO_SELECTION_MESSAGE=Kein Synonym ausgew?hlt |
|
183 |
MoveSynonymToAnotherAcceptedTaxonHandler_SELECT_ACC_TAXON=W?hle neues akzeptiertes Taxon |
|
184 |
SwapSynonymAndAcceptedHandler_COULD_NOT_OPEN=Konnte Editor f?r Taxon nicht ?ffnen |
|
185 |
|
|
186 |
ChangeConceptRelationshipTypeOperation_NOT_IMPLEMENTED=Noch nicht implementiert. F?r Details bitte in die Entwickler-Dokumentation schauen |
|
187 |
ChangeConceptToSynonymOperation_MULTI_REPS=Mehrere Verkn?pfungen zwischen Taxa |
|
188 |
ChangeConceptToSynonymOperation_MULTI_REPS_MESSAGE=Es gibt mehrere Verkn?pfungen zwischen dem akzeptierten und dem verkn?pften Taxon. Dieser Fall wird noch nicht von der Software unterst?tzt. |
|
189 |
ChangeSynonymToAcceptedTaxonOperation_INCONSISTENT_DATA=Vorgang kann zu inkonsistenten Daten f?hren |
|
190 |
ChangeSynonymToAcceptedTaxonOperation_NOT_IMPLEMENTED=Noch nicht implementiert |
|
191 |
SwapSynonymAndAcceptedOperation_NOT_IMPLEMENTED=Noch nicht implementiert |
|
192 |
SwapSynonymAndAcceptedOperation_SWAP_SYN_ACC_TAXON=Tausche Synonym und akzeptiertes Taxon |
|
193 |
|
|
194 |
ChecklistDropdownSelectionListener_ADD_DISTRIBUTION=Verbreitung hinzuf?gen |
|
195 |
|
|
196 |
ChecklistEditor_DIST_STATUS=Verbreitungsstatus |
|
197 |
ChecklistEditor_DIST_STATUS_TOOLTIP=Zeige den Verbreitungsstatus f?r die ausgew?hlten Gebiete |
|
198 |
ChecklistEditor_ELEMENT_COUNT=Anzahl der Elemente: |
|
199 |
ChecklistEditor_LOAD_CNT_TAXA=Lade %d Taxa... |
|
200 |
ChecklistEditor_LOAD_TAXA=Lade Taxa |
|
201 |
ChecklistEditor_NO_AREAS=Keine Gebiete zum Anzeigen |
|
202 |
ChecklistEditor_NO_AREAS_MESSAGE=Bitte w?hlen Sie die Gebiete, die sie anzeigen m?chten. Unter Einstellungen->Checklist-Editor lassen sich die Gebiete mit dem Verbreitungs-Wizard ausw?hlen. |
|
203 |
ChecklistEditor_RANK=Rang |
|
204 |
ChecklistEditor_RETRIEVE_NODES=Lade Taxonknoten |
|
205 |
ChecklistEditor_SAVE_EDITOR=Speichere Editor |
|
206 |
ChecklistEditor_SEARCH=Suche: |
|
207 |
ChecklistEditor_TAXON=Taxon |
|
208 |
ChecklistEditor_UNKNOWN=unbekannt |
|
209 |
|
|
210 |
OpenRelatedConceptHandler_COULD_NOT_OPEN=Konnte Taxon nicht ?ffnen |
|
211 |
OpenRelatedConceptHandler_COULD_NOT_OPEN_MESSAGE=Konnte Taxon nicht ?ffnen: %s |
|
212 |
|
|
213 |
ListenToSelectionChangeContextMenu_LINK=Verkn?pfe mit Taxonauswahl |
|
214 |
ListenToSelectionChangeContextMenu_UNLINK=Verkn?pfung mit Taxonauswahl aufheben |
|
215 |
|
|
216 |
DeleteDerivateHandler_INVALID_SELECTION=Auswahl ung?ltig |
|
217 |
OpenDerivativeEditorForDescriptionElement_NO_SPECIMENS=Keine Specimens gefunden |
|
218 |
OpenDerivativeEditorForDescriptionElement_NO_SPECIMENS_MESSAGE=Keine Specimens f?r die Auswahl. (Gibt es vielleicht noch ungespeicherte ?nderungen?) |
|
219 |
OpenDerivativeEditorForTaxonNode_COULD_NOT_OPEN=Specimen-Editor konnte nicht ge?ffnet werden |
|
220 |
|
|
221 |
DerivateSearchComposite_ALL=Alle |
|
222 |
DerivateSearchComposite_DERIVATE_TYPE=Derivat-Typ |
|
223 |
DerivateSearchComposite_NEW_TEXT=Neuer Text |
|
224 |
DerivateSearchComposite_NO=Nein |
|
225 |
DerivateSearchComposite_SEARCH=Suche |
|
226 |
DerivateSearchComposite_TAXON=Taxon |
|
227 |
DerivateSearchComposite_TAXON_ASSIGNMENT=Taxonbestimmung |
|
228 |
DerivateSearchComposite_TITLE_CACHE=Titlecache |
|
229 |
DerivateSearchComposite_YES=Ja |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/Messages.java | ||
---|---|---|
17 | 17 |
*/ |
18 | 18 |
public class Messages extends NLS { |
19 | 19 |
private static final String BUNDLE_NAME = "OSGI-INF/l10n/messages"; //$NON-NLS-1$ |
20 |
public static String AbstractGroupedContainer_EDIT_IN_DETAILS_VIEW; |
|
21 |
public static String AbstractGroupedContainer_MULTIPLE_USE; |
|
22 |
public static String AbstractGroupedContainer_NEW_HETERO_SYNONYM; |
|
20 | 23 |
public static String CdmAuthorityEditor_SAVING_AUTHORITY_EDITOR; |
24 |
public static String ChangeConceptRelationshipTypeOperation_NOT_IMPLEMENTED; |
|
25 |
public static String ChangeConceptToSynonymOperation_MULTI_REPS; |
|
26 |
public static String ChangeConceptToSynonymOperation_MULTI_REPS_MESSAGE; |
|
27 |
public static String ChangeSynonymToAcceptedTaxonHandler_CHANGE_SYN_TO_ACC_TAXON; |
|
28 |
public static String ChangeSynonymToAcceptedTaxonHandler_CREATE_FAILURE; |
|
29 |
public static String ChangeSynonymToAcceptedTaxonHandler_SELECT_PARENT; |
|
30 |
public static String ChangeSynonymToAcceptedTaxonOperation_INCONSISTENT_DATA; |
|
31 |
public static String ChangeSynonymToAcceptedTaxonOperation_NOT_IMPLEMENTED; |
|
32 |
public static String ChecklistDropdownSelectionListener_ADD_DISTRIBUTION; |
|
33 |
public static String ChecklistEditor_DIST_STATUS; |
|
34 |
public static String ChecklistEditor_DIST_STATUS_TOOLTIP; |
|
35 |
public static String ChecklistEditor_ELEMENT_COUNT; |
|
36 |
public static String ChecklistEditor_LOAD_CNT_TAXA; |
|
37 |
public static String ChecklistEditor_LOAD_TAXA; |
|
38 |
public static String ChecklistEditor_NO_AREAS; |
|
39 |
public static String ChecklistEditor_NO_AREAS_MESSAGE; |
|
40 |
public static String ChecklistEditor_RANK; |
|
41 |
public static String ChecklistEditor_RETRIEVE_NODES; |
|
42 |
public static String ChecklistEditor_SAVE_EDITOR; |
|
43 |
public static String ChecklistEditor_SEARCH; |
|
44 |
public static String ChecklistEditor_TAXON; |
|
45 |
public static String ChecklistEditor_UNKNOWN; |
|
21 | 46 |
public static String ChooseFromMultipleTaxonNodesDialog_CHOOSE_CLASSIFICATION; |
22 | 47 |
public static String ChooseFromMultipleTaxonNodesDialog_CHOOSE_CLASSIFICATION_MESSAGE; |
48 |
public static String ConceptContainer_SEC_REQUIRED; |
|
23 | 49 |
public static String ConceptGraphView_VIEWER_NAME; |
24 | 50 |
public static String ConceptViewPart_VIEWER_NAME; |
25 | 51 |
public static String CreateDerivateContextMenu_ADD; |
... | ... | |
37 | 63 |
public static String DefaultOpenSpecimenEditorForTypeSpecimenHandler_COULD_NOT_OPEN; |
38 | 64 |
public static String DefaultOpenTaxonEditorForTaxonBaseHandler_COULD_NOT_OPEN; |
39 | 65 |
public static String DefaultOpenTaxonEditorForTaxonNodeHandler_COULD_NOT_OPEN; |
66 |
public static String DeleteDerivateHandler_INVALID_SELECTION; |
|
40 | 67 |
public static String DeleteDerivateOperation_AND_CHILDREN; |
41 | 68 |
public static String DeleteDerivateOperation_CONFIRM; |
42 | 69 |
public static String DeleteDerivateOperation_DELETE_FAILED; |
... | ... | |
60 | 87 |
|
61 | 88 |
|
62 | 89 |
public static String DerivateDropListener_MOVE_TO; |
90 |
public static String DerivateSearchComposite_ALL; |
|
91 |
public static String DerivateSearchComposite_DERIVATE_TYPE; |
|
92 |
public static String DerivateSearchComposite_NEW_TEXT; |
|
93 |
public static String DerivateSearchComposite_NO; |
|
94 |
public static String DerivateSearchComposite_SEARCH; |
|
95 |
public static String DerivateSearchComposite_TAXON; |
|
96 |
public static String DerivateSearchComposite_TAXON_ASSIGNMENT; |
|
97 |
public static String DerivateSearchComposite_TITLE_CACHE; |
|
98 |
public static String DerivateSearchComposite_YES; |
|
63 | 99 |
public static String DerivateView_DERIVATIVE_EDITOR; |
64 | 100 |
public static String DerivateView_SAVING_HIERARCHY; |
65 | 101 |
public static String DerivateView_UNSAVED_CHANGES; |
66 | 102 |
public static String DerivateView_YOU_NEED_TO_SAVE; |
67 | 103 |
public static String DerivateViewEditorInput_FAIL_INIT; |
68 | 104 |
public static String DerivateViewEditorInput_NO_ROOT; |
105 |
public static String DerivateViewEditorInput_SPECIMEN_EDITOR; |
|
106 |
public static String DescriptionElementTransfer_0; |
|
69 | 107 |
public static String DescriptiveViewPart_COLLAPSE_ALL; |
70 | 108 |
public static String DescriptiveViewPart_EXPAND_ALL; |
71 | 109 |
public static String DescriptiveViewPart_FACTUAL_DATA; |
72 | 110 |
public static String DescriptiveViewPart_SHOW_ALL_DATA; |
111 |
public static String EditCdmAuthoritiesHandler_COULD_NOT_OPEN_AUTHORITIES; |
|
112 |
public static String EditCdmAuthoritiesHandler_OPEN_AUTHORITIES; |
|
113 |
public static String EditorAnnotation_ERROR; |
|
114 |
public static String EditorAnnotation_WARNING; |
|
73 | 115 |
public static String EditorStateManager_ERROR_OPEN_WINDOW; |
74 | 116 |
public static String EditorStateManager_REFRESH_EDITOR; |
75 | 117 |
public static String EditorStateManager_RESTORE_EDITORS; |
... | ... | |
79 | 121 |
public static String EditorUtil_ORPHAN_ACCEPTED_TAXON_MESSAGE; |
80 | 122 |
public static String EditorUtil_ORPHAN_TAXON; |
81 | 123 |
public static String EditorUtil_ORPHAN_TAXON_MESSAGE; |
124 |
public static String IContainerConstants_CLICK_ADD_NAME; |
|
82 | 125 |
public static String InsertPolytomousKeyNodeOperation_INSERT_KEY; |
83 |
public static String MoveDerivateOperation_MOVE_NOT_POSSIBLE; |
|
126 |
public static String KeyEditor_GRAPH; |
|
127 |
public static String KeyEditor_LIST; |
|
128 |
public static String KeyEditor_SAVING; |
|
129 |
public static String ListenToSelectionChangeContextMenu_LINK; |
|
130 |
public static String ListenToSelectionChangeContextMenu_UNLINK; |
|
131 |
public static String MisapplicationContainer_SEC_REF_REQUIRED; |
|
132 |
public static String MoveDerivateOperation_MOVE_NOT_POSSIBLE; |
|
84 | 133 |
public static String MoveDerivateOperation_MOVE_TO_NOT_POSSIBLE; |
134 |
public static String MoveSynonymToAnotherAcceptedTaxonHandler_CHANGE_ACC_TAXON; |
|
135 |
public static String MoveSynonymToAnotherAcceptedTaxonHandler_NO_SELECTION; |
|
136 |
public static String MoveSynonymToAnotherAcceptedTaxonHandler_NO_SELECTION_MESSAGE; |
|
137 |
public static String MoveSynonymToAnotherAcceptedTaxonHandler_SELECT_ACC_TAXON; |
|
85 | 138 |
public static String MultiPageTaxonEditor_INVALID_INPUT; |
86 | 139 |
public static String MultiPageTaxonEditor_NEW_TAXON; |
87 | 140 |
public static String MultiPageTaxonEditor_NO_NAME_SPECIFIED; |
... | ... | |
95 | 148 |
public static String MultiPageTaxonEditor_SAVING_TAXON_MESSAGE; |
96 | 149 |
public static String MultiPageTaxonEditor_UNSAVED_DATA; |
97 | 150 |
public static String MultiPageTaxonEditor_UNSAVED_DATA_MESSAGE; |
151 |
public static String NameEditorDropTargetListener_CHANGE_ACC_TAXON; |
|
152 |
public static String NameEditorDropTargetListener_CHANGE_HOMOTYPICAL_GROUP; |
|
153 |
public static String NameEditorDropTargetListener_CHANGE; |
|
154 |
public static String NameEditorDropTargetListener_CHANGE_SYNONYM; |
|
155 |
public static String NameEditorDropTargetListener_CHANGE_SYNONYM_TO_MISAPP; |
|
156 |
public static String NameEditorDropTargetListener_UNSUCCESSFULL_DROP; |
|
98 | 157 |
public static String OpenChecklistEditorHandler_CHOOSE_AREA; |
99 | 158 |
public static String OpenChecklistEditorHandler_COULD_NOT_OPEN_MESSAGE; |
100 | 159 |
public static String OpenChecklistEditorHandler_COULD_NOT_OPEN_TITLE; |
... | ... | |
106 | 165 |
public static String OpenDerivateEditorForTaxonHandler_HIERARCHY_CORRUPTED; |
107 | 166 |
public static String OpenDerivateEditorForTaxonHandler_NO_DERIVATIVES_FOUND; |
108 | 167 |
public static String OpenDerivateViewHandler_COULD_NOT_OPEN; |
168 |
public static String OpenDerivativeEditorForDescriptionElement_NO_SPECIMENS; |
|
169 |
public static String OpenDerivativeEditorForDescriptionElement_NO_SPECIMENS_MESSAGE; |
|
170 |
public static String OpenDerivativeEditorForTaxonNode_COULD_NOT_OPEN; |
|
171 |
public static String OpenRelatedConceptHandler_COULD_NOT_OPEN; |
|
172 |
public static String OpenRelatedConceptHandler_COULD_NOT_OPEN_MESSAGE; |
|
109 | 173 |
public static String PolytomousKeyEditorLabels_CREATE_NODE; |
110 | 174 |
public static String PolytomousKeyEditorLabels_CREATE_SIBLING; |
111 | 175 |
public static String PolytomousKeyEditorLabels_DELETE_NODE; |
... | ... | |
132 | 196 |
public static String UsesViewPart_VIEWER_NAME; |
133 | 197 |
public static String SetSecundumHandler_configureSettings; |
134 | 198 |
public static String SetSecundumHandler_confirm; |
199 |
public static String SwapSynonymAndAcceptedHandler_COULD_NOT_OPEN; |
|
200 |
public static String SwapSynonymAndAcceptedOperation_NOT_IMPLEMENTED; |
|
201 |
public static String SwapSynonymAndAcceptedOperation_SWAP_SYN_ACC_TAXON; |
|
202 |
public static String SynonymContainer_SYNONYM_NULL_NAME; |
|
135 | 203 |
public static String TaxonEditorInput_INCORRECT_STATE; |
136 | 204 |
public static String TaxonEditorInput_NEW_TAXON; |
137 | 205 |
public static String TaxonEditorInput_NO_ACCEPTED_TAXON_PRESENT; |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/group/authority/handler/EditCdmAuthoritiesHandler.java | ||
---|---|---|
1 | 1 |
/** |
2 | 2 |
* Copyright (C) 2007 EDIT |
3 |
* European Distributed Institute of Taxonomy
|
|
3 |
* European Distributed Institute of Taxonomy |
|
4 | 4 |
* http://www.e-taxonomy.eu |
5 |
*
|
|
5 |
* |
|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
... | ... | |
21 | 21 |
import eu.etaxonomy.cdm.model.common.Group; |
22 | 22 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor; |
23 | 23 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
24 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
24 | 25 |
import eu.etaxonomy.taxeditor.editor.group.authority.CdmAuthorityEditor; |
25 | 26 |
import eu.etaxonomy.taxeditor.model.LineSelection; |
26 | 27 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
... | ... | |
28 | 29 |
|
29 | 30 |
/** |
30 | 31 |
* Handler which opens an instance of the {@link CdmAuthorityEditor} for a particluar group. |
31 |
*
|
|
32 |
* |
|
32 | 33 |
* @author cmathew |
33 | 34 |
* @created Mar 28, 2013 |
34 | 35 |
* |
... | ... | |
36 | 37 |
|
37 | 38 |
public class EditCdmAuthoritiesHandler extends AbstractHandler { |
38 | 39 |
|
39 |
/* (non-Javadoc) |
|
40 |
private static final String OPENING_CDM_AUTHORITIES = Messages.EditCdmAuthoritiesHandler_OPEN_AUTHORITIES; |
|
41 |
|
|
42 |
/* (non-Javadoc) |
|
40 | 43 |
* @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) |
41 | 44 |
*/ |
42 | 45 |
@Override |
43 | 46 |
public Object execute(ExecutionEvent event) throws ExecutionException { |
44 | 47 |
BulkEditor editor = (BulkEditor) EditorUtil.getActiveEditor(); |
45 |
|
|
46 |
ISelection selection = editor.getSite().getSelectionProvider().getSelection();
|
|
48 |
|
|
49 |
ISelection selection = editor.getSite().getSelectionProvider().getSelection(); |
|
47 | 50 |
if(selection instanceof LineSelection){ |
48 |
|
|
51 |
|
|
49 | 52 |
final LineSelection lineSelection = (LineSelection) selection; |
50 |
|
|
51 |
Job job = new Job("Opening Cdm Authorities"){
|
|
53 |
|
|
54 |
Job job = new Job(OPENING_CDM_AUTHORITIES){
|
|
52 | 55 |
|
53 | 56 |
@Override |
54 | 57 |
protected IStatus run(IProgressMonitor monitor) { |
55 |
monitor.beginTask("Opening Cdm Authorities", lineSelection.size());
|
|
56 |
|
|
58 |
monitor.beginTask(OPENING_CDM_AUTHORITIES, lineSelection.size());
|
|
59 |
|
|
57 | 60 |
for(final Object selectedObject : lineSelection.toArray()){ |
58 | 61 |
if(selectedObject instanceof Group){ |
59 |
|
|
62 |
|
|
60 | 63 |
Display.getDefault().asyncExec(new Runnable(){ |
61 | 64 |
|
62 | 65 |
@Override |
63 |
public void run() {
|
|
66 |
public void run() { |
|
64 | 67 |
try { |
65 | 68 |
EditorUtil.openCdmAuthorities(((Group)selectedObject).getUuid()); |
66 | 69 |
} catch (Exception e) { |
67 |
MessagingUtils.warningDialog("Could not open CDM Authority Editor", EditorUtil.class, e.getMessage());
|
|
70 |
MessagingUtils.warningDialog(Messages.EditCdmAuthoritiesHandler_COULD_NOT_OPEN_AUTHORITIES, EditorUtil.class, e.getMessage());
|
|
68 | 71 |
} |
69 | 72 |
} |
70 |
|
|
73 |
|
|
71 | 74 |
}); |
72 | 75 |
monitor.worked(1); |
73 | 76 |
} |
... | ... | |
75 | 78 |
monitor.done(); |
76 | 79 |
return Status.OK_STATUS; |
77 | 80 |
} |
78 |
|
|
81 |
|
|
79 | 82 |
}; |
80 |
|
|
83 |
|
|
81 | 84 |
job.setPriority(Job.SHORT); |
82 |
job.schedule();
|
|
83 |
|
|
85 |
job.schedule(); |
|
86 |
|
|
84 | 87 |
} |
85 | 88 |
return null; |
86 | 89 |
} |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/KeyEditor.java | ||
---|---|---|
24 | 24 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
25 | 25 |
import eu.etaxonomy.cdm.model.description.PolytomousKey; |
26 | 26 |
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap; |
27 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
27 | 28 |
import eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyEditorInput; |
28 | 29 |
import eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyGraphEditor; |
29 | 30 |
import eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyListEditor; |
... | ... | |
40 | 41 |
public class KeyEditor extends FormEditor implements IConversationEnabled, |
41 | 42 |
IDirtyMarkable, IPartContentHasDetails, ICdmChangeListener { |
42 | 43 |
|
43 |
public static final String ID = "eu.etaxonomy.taxeditor.editor.key"; |
|
44 |
public static final String ID = "eu.etaxonomy.taxeditor.editor.key"; //$NON-NLS-1$
|
|
44 | 45 |
|
45 | 46 |
private ConversationHolder conversation; |
46 | 47 |
|
... | ... | |
73 | 74 |
@Override |
74 | 75 |
public void doSave(IProgressMonitor monitor) { |
75 | 76 |
try { |
76 |
monitor.beginTask("Saving Editor", 1);
|
|
77 |
monitor.beginTask(Messages.KeyEditor_SAVING, 1);
|
|
77 | 78 |
getConversationHolder().bind(); |
78 | 79 |
getConversationHolder().commit(true); |
79 | 80 |
polytomousKeyEditorInput.merge(); |
... | ... | |
224 | 225 |
|
225 | 226 |
try { |
226 | 227 |
addPage(0, new PolytomousKeyListEditor(this), polytomousKeyEditorInput); |
227 |
setPageText(0, "List");
|
|
228 |
setPageText(0, Messages.KeyEditor_LIST);
|
|
228 | 229 |
addPage(1, new PolytomousKeyGraphEditor(this), polytomousKeyEditorInput); |
229 |
setPageText(1, "Graph");
|
|
230 |
setPageText(1, Messages.KeyEditor_GRAPH);
|
|
230 | 231 |
} catch (PartInitException e) { |
231 | 232 |
MessagingUtils.error(getClass(), e); |
232 | 233 |
} |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/AbstractGroupedContainer.java | ||
---|---|---|
56 | 56 |
import eu.etaxonomy.cdm.strategy.parser.ParserProblem; |
57 | 57 |
import eu.etaxonomy.taxeditor.editor.CdmDataTransfer; |
58 | 58 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
59 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
59 | 60 |
import eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor; |
60 | 61 |
import eu.etaxonomy.taxeditor.editor.name.container.EditorAnnotation.EditorAnnotationType; |
61 | 62 |
import eu.etaxonomy.taxeditor.editor.name.dnd.NameEditorDragListener; |
... | ... | |
323 | 324 |
.addAnnotation( |
324 | 325 |
new EditorAnnotation(EditorAnnotationType.WARNING, |
325 | 326 |
0, |
326 |
"This name may only be edited in the details view."));
|
|
327 |
Messages.AbstractGroupedContainer_EDIT_IN_DETAILS_VIEW));
|
|
327 | 328 |
} |
328 | 329 |
|
329 | 330 |
if (isNameUsedMultipleTimes()) { |
330 | 331 |
getNameViewer().addAnnotation( |
331 | 332 |
new EditorAnnotation(EditorAnnotationType.WARNING, 0, |
332 |
"This taxons name is used multiple times."));
|
|
333 |
Messages.AbstractGroupedContainer_MULTIPLE_USE));
|
|
333 | 334 |
} |
334 | 335 |
|
335 | 336 |
} |
... | ... | |
385 | 386 |
.parseReferencedName(text, null); |
386 | 387 |
|
387 | 388 |
EditorUtil.executeOperation(new CreateSynonymInNewGroupOperation( |
388 |
"New Heterotypic Synonym", getEditor().getUndoContext(),
|
|
389 |
Messages.AbstractGroupedContainer_NEW_HETERO_SYNONYM, getEditor().getUndoContext(),
|
|
389 | 390 |
getEditor().getTaxon(), synonymName, getEditor())); |
390 | 391 |
} |
391 | 392 |
|
... | ... | |
581 | 582 |
*/ |
582 | 583 |
public AbstractGroup getGroup() { |
583 | 584 |
if (group == null) { |
584 |
throw new IllegalStateException("Group shall not be null."); |
|
585 |
throw new IllegalStateException("Group shall not be null."); //$NON-NLS-1$
|
|
585 | 586 |
} |
586 | 587 |
return group; |
587 | 588 |
} |
... | ... | |
712 | 713 |
control.layout(); |
713 | 714 |
} else { |
714 | 715 |
new RuntimeException( |
715 |
"Couldn't indent - composite's layout must be TableWrapLayout."); |
|
716 |
"Couldn't indent - composite's layout must be TableWrapLayout."); //$NON-NLS-1$
|
|
716 | 717 |
} |
717 | 718 |
} |
718 | 719 |
|
... | ... | |
836 | 837 |
public NameViewer getNameViewer() { |
837 | 838 |
if (nameViewer == null) { |
838 | 839 |
throw new RuntimeException( |
839 |
"The Name Viewer is corrupt for Name Container: " |
|
840 |
"The Name Viewer is corrupt for Name Container: " //$NON-NLS-1$
|
|
840 | 841 |
+ getTaxonBase().getName().getTitleCache()); |
841 | 842 |
} |
842 | 843 |
return nameViewer; |
... | ... | |
862 | 863 |
public void focusGained(FocusEvent e) { |
863 | 864 |
if (document.get().equals(prompt)) { |
864 | 865 |
textControl.setFont(getViewerFont()); |
865 |
document.set(""); |
|
866 |
document.set(""); //$NON-NLS-1$
|
|
866 | 867 |
} |
867 | 868 |
} |
868 | 869 |
|
... | ... | |
988 | 989 |
|
989 | 990 |
if (draggableControls == null) { |
990 | 991 |
throw new NullPointerException( |
991 |
"Draggable controls must be set to add draggability"); |
|
992 |
"Draggable controls must be set to add draggability"); //$NON-NLS-1$
|
|
992 | 993 |
} |
993 | 994 |
|
994 | 995 |
Transfer[] types = new Transfer[] { CdmDataTransfer.getInstance() }; |
... | ... | |
1050 | 1051 |
info = info.toUpperCase(); |
1051 | 1052 |
|
1052 | 1053 |
if (append) { |
1053 |
nonEditableText += ", " + info; |
|
1054 |
nonEditableHoverText += "\n" + info; |
|
1054 |
nonEditableText += ", " + info; //$NON-NLS-1$
|
|
1055 |
nonEditableHoverText += "\n" + info; //$NON-NLS-1$
|
|
1055 | 1056 |
} else { |
1056 | 1057 |
nonEditableText = info; |
1057 | 1058 |
nonEditableHoverText = info; |
... | ... | |
1059 | 1060 |
|
1060 | 1061 |
if (nonEditableInfoLabel == null) { |
1061 | 1062 |
nonEditableInfoLabel = getEditor().getToolkit().createLabel( |
1062 |
control, ""); |
|
1063 |
control, ""); //$NON-NLS-1$
|
|
1063 | 1064 |
TableWrapData layoutData = new TableWrapData( |
1064 | 1065 |
TableWrapData.FILL_GRAB, TableWrapData.TOP); |
1065 | 1066 |
// Set indent to viewer ruler's width |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/ConceptContainer.java | ||
---|---|---|
15 | 15 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship; |
16 | 16 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType; |
17 | 17 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
18 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
18 | 19 |
import eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor; |
19 | 20 |
import eu.etaxonomy.taxeditor.preference.Resources; |
20 | 21 |
|
... | ... | |
72 | 73 |
} |
73 | 74 |
|
74 | 75 |
if (getTaxonBase().getSec() == null) { |
75 |
setNonEditableInfo("sec. ???", false); |
|
76 |
setNonEditableInfo("sec. ???", false); //$NON-NLS-1$
|
|
76 | 77 |
} else { |
77 |
setNonEditableInfo("sec. " + getTaxonBase().getSec().getTitleCache(), false); |
|
78 |
setNonEditableInfo("sec. " + getTaxonBase().getSec().getTitleCache(), false); //$NON-NLS-1$
|
|
78 | 79 |
} |
79 | 80 |
} |
80 | 81 |
|
... | ... | |
124 | 125 |
public void showAnnotations() { |
125 | 126 |
if(getData().getSec() == null){ |
126 | 127 |
getNameViewer().addAnnotation( |
127 |
new EditorAnnotation(0, "This taxon requires a sec. reference."));
|
|
128 |
new EditorAnnotation(0, Messages.ConceptContainer_SEC_REQUIRED));
|
|
128 | 129 |
} |
129 | 130 |
super.showAnnotations(); |
130 | 131 |
} |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/EditorAnnotation.java | ||
---|---|---|
13 | 13 |
import org.eclipse.swt.widgets.Canvas; |
14 | 14 |
|
15 | 15 |
import eu.etaxonomy.cdm.strategy.parser.ParserProblem; |
16 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
16 | 17 |
import eu.etaxonomy.taxeditor.model.ImageResources; |
17 | 18 |
|
18 | 19 |
/** |
... | ... | |
137 | 138 |
@Override |
138 | 139 |
public String getText() { |
139 | 140 |
if (EditorAnnotationType.ERROR.name().equals(getType())) { |
140 |
return "Error: " + text;
|
|
141 |
return Messages.EditorAnnotation_ERROR + text;
|
|
141 | 142 |
} |
142 | 143 |
if (EditorAnnotationType.WARNING.name().equals(getType())) { |
143 |
return "Warning: " + text;
|
|
144 |
return Messages.EditorAnnotation_WARNING + text;
|
|
144 | 145 |
} |
145 | 146 |
return super.getText(); |
146 | 147 |
} |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/IContainerConstants.java | ||
---|---|---|
11 | 11 |
|
12 | 12 |
import org.eclipse.swt.graphics.Image; |
13 | 13 |
|
14 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
14 | 15 |
import eu.etaxonomy.taxeditor.model.ImageResources; |
15 | 16 |
|
16 | 17 |
/** |
... | ... | |
32 | 33 |
* ************ COMPOSITE TYPES ************ |
33 | 34 |
*/ |
34 | 35 |
/** Constant <code>ACCEPTED_TAXON="accepted_name_composite"</code> */ |
35 |
public static final String ACCEPTED_TAXON = "accepted_name_composite"; |
|
36 |
public static final String ACCEPTED_TAXON = "accepted_name_composite"; //$NON-NLS-1$
|
|
36 | 37 |
/** Constant <code>HOMOTYPIC_SYNONYM="homotypic_name_composite"</code> */ |
37 |
public static final String HOMOTYPIC_SYNONYM = "homotypic_name_composite"; |
|
38 |
public static final String HOMOTYPIC_SYNONYM = "homotypic_name_composite"; //$NON-NLS-1$
|
|
38 | 39 |
/** Constant <code>HETEROTYPIC_SYNONYM="heterotypic_name_composite"</code> */ |
39 |
public static final String HETEROTYPIC_SYNONYM = "heterotypic_name_composite"; |
|
40 |
public static final String HETEROTYPIC_SYNONYM = "heterotypic_name_composite"; //$NON-NLS-1$
|
|
40 | 41 |
/** Constant <code>MISAPPLIED_NAME="misappliedname_name_composite"</code> */ |
41 |
public static final String MISAPPLIED_NAME = "misappliedname_name_composite"; |
|
42 |
public static final String MISAPPLIED_NAME = "misappliedname_name_composite"; //$NON-NLS-1$
|
|
42 | 43 |
/** Constant <code>CONCEPTRELATION="concept_name_composite"</code> */ |
43 |
public static final String CONCEPTRELATION = "concept_name_composite"; |
|
44 |
public static final String CONCEPTRELATION = "concept_name_composite"; //$NON-NLS-1$
|
|
44 | 45 |
|
45 | 46 |
/** |
46 | 47 |
* ************ INDENTATIONS ************ |
... | ... | |
85 | 86 |
/** |
86 | 87 |
* ************ TRANSFORMATIONS ************ |
87 | 88 |
*/ |
88 |
public static final String ADD_GROUP_BASIONYM = "add_group_basionym"; |
|
89 |
public static final String ADD_GROUP_BASIONYM = "add_group_basionym"; //$NON-NLS-1$
|
|
89 | 90 |
/** Constant <code>REMOVE_GROUP_BASIONYM="remove_group_basionym"</code> */ |
90 |
public static final String REMOVE_GROUP_BASIONYM = "remove_group_basionym"; |
|
91 |
public static final String REMOVE_GROUP_BASIONYM = "remove_group_basionym"; //$NON-NLS-1$
|
|
91 | 92 |
|
92 |
public static final String EMPTY_NAME_PROMPT = "Click to add name";
|
|
93 |
public static final String EMPTY_NAME_PROMPT = Messages.IContainerConstants_CLICK_ADD_NAME;
|
|
93 | 94 |
} |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/LineBreakListener.java | ||
---|---|---|
48 | 48 |
public abstract class LineBreakListener implements VerifyListener{ |
49 | 49 |
|
50 | 50 |
|
51 |
private static String LINE_BREAK = System.getProperty("line.separator"); |
|
51 |
private static String LINE_BREAK = System.getProperty("line.separator"); //$NON-NLS-1$
|
|
52 | 52 |
|
53 | 53 |
|
54 | 54 |
/** |
... | ... | |
80 | 80 |
// make a new, empty synonym |
81 | 81 |
if (widgetText.length() == cursorPosition && |
82 | 82 |
verifyText.equals(LINE_BREAK)) { |
83 |
handleSplitText(""); |
|
83 |
handleSplitText(""); //$NON-NLS-1$
|
|
84 | 84 |
return; |
85 | 85 |
} |
86 | 86 |
|
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/LineWrapSquigglesStrategy.java | ||
---|---|---|
28 | 28 |
public class LineWrapSquigglesStrategy extends SquigglesStrategy { |
29 | 29 |
|
30 | 30 |
/** Constant <code>ID="linewrap_squigglesstrategy"</code> */ |
31 |
public static final String ID = "linewrap_squigglesstrategy"; |
|
31 |
public static final String ID = "linewrap_squigglesstrategy"; //$NON-NLS-1$
|
|
32 | 32 |
|
33 | 33 |
private GC gc; |
34 | 34 |
|
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/LineWrapSupport.java | ||
---|---|---|
54 | 54 |
|
55 | 55 |
if (viewer == null) { |
56 | 56 |
throw new IllegalArgumentException( |
57 |
"The provided TextViewer object is null."); |
|
57 |
"The provided TextViewer object is null."); //$NON-NLS-1$
|
|
58 | 58 |
} |
59 | 59 |
|
60 | 60 |
// this.viewer = viewer; |
... | ... | |
65 | 65 |
this.lineCount = textWidget.getLinePixel(textWidget.getLineCount()); |
66 | 66 |
this.scrolledForm = form.getForm(); |
67 | 67 |
|
68 |
logger.trace(this.getClass().getSimpleName() + " created"); |
|
68 |
logger.trace(this.getClass().getSimpleName() + " created"); //$NON-NLS-1$
|
|
69 | 69 |
} |
70 | 70 |
|
71 | 71 |
/** |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/MisapplicationContainer.java | ||
---|---|---|
13 | 13 |
|
14 | 14 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
15 | 15 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
16 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
16 | 17 |
import eu.etaxonomy.taxeditor.preference.Resources; |
17 | 18 |
|
18 | 19 |
/** |
... | ... | |
64 | 65 |
if (getMisappliedName().getAppendedPhrase() != null ){ |
65 | 66 |
setNonEditableInfo(getMisappliedName().getAppendedPhrase(), false); |
66 | 67 |
}else{ |
67 |
setNonEditableInfo("sec. ???", false); |
|
68 |
setNonEditableInfo("sec. ???", false); //$NON-NLS-1$
|
|
68 | 69 |
} |
69 | 70 |
} else { |
70 | 71 |
String title = getMisappliedName().getSec().getTitleCache(); |
71 |
title = title.replace("&", "&&"); |
|
72 |
String sec = "sec. "; |
|
72 |
title = title.replace("&", "&&"); //$NON-NLS-1$ //$NON-NLS-2$
|
|
73 |
String sec = "sec. "; //$NON-NLS-1$
|
|
73 | 74 |
if (getMisappliedName().getAppendedPhrase() != null ){ |
74 |
sec = getMisappliedName().getAppendedPhrase() + " "+sec; |
|
75 |
sec = getMisappliedName().getAppendedPhrase() + " "+sec; //$NON-NLS-1$
|
|
75 | 76 |
} |
76 | 77 |
setNonEditableInfo(sec + title, false); |
77 | 78 |
} |
... | ... | |
99 | 100 |
public void showAnnotations() { |
100 | 101 |
if(getData().getSec() == null){ |
101 | 102 |
getNameViewer().addAnnotation( |
102 |
new EditorAnnotation(0, "This misapplication requires a sec. reference."));
|
|
103 |
new EditorAnnotation(0, Messages.MisapplicationContainer_SEC_REF_REQUIRED));
|
|
103 | 104 |
} |
104 | 105 |
super.showAnnotations(); |
105 | 106 |
} |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/NameViewer.java | ||
---|---|---|
100 | 100 |
ruler.getControl().moveAbove(getTextWidget()); |
101 | 101 |
|
102 | 102 |
annotationModel = new AnnotationModel(); |
103 |
this.setDocument(new Document(""), annotationModel); |
|
103 |
this.setDocument(new Document(""), annotationModel); //$NON-NLS-1$
|
|
104 | 104 |
|
105 | 105 |
createAnnotationPainter(); |
106 | 106 |
|
... | ... | |
151 | 151 |
if (ruler instanceof RulerWithIcon) { |
152 | 152 |
((RulerWithIcon) ruler).setIcon(icon); |
153 | 153 |
} else { |
154 |
throw new IllegalStateException("Viewer's IVerticalRuler is not an instance of RulerWithIcon."); |
|
154 |
throw new IllegalStateException("Viewer's IVerticalRuler is not an instance of RulerWithIcon."); //$NON-NLS-1$
|
|
155 | 155 |
} |
156 | 156 |
} |
157 | 157 |
|
... | ... | |
269 | 269 |
*/ |
270 | 270 |
public void setText(String text) { |
271 | 271 |
if (text == null) { |
272 |
text = ""; |
|
272 |
text = ""; //$NON-NLS-1$
|
|
273 | 273 |
} |
274 | 274 |
try { |
275 | 275 |
Assert.isNotNull(text); |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/RulerWithIcon.java | ||
---|---|---|
255 | 255 |
Rectangle r = icon.getBounds(); |
256 | 256 |
|
257 | 257 |
if (r.width > size.x || r.height > size.y) { |
258 |
logger.warn(r.width + "x" + r.height + " icon too big for " + size.x + "x" + size.y + " Canvas."); |
|
258 |
logger.warn(r.width + "x" + r.height + " icon too big for " + size.x + "x" + size.y + " Canvas."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
|
|
259 | 259 |
} else { |
260 | 260 |
|
261 | 261 |
// Set destination coordinates to center icon |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/SynonymContainer.java | ||
---|---|---|
20 | 20 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase; |
21 | 21 |
import eu.etaxonomy.cdm.model.taxon.Synonym; |
22 | 22 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
23 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
23 | 24 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
24 | 25 |
import eu.etaxonomy.taxeditor.preference.Resources; |
25 | 26 |
|
... | ... | |
62 | 63 |
setFont(getViewerFont()); |
63 | 64 |
|
64 | 65 |
if(getName() == null){ |
65 |
MessagingUtils.warn(getClass(), "Synonym with a null name detected. This should never happen.");
|
|
66 |
MessagingUtils.warn(getClass(), Messages.SynonymContainer_SYNONYM_NULL_NAME);
|
|
66 | 67 |
} |
67 | 68 |
|
68 | 69 |
initTextViewer(); |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/dnd/NameEditorDropTargetListener.java | ||
---|---|---|
1 | 1 |
/** |
2 |
*
|
|
2 |
* |
|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.taxeditor.editor.name.dnd; |
5 | 5 |
|
... | ... | |
16 | 16 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType; |
17 | 17 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
18 | 18 |
import eu.etaxonomy.taxeditor.editor.IDropTargetable; |
19 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
19 | 20 |
import eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor; |
20 | 21 |
import eu.etaxonomy.taxeditor.editor.name.container.AbstractHomotypicalGroupContainer; |
21 | 22 |
import eu.etaxonomy.taxeditor.editor.name.container.MisappliedGroup; |
... | ... | |
34 | 35 |
* @version $Id: $ |
35 | 36 |
*/ |
36 | 37 |
public class NameEditorDropTargetListener extends DropTargetAdapter { |
37 |
|
|
38 |
|
|
38 | 39 |
private IDropTargetable target; |
39 |
|
|
40 |
|
|
40 | 41 |
|
41 | 42 |
/** |
42 | 43 |
* <p>Constructor for NameEditorDropTargetListener.</p> |
... | ... | |
46 | 47 |
public NameEditorDropTargetListener(IDropTargetable target){ |
47 | 48 |
this.target = target; |
48 | 49 |
} |
49 |
|
|
50 |
|
|
50 | 51 |
/** {@inheritDoc} */ |
51 |
public void dragEnter(DropTargetEvent dropTargetEvent) { |
|
52 |
@Override |
|
53 |
public void dragEnter(DropTargetEvent dropTargetEvent) { |
|
52 | 54 |
target.dragEntered(); |
53 |
|
|
55 |
|
|
54 | 56 |
// if(! EditorUtil.getActiveMultiPageTaxonEditor().equals(editor.getMultiPageTaxonEditor())){ |
55 | 57 |
// editor.getMultiPageTaxonEditor().setFocus(); |
56 | 58 |
// } |
57 | 59 |
} |
58 |
|
|
60 |
|
|
59 | 61 |
/** {@inheritDoc} */ |
60 |
public void dragLeave(DropTargetEvent dropTargetEvent) { |
|
62 |
@Override |
|
63 |
public void dragLeave(DropTargetEvent dropTargetEvent) { |
|
61 | 64 |
target.dragLeft(); |
62 | 65 |
} |
63 |
|
|
66 |
|
|
64 | 67 |
/** {@inheritDoc} */ |
65 |
public void drop(DropTargetEvent dropTargetEvent) { |
|
66 |
|
|
68 |
@Override |
|
69 |
public void drop(DropTargetEvent dropTargetEvent) { |
|
70 |
|
|
67 | 71 |
TaxonBase taxonBase = getDroppedTaxonBase(dropTargetEvent); |
68 |
|
|
72 |
|
|
69 | 73 |
Assert.isNotNull(taxonBase); |
70 |
|
|
74 |
|
|
71 | 75 |
if(taxonBase.getHomotypicGroup().equals(getHomotypicalGroup())){ |
72 | 76 |
// do nothing when dragged to the same group |
73 | 77 |
dropTargetEvent.detail = DND.DROP_NONE; |
74 | 78 |
return; |
75 | 79 |
} |
76 |
|
|
80 |
|
|
77 | 81 |
// Execute operations at end of drag event |
78 | 82 |
AbstractPostOperation operation = createOperation(taxonBase); |
79 |
|
|
83 |
|
|
80 | 84 |
// Execute operation if it has been initiated |
81 | 85 |
if (operation == null) { |
82 |
MessagingUtils.warn(getClass(), "User unsuccessfully tried to drop: " + taxonBase.getClass() + |
|
83 |
". Target: " + target); |
|
86 |
MessagingUtils.warn(getClass(), String.format(Messages.NameEditorDropTargetListener_UNSUCCESSFULL_DROP, taxonBase.getClass(), target)); |
|
84 | 87 |
dropTargetEvent.detail = DND.DROP_NONE; |
85 | 88 |
} else { |
86 | 89 |
EditorUtil.executeOperation(operation); |
... | ... | |
89 | 92 |
if (!target.equals(EditorUtil.getActiveMultiPageTaxonEditor().getActiveEditor())){ |
90 | 93 |
((TaxonNameEditor)EditorUtil.getActiveMultiPageTaxonEditor().getActiveEditor()).redraw(); |
91 | 94 |
((TaxonNameEditor)EditorUtil.getActiveMultiPageTaxonEditor().getActiveEditor()).getConversationHolder().commit(); |
92 |
|
|
95 |
|
|
93 | 96 |
} |
94 | 97 |
target.getEditor().redraw(); |
95 |
|
|
98 |
|
|
96 | 99 |
} |
97 |
|
|
100 |
|
|
98 | 101 |
private AbstractPostOperation createOperation(TaxonBase taxonBase) { |
99 |
|
|
102 |
|
|
100 | 103 |
if(taxonBase instanceof Synonym){ |
101 | 104 |
Synonym synonym = (Synonym) taxonBase; |
102 |
|
|
105 |
|
|
103 | 106 |
if(target instanceof AbstractHomotypicalGroupContainer){ |
104 | 107 |
HomotypicalGroup homotypicalGroup = ((AbstractHomotypicalGroupContainer) target).getGroup(); |
105 |
|
|
106 |
return new ChangeHomotypicGroupOperation("Change Homotypical Group", getEditor().getUndoContext(),
|
|
108 |
|
|
109 |
return new ChangeHomotypicGroupOperation(Messages.NameEditorDropTargetListener_CHANGE_HOMOTYPICAL_GROUP, getEditor().getUndoContext(),
|
|
107 | 110 |
getEditor().getTaxon(), synonym, homotypicalGroup, target); |
108 | 111 |
} |
109 | 112 |
else if(target instanceof MisappliedGroup){ |
110 |
return new ChangeSynonymToMisapplicationOperation("Change Synonym to Misapplication", getEditor().getUndoContext(),
|
|
113 |
return new ChangeSynonymToMisapplicationOperation(Messages.NameEditorDropTargetListener_CHANGE_SYNONYM_TO_MISAPP, getEditor().getUndoContext(),
|
|
111 | 114 |
getEditor().getTaxon(), synonym, target); |
112 | 115 |
} |
113 | 116 |
else if(target instanceof TaxonNameEditor){ |
114 | 117 |
if (target.equals(getEditor())){ |
115 |
return new ChangeHomotypicGroupOperation("Change Homotypical Group", getEditor().getUndoContext(),
|
|
118 |
return new ChangeHomotypicGroupOperation(Messages.NameEditorDropTargetListener_CHANGE_HOMOTYPICAL_GROUP, getEditor().getUndoContext(),
|
|
116 | 119 |
getEditor().getTaxon(), synonym, null, target); |
117 | 120 |
} else{ |
118 | 121 |
getEditor().getConversationHolder().commit(); |
119 | 122 |
((TaxonNameEditor) target).getConversationHolder().commit(); |
120 |
|
|
121 |
return new MoveSynonymToAnotherAcceptedTaxonOperation("Change accepted Taxon", getEditor().getUndoContext(), getEditor().getTaxon().getUuid(), synonym.getUuid(), ((TaxonNameEditor) target).getTaxon(), null );
|
|
122 |
|
|
123 |
|
|
124 |
return new MoveSynonymToAnotherAcceptedTaxonOperation(Messages.NameEditorDropTargetListener_CHANGE_ACC_TAXON, getEditor().getUndoContext(), getEditor().getTaxon().getUuid(), synonym.getUuid(), ((TaxonNameEditor) target).getTaxon(), null );
|
|
125 |
|
|
123 | 126 |
} |
124 | 127 |
} |
125 |
|
|
128 |
|
|
126 | 129 |
}else if(taxonBase instanceof Taxon){ |
127 | 130 |
Taxon concept = (Taxon) taxonBase; |
128 |
|
|
131 |
|
|
129 | 132 |
if(target instanceof AbstractHomotypicalGroupContainer){ |
130 | 133 |
HomotypicalGroup homotypicalGroup = ((AbstractHomotypicalGroupContainer) target).getGroup(); |
131 |
|
|
132 |
return new ChangeConceptToSynonymOperation("Change to Synonym", getEditor().getUndoContext(),
|
|
134 |
|
|
135 |
return new ChangeConceptToSynonymOperation(Messages.NameEditorDropTargetListener_CHANGE_SYNONYM, getEditor().getUndoContext(),
|
|
133 | 136 |
getEditor().getTaxon(), concept, homotypicalGroup, target); |
134 | 137 |
} |
135 | 138 |
else if(target instanceof MisappliedGroup ){ |
136 |
return new ChangeConceptRelationshipTypeOperation("Change", getEditor().getUndoContext(),
|
|
139 |
return new ChangeConceptRelationshipTypeOperation(Messages.NameEditorDropTargetListener_CHANGE, getEditor().getUndoContext(),
|
|
137 | 140 |
getEditor().getTaxon(), concept, TaxonRelationshipType.MISAPPLIED_NAME_FOR(), target); |
138 | 141 |
} |
139 | 142 |
} |
140 | 143 |
|
141 |
|
|
144 |
|
|
142 | 145 |
return null; |
143 | 146 |
} |
144 | 147 |
|
... | ... | |
148 | 151 |
// pass |
149 | 152 |
} |
150 | 153 |
|
151 |
|
|
154 |
|
|
152 | 155 |
private HomotypicalGroup getHomotypicalGroup() { |
153 | 156 |
if(target instanceof AbstractHomotypicalGroupContainer){ |
154 | 157 |
return ((AbstractHomotypicalGroupContainer) target).getGroup(); |
155 | 158 |
} |
156 | 159 |
return null; |
157 |
}
|
|
158 |
|
|
160 |
} |
|
161 |
|
|
159 | 162 |
private TaxonBase getDroppedTaxonBase(DropTargetEvent dropTargetEvent){ |
160 | 163 |
if(dropTargetEvent.data instanceof ICdmBase[]){ |
161 |
|
|
164 |
|
|
162 | 165 |
ICdmBase[] cdmBaseObjects = (ICdmBase[]) dropTargetEvent.data; |
163 |
|
|
166 |
|
|
164 | 167 |
if(cdmBaseObjects[0] instanceof TaxonBase){ |
165 | 168 |
return (TaxonBase) cdmBaseObjects[0]; |
166 | 169 |
} |
167 | 170 |
} |
168 | 171 |
return null; |
169 | 172 |
} |
170 |
|
|
173 |
|
|
171 | 174 |
/** |
172 |
* @return
|
|
173 |
*
|
|
175 |
* @return |
|
176 |
* |
|
174 | 177 |
*/ |
175 | 178 |
private TaxonNameEditor getEditor() { |
176 | 179 |
return (TaxonNameEditor) EditorUtil.getActiveMultiPageTaxonEditor().getActiveEditor(); |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/ChangeSynonymToAcceptedTaxonHandler.java | ||
---|---|---|
32 | 32 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
33 | 33 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
34 | 34 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
35 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
35 | 36 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
36 | 37 |
import eu.etaxonomy.taxeditor.editor.TaxonEditorInput; |
37 | 38 |
import eu.etaxonomy.taxeditor.editor.name.operation.ChangeSynonymToAcceptedTaxonOperation; |
... | ... | |
61 | 62 |
IEditorInput input = editor.getEditorInput(); |
62 | 63 |
|
63 | 64 |
if (!(input instanceof TaxonEditorInput)) { |
64 |
logger.error("Editor input is not TaxonEditorInput"); |
|
65 |
logger.error("Editor input is not TaxonEditorInput"); //$NON-NLS-1$
|
|
65 | 66 |
return null; |
66 | 67 |
} |
67 | 68 |
|
68 | 69 |
// Get synonym from selection |
69 | 70 |
StructuredSelection selection = (StructuredSelection) HandlerUtil.getCurrentSelection(event); |
70 | 71 |
if (!(selection.getFirstElement() instanceof Synonym)) { |
71 |
logger.error("Selection does not contain a Synonym"); |
|
72 |
logger.error("Selection does not contain a Synonym"); //$NON-NLS-1$
|
|
72 | 73 |
return null; |
73 | 74 |
} |
74 | 75 |
|
... | ... | |
87 | 88 |
List<UUID> excludeTaxa = new ArrayList<UUID>(); |
88 | 89 |
//excludeTaxa.add(taxon.getUuid());//there are some cases where the accepted taxon should be the parent of the new created accepted taxon |
89 | 90 |
|
90 |
TaxonNode newParentNode = TaxonNodeSelectionDialog.select(HandlerUtil.getActiveShell(event), editor.getConversationHolder(), "Select parent", null, null, ((TaxonEditorInput) input).getTaxonNode().getClassification());
|
|
91 |
TaxonNode newParentNode = TaxonNodeSelectionDialog.select(HandlerUtil.getActiveShell(event), editor.getConversationHolder(), Messages.ChangeSynonymToAcceptedTaxonHandler_SELECT_PARENT, null, null, ((TaxonEditorInput) input).getTaxonNode().getClassification());
|
|
91 | 92 |
|
92 | 93 |
|
93 | 94 |
if(newParentNode != null){ |
... | ... | |
97 | 98 |
HomotypicalGroup group = synonym.getHomotypicGroup(); |
98 | 99 |
Set<TaxonNameBase> namesInGroup = group.getTypifiedNames(); |
99 | 100 |
// FIXME with this implementation we can not create a taxonNode that is a direct child of the classification node |
100 |
AbstractPostOperation operation = new ChangeSynonymToAcceptedTaxonOperation("Change synonym to accepted taxon", EditorUtil.getUndoContext(),
|
|
101 |
AbstractPostOperation operation = new ChangeSynonymToAcceptedTaxonOperation(Messages.ChangeSynonymToAcceptedTaxonHandler_CHANGE_SYN_TO_ACC_TAXON, EditorUtil.getUndoContext(),
|
|
101 | 102 |
taxon, newParentNode, synonym, namesInGroup, this, editor, (ICdmEntitySessionEnabled)editor.getEditorInput()); //$NON-NLS-1$ |
102 | 103 |
|
103 | 104 |
EditorUtil.executeOperation(operation); |
... | ... | |
137 | 138 |
// TODO Auto-generated catch block |
138 | 139 |
e.printStackTrace(); |
139 | 140 |
} catch (Exception e) { |
140 |
MessagingUtils.warningDialog("Could not create Taxon", this, e.getMessage());
|
|
141 |
MessagingUtils.warningDialog(Messages.ChangeSynonymToAcceptedTaxonHandler_CREATE_FAILURE, this, e.getMessage());
|
|
141 | 142 |
} |
142 | 143 |
} |
143 | 144 |
return true; |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/ChangeToConceptRelationHandler.java | ||
---|---|---|
67 | 67 |
EditorUtil.executeOperation(operation); |
68 | 68 |
} |
69 | 69 |
} catch (NotDefinedException e) { |
70 |
logger.warn("Command name not set"); |
|
70 |
logger.warn("Command name not set"); //$NON-NLS-1$
|
|
71 | 71 |
} |
72 | 72 |
|
73 | 73 |
return null; |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/ChangeToMisapplicationHandler.java | ||
---|---|---|
71 | 71 |
EditorUtil.executeOperation(operation); |
72 | 72 |
|
73 | 73 |
} catch (NotDefinedException e) { |
74 |
logger.warn("Command name not set"); |
|
74 |
logger.warn("Command name not set"); //$NON-NLS-1$
|
|
75 | 75 |
} |
76 | 76 |
|
77 | 77 |
return null; |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/ChangeToSynonymHandler.java | ||
---|---|---|
52 | 52 |
|
53 | 53 |
EditorUtil.executeOperation(operation); |
54 | 54 |
} catch (NotDefinedException e) { |
55 |
logger.warn("Command name not set"); |
|
55 |
logger.warn("Command name not set"); //$NON-NLS-1$
|
|
56 | 56 |
} |
57 | 57 |
|
58 | 58 |
return null; |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/CreateHeterotypicSynonymHandler.java | ||
---|---|---|
52 | 52 |
editor.getUndoContext(), editor.getTaxon(), newSynonymName, editor); |
53 | 53 |
EditorUtil.executeOperation(operation); |
54 | 54 |
} catch (NotDefinedException e) { |
55 |
logger.warn("Command name not set"); |
|
55 |
logger.warn("Command name not set"); //$NON-NLS-1$
|
|
56 | 56 |
} |
57 | 57 |
|
58 | 58 |
return null; |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/CreateMisapplicationHandler.java | ||
---|---|---|
56 | 56 |
editor.getUndoContext(), editor.getTaxon(), concept, type, editor); |
57 | 57 |
EditorUtil.executeOperation(operation); |
58 | 58 |
} catch (NotDefinedException e) { |
59 |
logger.warn("Command name not set"); |
|
59 |
logger.warn("Command name not set"); //$NON-NLS-1$
|
|
60 | 60 |
} |
61 | 61 |
|
62 | 62 |
return null; |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/CreateSynonymInHomotypicalGroupHandler.java | ||
---|---|---|
73 | 73 |
editor.getTaxon(), group, newSynonymName, editor); |
74 | 74 |
EditorUtil.executeOperation(operation); |
75 | 75 |
} catch (NotDefinedException e) { |
76 |
logger.warn("Command name not set"); |
|
76 |
logger.warn("Command name not set"); //$NON-NLS-1$
|
|
77 | 77 |
} |
78 | 78 |
|
79 | 79 |
return null; |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/MoveSynonymToAnotherAcceptedTaxonHandler.java | ||
---|---|---|
18 | 18 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
19 | 19 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
20 | 20 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
21 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
21 | 22 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
22 | 23 |
import eu.etaxonomy.taxeditor.editor.TaxonEditorInput; |
23 | 24 |
import eu.etaxonomy.taxeditor.editor.name.operation.MoveSynonymToAnotherAcceptedTaxonOperation; |
... | ... | |
45 | 46 |
} |
46 | 47 |
|
47 | 48 |
if (!(input instanceof TaxonEditorInput)) { |
48 |
logger.error("Editor input is not TaxonEditorInput"); |
|
49 |
logger.error("Editor input is not TaxonEditorInput"); //$NON-NLS-1$
|
|
49 | 50 |
return null; |
50 | 51 |
} |
51 | 52 |
|
52 | 53 |
if (selection==null || !(selection.getFirstElement() instanceof Synonym)) { |
53 |
MessagingUtils.warningDialog("No selection", this, "No synonym selected");
|
|
54 |
logger.error("Selection does not contain a Synonym"); |
|
54 |
MessagingUtils.warningDialog(Messages.MoveSynonymToAnotherAcceptedTaxonHandler_NO_SELECTION, this, Messages.MoveSynonymToAnotherAcceptedTaxonHandler_NO_SELECTION_MESSAGE);
|
|
55 |
logger.error("Selection does not contain a Synonym"); //$NON-NLS-1$
|
|
55 | 56 |
return null; |
56 | 57 |
} |
57 | 58 |
|
... | ... | |
61 | 62 |
excludeTaxa.add(oldParent.getUuid()); |
62 | 63 |
|
63 | 64 |
|
64 |
TaxonNode newParentNode = TaxonNodeSelectionDialog.select(HandlerUtil.getActiveShell(event), editor.getConversationHolder(), "Select new accepted taxon", excludeTaxa, null, ((TaxonEditorInput)input).getTaxonNode().getClassification());
|
|
65 |
TaxonNode newParentNode = TaxonNodeSelectionDialog.select(HandlerUtil.getActiveShell(event), editor.getConversationHolder(), Messages.MoveSynonymToAnotherAcceptedTaxonHandler_SELECT_ACC_TAXON, excludeTaxa, null, ((TaxonEditorInput)input).getTaxonNode().getClassification());
|
|
65 | 66 |
|
66 | 67 |
if(newParentNode!=null){ |
67 |
MoveSynonymToAnotherAcceptedTaxonOperation operation = new MoveSynonymToAnotherAcceptedTaxonOperation("Change accepted Taxon of Synonym", EditorUtil.getUndoContext(),
|
|
68 |
MoveSynonymToAnotherAcceptedTaxonOperation operation = new MoveSynonymToAnotherAcceptedTaxonOperation(Messages.MoveSynonymToAnotherAcceptedTaxonHandler_CHANGE_ACC_TAXON, EditorUtil.getUndoContext(),
|
|
68 | 69 |
oldParent.getUuid(), synonym.getUuid(), newParentNode.getTaxon(), editor); |
69 | 70 |
|
70 | 71 |
AbstractUtility.executeOperation(operation); |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/NameEditorMenuPropertyTester.java | ||
---|---|---|
31 | 31 |
*/ |
32 | 32 |
public class NameEditorMenuPropertyTester extends PropertyTester { |
33 | 33 |
|
34 |
private static final String ACCEPTED = "isAcceptedTaxon"; |
|
35 |
private static final String SYNONYM = "isSynonym"; |
|
36 |
private static final String MISAPPLICATION = "isMisapplication"; |
|
37 |
private static final String TAXONBASE = "isTaxonBase"; |
|
38 |
private static final String CONCEPT = "isConceptRelation"; |
|
39 |
private static final String EMPTY_NAMES = "hasEmptyNames"; |
|
40 |
private static final String ACCEPTED_AND_NO_HOMOTYPIC_SYNONYMS = "isAcceptedAndHasNoHomotypicSynonyms"; |
|
41 |
private static final String NOT_HOMOTYPIC_SYNONYM_OF_ACCEPTED = "isNotHomotypicSynonymOfAcceptedTaxon"; |
|
42 |
private static final String SYNONYM_WITH_HOMOTYPIC_SYNONYMS = "isSynonymInHomotypicalGroupWithMoreSynonyms"; |
|
43 |
private static final String IS_ORPHANED = "isOrphaned"; |
|
34 |
private static final String ACCEPTED = "isAcceptedTaxon"; //$NON-NLS-1$
|
|
35 |
private static final String SYNONYM = "isSynonym"; //$NON-NLS-1$
|
|
36 |
private static final String MISAPPLICATION = "isMisapplication"; //$NON-NLS-1$
|
|
37 |
private static final String TAXONBASE = "isTaxonBase"; //$NON-NLS-1$
|
|
38 |
private static final String CONCEPT = "isConceptRelation"; //$NON-NLS-1$
|
|
39 |
private static final String EMPTY_NAMES = "hasEmptyNames"; //$NON-NLS-1$
|
|
40 |
private static final String ACCEPTED_AND_NO_HOMOTYPIC_SYNONYMS = "isAcceptedAndHasNoHomotypicSynonyms"; //$NON-NLS-1$
|
|
41 |
private static final String NOT_HOMOTYPIC_SYNONYM_OF_ACCEPTED = "isNotHomotypicSynonymOfAcceptedTaxon"; //$NON-NLS-1$
|
|
42 |
private static final String SYNONYM_WITH_HOMOTYPIC_SYNONYMS = "isSynonymInHomotypicalGroupWithMoreSynonyms"; //$NON-NLS-1$
|
|
43 |
private static final String IS_ORPHANED = "isOrphaned"; //$NON-NLS-1$
|
|
44 | 44 |
|
45 | 45 |
/** |
46 | 46 |
* <p>Constructor for NameEditorMenuPropertyTester.</p> |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/RemoveBasionymHandler.java | ||
---|---|---|
55 | 55 |
editor.getTaxon(), selectedTaxonBase, editor); |
56 | 56 |
EditorUtil.executeOperation(operation); |
57 | 57 |
} catch (NotDefinedException e) { |
58 |
logger.warn("Command name not set"); |
|
58 |
logger.warn("Command name not set"); //$NON-NLS-1$
|
|
59 | 59 |
} |
60 | 60 |
|
61 | 61 |
return null; |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/SetBasionymHandler.java | ||
---|---|---|
55 | 55 |
editor.getTaxon(), selectedTaxonBase, editor); |
56 | 56 |
EditorUtil.executeOperation(operation); |
57 | 57 |
} catch (NotDefinedException e) { |
58 |
logger.warn("Command name not set"); |
|
58 |
logger.warn("Command name not set"); //$NON-NLS-1$
|
|
59 | 59 |
} |
60 | 60 |
|
61 | 61 |
return null; |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/SwapSynonymAndAcceptedHandler.java | ||
---|---|---|
23 | 23 |
import eu.etaxonomy.cdm.model.taxon.Synonym; |
24 | 24 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
25 | 25 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
26 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
26 | 27 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
27 | 28 |
import eu.etaxonomy.taxeditor.editor.name.operation.SwapSynonymAndAcceptedOperation; |
28 | 29 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
... | ... | |
70 | 71 |
EditorUtil.executeOperation(operation); |
71 | 72 |
|
72 | 73 |
} catch (NotDefinedException e) { |
73 |
logger.warn("Command name not set"); |
|
74 |
logger.warn("Command name not set"); //$NON-NLS-1$
|
|
74 | 75 |
} |
75 | 76 |
|
76 | 77 |
return null; |
... | ... | |
109 | 110 |
EditorUtil.openTaxonBase(taxon.getUuid()); |
110 | 111 |
|
111 | 112 |
} catch (Exception e) { |
112 |
MessagingUtils.warningDialog("Could not open editor for taxon", this, e.getMessage());
|
|
113 |
MessagingUtils.warningDialog(Messages.SwapSynonymAndAcceptedHandler_COULD_NOT_OPEN, this, e.getMessage());
|
|
113 | 114 |
} |
114 | 115 |
|
115 | 116 |
} |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeConceptRelationshipTypeOperation.java | ||
---|---|---|
20 | 20 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
21 | 21 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship; |
22 | 22 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType; |
23 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
23 | 24 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
24 | 25 |
import eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation; |
25 | 26 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
... | ... | |
59 | 60 |
Set<TaxonRelationship> taxonRelationships = taxon.getTaxonRelations(relatedTaxon); |
60 | 61 |
|
61 | 62 |
if(taxonRelationships.size() > 1){ |
62 |
MessagingUtils.warningDialog("Multiple relations between taxa", this, "There are multiple relations between the " + |
|
63 |
"accepted and the related taxon. This case is not handled by the software yet"); |
|
63 |
MessagingUtils.warningDialog(ChangeConceptToSynonymOperation.CHANGE_CONCEPT_TO_SYNONYM_OPERATION_MULTI_REPS, this, ChangeConceptToSynonymOperation.CHANGE_CONCEPT_TO_SYNONYM_OPERATION_MULTI_REPS_MESSAGE); |
|
64 | 64 |
return; |
65 | 65 |
} |
66 | 66 |
|
... | ... | |
108 | 108 |
public IStatus undo(IProgressMonitor monitor, IAdaptable info) |
109 | 109 |
throws ExecutionException { |
110 | 110 |
// see FIXME in execute() |
111 |
MessagingUtils.warn(this.getClass(), "Not implemented yet. See developer documentation for details");
|
|
111 |
MessagingUtils.warn(this.getClass(), Messages.ChangeConceptRelationshipTypeOperation_NOT_IMPLEMENTED);
|
|
112 | 112 |
return null; |
113 | 113 |
} |
114 | 114 |
} |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeConceptToSynonymOperation.java | ||
---|---|---|
25 | 25 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
26 | 26 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship; |
27 | 27 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType; |
28 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
28 | 29 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
29 | 30 |
import eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation; |
30 | 31 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
... | ... | |
41 | 42 |
public class ChangeConceptToSynonymOperation extends |
42 | 43 |
AbstractPostTaxonOperation { |
43 | 44 |
|
44 |
private Taxon concept; |
|
45 |
protected static final String CHANGE_CONCEPT_TO_SYNONYM_OPERATION_MULTI_REPS_MESSAGE = Messages.ChangeConceptToSynonymOperation_MULTI_REPS_MESSAGE; |
|
46 |
protected static final String CHANGE_CONCEPT_TO_SYNONYM_OPERATION_MULTI_REPS = Messages.ChangeConceptToSynonymOperation_MULTI_REPS; |
|
47 |
|
|
48 |
private Taxon concept; |
|
45 | 49 |
|
46 | 50 |
private HomotypicalGroup homotypicalGroup; |
47 | 51 |
|
... | ... | |
66 | 70 |
Set<TaxonRelationship> taxonRelationships = taxon.getTaxonRelations(concept); |
67 | 71 |
|
68 | 72 |
if(taxonRelationships.size() > 1){ |
69 |
MessagingUtils.warningDialog("Multiple relations between taxa", this, "There are multiple relations between the " + |
|
70 |
"accepted and the related taxon. This case is not handled by the software yet"); |
|
73 |
MessagingUtils.warningDialog(CHANGE_CONCEPT_TO_SYNONYM_OPERATION_MULTI_REPS, this, CHANGE_CONCEPT_TO_SYNONYM_OPERATION_MULTI_REPS_MESSAGE); |
|
71 | 74 |
return; |
72 | 75 |
} |
73 | 76 |
|
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeHomotypicGroupOperation.java | ||
---|---|---|
62 | 62 |
this.synonym = synonym; |
63 | 63 |
if(synonym == null){ |
64 | 64 |
throw new IllegalArgumentException( |
65 |
"A null synonym was provided."); |
|
65 |
"A null synonym was provided."); //$NON-NLS-1$
|
|
66 | 66 |
} |
67 | 67 |
|
68 | 68 |
this.oldHomotypicalGroup = synonym.getHomotypicGroup(); |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeSynonymToAcceptedTaxonOperation.java | ||
---|---|---|
25 | 25 |
import eu.etaxonomy.cdm.model.taxon.Synonym; |
26 | 26 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
27 | 27 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
28 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
28 | 29 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
29 | 30 |
import eu.etaxonomy.taxeditor.operation.AbstractPersistentPostOperation; |
30 | 31 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
... | ... | |
89 | 90 |
parentNode.getUuid(), |
90 | 91 |
true).getCdmEntity(); |
91 | 92 |
} catch (HomotypicalGroupChangeException e) { |
92 |
MessagingUtils.warningDialog("Operation may lead to inconsistent data", getClass(), e.getMessage());
|
|
93 |
MessagingUtils.warningDialog(Messages.ChangeSynonymToAcceptedTaxonOperation_INCONSISTENT_DATA, getClass(), e.getMessage());
|
|
93 | 94 |
return postExecute(null); |
94 | 95 |
} |
95 | 96 |
monitor.worked(20); |
... | ... | |
124 | 125 |
throws ExecutionException { |
125 | 126 |
|
126 | 127 |
// TODO implement - biggest problem is that any window open for new taxon must be closed first |
127 |
MessagingUtils.warn(this.getClass(), "Not yet implemented");
|
|
128 |
MessagingUtils.warn(this.getClass(), Messages.ChangeSynonymToAcceptedTaxonOperation_NOT_IMPLEMENTED);
|
|
128 | 129 |
|
129 | 130 |
return postExecute(element); |
130 | 131 |
} |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/MoveSynonymToAnotherAcceptedTaxonOperation.java | ||
---|---|---|
48 | 48 |
|
49 | 49 |
super(label, undoContext, taxon, postOperationEnabled); |
50 | 50 |
List<String> propertyPaths = new ArrayList<String>(); |
51 |
propertyPaths.add("synonymRelations"); |
|
51 |
propertyPaths.add("synonymRelations"); //$NON-NLS-1$
|
|
52 | 52 |
this.element = (Taxon) CdmStore.getService(ITaxonService.class).load(taxon.getUuid(),propertyPaths); |
53 | 53 |
this.oldTaxon = (Taxon) CdmStore.getService(ITaxonService.class).load(oldTaxonUUID); |
54 | 54 |
this.synonym = (Synonym) CdmStore.getService(ITaxonService.class).load(synonymUUID); |
55 | 55 |
if(synonym == null){ |
56 | 56 |
throw new IllegalArgumentException( |
57 |
"A null synonym was provided."); |
|
57 |
"A null synonym was provided."); //$NON-NLS-1$
|
|
58 | 58 |
} |
59 | 59 |
} |
60 | 60 |
|
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/SwapSynonymAndAcceptedOperation.java | ||
---|---|---|
20 | 20 |
import eu.etaxonomy.cdm.model.taxon.Synonym; |
21 | 21 |
import eu.etaxonomy.cdm.model.taxon.SynonymType; |
22 | 22 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
23 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
23 | 24 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
24 | 25 |
import eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation; |
25 | 26 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
... | ... | |
50 | 51 |
public SwapSynonymAndAcceptedOperation(String label, IUndoContext undoContext, |
51 | 52 |
Taxon taxon, Synonym synonym, IPostOperationEnabled postOperationEnabled, |
52 | 53 |
ICdmEntitySessionEnabled cdmEntitySessionEnabled) { |
53 |
super("Swap Synonym And Accepted Taxon Operation", undoContext, taxon, postOperationEnabled, cdmEntitySessionEnabled);
|
|
54 |
super(Messages.SwapSynonymAndAcceptedOperation_SWAP_SYN_ACC_TAXON, undoContext, taxon, postOperationEnabled, cdmEntitySessionEnabled);
|
|
54 | 55 |
|
55 | 56 |
this.synonym = synonym; |
56 | 57 |
} |
... | ... | |
81 | 82 |
@Override |
82 | 83 |
public IStatus undo(IProgressMonitor monitor, IAdaptable info) |
83 | 84 |
throws ExecutionException { |
84 |
MessagingUtils.error(this.getClass(), "Not yet implemented", null);
|
|
85 |
MessagingUtils.error(this.getClass(), Messages.SwapSynonymAndAcceptedOperation_NOT_IMPLEMENTED, null);
|
|
85 | 86 |
return null; |
86 | 87 |
} |
87 | 88 |
} |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/ChecklistEditor.java | ||
---|---|---|
62 | 62 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
63 | 63 |
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap; |
64 | 64 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
65 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
65 | 66 |
import eu.etaxonomy.taxeditor.editor.SimpleSelectionProvider; |
66 | 67 |
import eu.etaxonomy.taxeditor.editor.view.checklist.edit.DistributionEditingSupport; |
67 | 68 |
import eu.etaxonomy.taxeditor.editor.view.checklist.filter.ChecklistEditorFilter; |
... | ... | |
87 | 88 |
* @version 1.0 |
88 | 89 |
*/ |
89 | 90 |
public class ChecklistEditor extends EditorPart implements ISelectionListener, IPartContentHasFactualData, IConversationEnabled, |
90 |
IContextListener, IPartContentHasDetails, IDirtyMarkable{//, ICdmEntitySessionEnabled { |
|
91 |
|
|
92 |
private static final Logger logger = Logger.getLogger(ChecklistEditor.class); |
|
93 |
/** |
|
94 |
* Key used for storing Checklist Editor View |
|
95 |
*/ |
|
96 |
private static final String CHECKLIST_EDITOR_MEMENTO_KEY = "checklistEditor"; |
|
91 |
IContextListener, IPartContentHasDetails, IDirtyMarkable{ |
|
97 | 92 |
|
93 |
private static final String LOADING_TAXA = Messages.ChecklistEditor_LOAD_TAXA; |
|
94 |
private static final String UNKNOWN = Messages.ChecklistEditor_UNKNOWN; |
|
95 |
private static final String ELEMENT_COUNT = Messages.ChecklistEditor_ELEMENT_COUNT; |
|
96 |
public static final String TYPE_FILTER_TEXT = "type filter text"; //$NON-NLS-1$ |
|
98 | 97 |
|
98 |
private static final Logger logger = Logger.getLogger(ChecklistEditor.class); |
|
99 | 99 |
|
100 | 100 |
|
101 | 101 |
private class ChecklistJob extends Job { |
... | ... | |
121 | 121 |
@Override |
122 | 122 |
public IStatus run(final IProgressMonitor monitor) { |
123 | 123 |
try { |
124 |
logger.debug("Begin of eclipse core runtime Job to Retrieve datasources"); |
|
125 |
monitor.beginTask("Retrieving TaxonNodes", taxonNodes.size() + 1);
|
|
124 |
logger.debug("Begin of eclipse core runtime Job to Retrieve datasources"); //$NON-NLS-1$
|
|
125 |
monitor.beginTask(Messages.ChecklistEditor_RETRIEVE_NODES, taxonNodes.size() + 1);
|
|
126 | 126 |
|
127 | 127 |
final List<Taxon> taxonList = new ArrayList<Taxon>(); |
128 | 128 |
|
... | ... | |
153 | 153 |
* Constant |
154 | 154 |
* <code>ID="eu.etaxonomy.taxeditor.store.datasource"{trunked}</code> |
155 | 155 |
*/ |
156 |
public static String ID = "eu.etaxonomy.taxeditor.editor.view.checklist.ChecklistEditor"; |
|
156 |
public static String ID = "eu.etaxonomy.taxeditor.editor.view.checklist.ChecklistEditor"; //$NON-NLS-1$ |
Also available in: Unified diff
ref #4611 i18n for taxeditor.editor plugin