Project

General

Profile

« Previous | Next » 

Revision c42c4e41

Added by Katja Luther over 3 years ago

fix #7954: add tootltip to cache fields in editor to clearify the meaning of the lock

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/Messages.java
657 657

  
658 658
    public static String VokabularyAdminPreferences_SELECT_VOCABULARY_TEXT;
659 659

  
660

  
660
    public static String ToggleableText_ToolTip_closed;
661
    public static String ToggleableText_ToolTip_open;
661 662

  
662 663

  
663 664

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages.properties
396 396
DatabasePreferncesPage_Show_MediaView=Show Media View
397 397
DatabasePreferncesPage_Show_ChecklistPerspective=Show Checklist Perspective as default Perspective
398 398
DatabasePreferncesPage_Show_TaxonNodeWizard=Taxon Nodes can be edited in Wizard
399
DistributionAdminPreferences_SELECT_STATUS=Select the status which should be available for distribution data.
399
DistributionAdminPreferences_SELECT_STATUS=Select the status which should be available for distribution data.
400

  
401
ToggleableText_ToolTip_closed=Cache is created automatically from atomized data, cache protected against manual entries
402
ToggleableText_ToolTip_open=Cache can be edited manually (not recommended)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages_de.properties
396 396
DatabasePreferncesPage_Show_ChecklistPerspective=Zeige Checklist Perspektive als Default Perspektive an
397 397
DatabasePreferncesPage_Show_TaxonNodeWizard=Wizard zum Editieren der Taxon Knoten anzeigen
398 398
DistributionAdminPreferences_SELECT_STATUS=W?hlen Sie den Status, der f?r die Verbreitungsdaten verf?gbar sein soll.
399

  
400
ToggleableText_ToolTip_closed=Der Cache wird automatisch aus den atomisierten Daten erstellt und ist gegen manuelle Eingabe gesch?tzt
401
ToggleableText_ToolTip_open=Der Cache kann manuell bearbeitet werden, ?nderungen an den atomisierten Daten haben keinen Einflu? auf den Cache
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/ToggleableTextElement.java
25 25
import org.eclipse.swt.widgets.Label;
26 26
import org.eclipse.swt.widgets.Text;
27 27

  
28
import eu.etaxonomy.taxeditor.l10n.Messages;
28 29
import eu.etaxonomy.taxeditor.model.AbstractUtility;
29 30
import eu.etaxonomy.taxeditor.model.ImageResources;
30 31
import eu.etaxonomy.taxeditor.preference.Resources;
......
70 71
		text_cache.addModifyListener(this);
71 72
		text_cache.setLayoutData(LayoutConstants.FILL());
72 73

  
74

  
73 75
		// Don't accept carriage returns as input
74 76
		text_cache.addKeyListener( new KeyAdapter(){
75 77
			@Override
......
110 112
	private void setState(boolean state) {
111 113
	    if(state){
112 114
	        btnToggleProtectTitleCache.setImage(ImageResources.getImage(ImageResources.LOCK_OPEN_ICON));
115
	        btnToggleProtectTitleCache.setToolTipText(Messages.ToggleableText_ToolTip_open);
113 116
	    }
114 117
	    else{
115 118
	        btnToggleProtectTitleCache.setImage(ImageResources.getImage(ImageResources.LOCK_ICON));
119
	        btnToggleProtectTitleCache.setToolTipText(Messages.ToggleableText_ToolTip_closed);
116 120
	    }
117 121
	   setEnabled(state);
118 122
		this.state = state;

Also available in: Unified diff