Project

General

Profile

Revision cdbebd17

IDcdbebd178285f5ceddf0698095065d1c50deb464
Parent 2350872a
Child 4fb8c394

Added by Patrick Plitzner almost 3 years ago

ref #6805 i18n

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/e4/DefinedTermDropAdapterE4.java
37 37
 */
38 38
public class DefinedTermDropAdapterE4 extends EditViewerDropAdapter {
39 39

  
40
    private static final String MOVE_FAILED = Messages.DefinedTermDropAdapterE4_MOVE_FAILED;
40
    public static final String MOVE_FAILED = Messages.DefinedTermDropAdapterE4_MOVE_FAILED;
41 41

  
42 42
    private static final String MOVE_FAILED_MESSAGE = Messages.DefinedTermDropAdapterE4_MOVE_FAILED_MESSAGE;
43 43

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/FeatureTreeDropAdapter.java
32 32
import eu.etaxonomy.cdm.model.description.FeatureTree;
33 33
import eu.etaxonomy.cdm.persistence.dto.TermDto;
34 34
import eu.etaxonomy.taxeditor.editor.definedterm.TermTransfer;
35
import eu.etaxonomy.taxeditor.editor.definedterm.e4.DefinedTermDropAdapterE4;
35 36
import eu.etaxonomy.taxeditor.featuretree.FeatureNodeTransfer;
36 37
import eu.etaxonomy.taxeditor.featuretree.e4.operation.AddFeatureOperation;
37 38
import eu.etaxonomy.taxeditor.l10n.Messages;
......
85 86
		}
86 87

  
87 88
        if(target==null){
88
            MessagingUtils.warningDialog(Messages.FeatureNodeDropAdapter_INVALID_TARGET, this, Messages.FeatureNodeDropAdapter_INVALID_TARGET_MESSAGE);
89
            MessagingUtils.warningDialog("", this, ""); //$NON-NLS-1$ //$NON-NLS-1$
89 90
            return false;
90 91
        }
91 92
		Collection<Object> droppedObjects = Collections.emptyList();
......
100 101
		// cannot drop a feature node onto itself
101 102
		for (Object droppedObject : droppedObjects) {
102 103
		    if(droppedObject==null){
103
		        MessagingUtils.warningDialog("Move failed", this.getClass(),
104
		                "Moving the feature node failed. Try saving before.");
104
		        MessagingUtils.warningDialog(DefinedTermDropAdapterE4.MOVE_FAILED, this.getClass(),
105
		                Messages.FeatureTreeDropAdapter_MOVE_FAILED_SAVE_MESSAGE);
105 106
		        return false;
106 107
		    }
107 108
			if (droppedObject.equals(target)) {
......
138 139
		                AbstractUtility.executeOperation(operation, sync);
139 140
		            }
140 141
		            else{
141
		                MessagingUtils.warningDialog("Move failed", this, "Can only move Features");
142
		                MessagingUtils.warningDialog(DefinedTermDropAdapterE4.MOVE_FAILED, this, Messages.FeatureTreeDropAdapter_ONLY_MOVE_FEATURES);
142 143
		            }
143 144
		    }
144 145
		    else if(droppedObject instanceof OntologyTermWrapper){
......
146 147
		        TermVocabulary vocabulary = wrapper.getTermVocabulary();
147 148
		        if(vocabulary==null){
148 149
		            vocabulary =  TermVocabularySelectionDialog.select(
149
		                    "Choose vocabulary for import", viewer.getControl().getShell(), null);
150
		                    Messages.FeatureTreeDropAdapter_CHOOSE_VOC, viewer.getControl().getShell(), null);
150 151
		            if(vocabulary instanceof OrderedTermVocabulary){
151
		                MessagingUtils.warningDialog("Import not possible", this,
152
		                        "The chosen vocabulary is an ordered vocabulary.\n"
153
		                                + "Importing into ordered vocabularies is currently not supported.");
152
		                MessagingUtils.warningDialog(Messages.FeatureTreeDropAdapter_IMPORT_NOT_POSSIBLE, this,
153
		                        Messages.FeatureTreeDropAdapter_ORDER_VOC_NOT_POSSIBLE);
154 154
		                return false;
155 155
		            }
156 156
		        }
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/Messages.java
410 410

  
411 411

  
412 412

  
413
    public static String FeatureNodeDropAdapter_INVALID_TARGET;
413
    public static String FeatureTreeDropAdapter_CHOOSE_VOC;
414 414

  
415 415

  
416
    public static String FeatureNodeDropAdapter_INVALID_TARGET_MESSAGE;
416
    public static String FeatureTreeDropAdapter_IMPORT_NOT_POSSIBLE;
417

  
418

  
419
    public static String FeatureTreeDropAdapter_MOVE_FAILED_SAVE_MESSAGE;
420

  
421

  
422
    public static String FeatureTreeDropAdapter_ONLY_MOVE_FEATURES;
423

  
424

  
425
    public static String FeatureTreeDropAdapter_ORDER_VOC_NOT_POSSIBLE;
417 426

  
418 427

  
419 428
    public static String FeatureTreeEditorComposite_ADD_FEATURE;
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages.properties
403 403
DistributionAdminPreferences_SELECT_STATUS=Select the status which should be available for distribution data.
404 404

  
405 405
ToggleableText_ToolTip_closed=Cache is created automatically from atomized data, cache protected against manual entries
406
ToggleableText_ToolTip_open=Cache can be edited manually, editing the atomized data has no effect on the cache (not recommended)
406
ToggleableText_ToolTip_open=Cache can be edited manually, editing the atomized data has no effect on the cache (not recommended)
407

  
408
FeatureTreeDropAdapter_CHOOSE_VOC=Choose vocabulary for import
409
FeatureTreeDropAdapter_IMPORT_NOT_POSSIBLE=Import not possible
410
FeatureTreeDropAdapter_MOVE_FAILED_SAVE_MESSAGE=Moving the feature node failed. Try saving before.
411
FeatureTreeDropAdapter_ONLY_MOVE_FEATURES=Can only move features to feature trees
412
FeatureTreeDropAdapter_ORDER_VOC_NOT_POSSIBLE=The chosen vocabulary is an ordered vocabulary.\nImporting into ordered vocabularies is currently not supported.
413

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages_de.properties
404 404

  
405 405
ToggleableText_ToolTip_closed=Der Cache wird automatisch aus den atomisierten Daten erstellt und ist gegen manuelle Eingabe gesch?tzt
406 406
ToggleableText_ToolTip_open=Der Cache kann manuell bearbeitet werden, ?nderungen an den atomisierten Daten haben keinen Einflu? auf den Cache (nicht empfohlen)
407

  
408
FeatureTreeDropAdapter_CHOOSE_VOC=Vokabular f?r den Import w?hlen
409
FeatureTreeDropAdapter_IMPORT_NOT_POSSIBLE=Import nicht m?glich
410
FeatureTreeDropAdapter_MOVE_FAILED_SAVE_MESSAGE=Verschieben des Merkmalsknoten fehlgeschlagen. Versuchen Sie vorher zu speichern.
411
FeatureTreeDropAdapter_ONLY_MOVE_FEATURES=Es ist nur m?glich, Merkmale auf Merkmalsb?ume zu verschieben.
412
FeatureTreeDropAdapter_ORDER_VOC_NOT_POSSIBLE=Das gew?hlte Vokabular ist ein geordnetes Vokabular.\nImporte in geordnete Vokabulare sind aktuell nich unterst?tzt.
413

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)