Project

General

Profile

« Previous | Next » 

Revision 2f9887be

Added by Katja Luther over 5 years ago

ref #7163: restructure preferences and externalize strings in preferences

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/DefaultFeatureTreePreferenecs.java
27 27
import eu.etaxonomy.cdm.model.description.FeatureTree;
28 28
import eu.etaxonomy.taxeditor.featuretree.FeatureTreeContentProvider;
29 29
import eu.etaxonomy.taxeditor.featuretree.FeatureTreeLabelProvider;
30
import eu.etaxonomy.taxeditor.l10n.Messages;
30 31
import eu.etaxonomy.taxeditor.model.MessagingUtils;
31 32
import eu.etaxonomy.taxeditor.preference.menu.CdmPreferencePage;
32 33
import eu.etaxonomy.taxeditor.store.CdmStore;
......
63 64

  
64 65
	private void createTextTreeSelection(Composite parent){
65 66
		final CLabel label = new CLabel(parent, SWT.NONE);
66
		label.setText("Default Feature Tree to be used for textual descriptions");
67
		label.setText(Messages.DefaultFeatureTreePreferenecs_0);
67 68

  
68 69
		final ListViewer viewer = new ListViewer(parent);
69 70
		viewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
......
94 95

  
95 96
	private void createStructureTreeSelection(Composite parent){
96 97
		final CLabel label = new CLabel(parent, SWT.NONE);
97
		label.setText("Default Feature Tree to be used for structured descriptions");
98
		label.setText(Messages.DefaultFeatureTreePreferenecs_1);
98 99

  
99 100
		final ListViewer viewer = new ListViewer(parent);
100 101
		viewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
......
126 127
	/** {@inheritDoc} */
127 128
	@Override
128 129
	public boolean performOk() {
129
		String defaultFeatureTreeForTextualDescriptionUuid = "";
130
		String defaultFeatureTreeForStructuredDescriptionUuid = "";
130
		String defaultFeatureTreeForTextualDescriptionUuid = ""; //$NON-NLS-1$
131
		String defaultFeatureTreeForStructuredDescriptionUuid = ""; //$NON-NLS-1$
131 132

  
132 133
		if(defaultFeatureTreeForTextualDescription != null){
133 134
			defaultFeatureTreeForTextualDescriptionUuid = defaultFeatureTreeForTextualDescription.getUuid().toString();

Also available in: Unified diff