Project

General

Profile

« Previous | Next » 

Revision f563ed61

Added by Patrick Plitzner almost 6 years ago

ref #4611 i18n feature tree editor

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/FeatureTreeSelectionDialog.java
23 23
import eu.etaxonomy.cdm.api.service.IFeatureTreeService;
24 24
import eu.etaxonomy.cdm.model.description.FeatureTree;
25 25
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache;
26
import eu.etaxonomy.taxeditor.l10n.Messages;
26 27
import eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard;
27 28
import eu.etaxonomy.taxeditor.store.CdmStore;
28 29

  
......
37 38
	public static FeatureTree select(Shell shell,
38 39
	        FeatureTree featureTree) {
39 40
		FeatureTreeSelectionDialog dialog = new FeatureTreeSelectionDialog(shell,
40
				"Choose a feature tree", false, featureTree);
41
				Messages.FeatureTreeSelectionDialog_CHOOSE_TREE, false, featureTree);
41 42
		return getSelectionFromDialog(dialog);
42 43
	}
43 44

  
......
63 64
		model.clear();
64 65
		for(FeatureTree featureTree : featureTrees){
65 66
			UuidAndTitleCache<FeatureTree> element = new UuidAndTitleCache<FeatureTree>(FeatureTree.class, featureTree.getUuid(),featureTree.getId(), featureTree.getTitleCache());
66
			if(pattern == null || element.getTitleCache().matches("(?i)"+pattern + ".*")) {
67
			if(pattern == null || element.getTitleCache().matches("(?i)"+pattern + ".*")) { //$NON-NLS-1$ //$NON-NLS-2$
67 68
                model.add(element);
68 69
            }
69 70
		}
......
76 77

  
77 78
            @Override
78 79
            public void widgetSelected(SelectionEvent e) {
79
                InputDialog dialog = new InputDialog(getShell(), "Feature tree label", "Enter label for feature tree", null, null);
80
                InputDialog dialog = new InputDialog(getShell(), Messages.FeatureTreeSelectionDialog_TREE_LABEL, Messages.FeatureTreeSelectionDialog_ENTER_LABEL, null, null);
80 81
                if (dialog.open() == Window.OK) {
81 82
                    // User clicked OK; update the label with the input
82 83
                    FeatureTree tree = FeatureTree.NewInstance();
......
91 92

  
92 93
	@Override
93 94
	protected String[] getNewWizardText() {
94
		return new String[]{ "New Feature tree"};
95
		return new String[]{ Messages.FeatureTreeSelectionDialog_NEW_TREE};
95 96
	}
96 97

  
97 98
	@Override

Also available in: Unified diff