Revision 61c51c84
Added by Patrick Plitzner about 7 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/searchFilter/DerivateSearchComposite.java | ||
---|---|---|
20 | 20 |
import org.eclipse.ui.forms.widgets.FormToolkit; |
21 | 21 |
import org.eclipse.wb.swt.ResourceManager; |
22 | 22 |
|
23 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
24 |
|
|
23 | 25 |
/** |
24 | 26 |
* The widgets of the {@link DerivateSearchView}<br> |
25 | 27 |
* |
... | ... | |
54 | 56 |
setLayout(new GridLayout(7, false)); |
55 | 57 |
|
56 | 58 |
lblTaxon = new Label(this, SWT.NONE); |
57 |
lblTaxon.setText("Taxon");
|
|
59 |
lblTaxon.setText(Messages.DerivateSearchComposite_TAXON);
|
|
58 | 60 |
|
59 |
textTaxonName = formToolkit.createText(this, "New Text", SWT.BORDER);
|
|
61 |
textTaxonName = formToolkit.createText(this, Messages.DerivateSearchComposite_NEW_TEXT, SWT.BORDER);
|
|
60 | 62 |
textTaxonName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); |
61 | 63 |
textTaxonName.setEnabled(false); |
62 |
textTaxonName.setText(""); |
|
64 |
textTaxonName.setText(""); //$NON-NLS-1$
|
|
63 | 65 |
|
64 |
btnBrowseTaxa = formToolkit.createButton(this, "", SWT.NONE); |
|
66 |
btnBrowseTaxa = formToolkit.createButton(this, "", SWT.NONE); //$NON-NLS-1$
|
|
65 | 67 |
btnBrowseTaxa.setAlignment(SWT.RIGHT); |
66 |
btnBrowseTaxa.setImage(ResourceManager.getPluginImage("eu.etaxonomy.taxeditor.store", "icons/prj_obj.gif")); |
|
68 |
btnBrowseTaxa.setImage(ResourceManager.getPluginImage("eu.etaxonomy.taxeditor.store", "icons/prj_obj.gif")); //$NON-NLS-1$ //$NON-NLS-2$
|
|
67 | 69 |
|
68 |
btnClearTaxon = formToolkit.createButton(this, "", SWT.NONE); |
|
70 |
btnClearTaxon = formToolkit.createButton(this, "", SWT.NONE); //$NON-NLS-1$
|
|
69 | 71 |
btnClearTaxon.setAlignment(SWT.RIGHT); |
70 | 72 |
btnClearTaxon.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false, 1, 1)); |
71 |
btnClearTaxon.setImage(ResourceManager.getPluginImage("eu.etaxonomy.taxeditor.store", "icons/trash.gif")); |
|
73 |
btnClearTaxon.setImage(ResourceManager.getPluginImage("eu.etaxonomy.taxeditor.store", "icons/trash.gif")); //$NON-NLS-1$ //$NON-NLS-2$
|
|
72 | 74 |
|
73 | 75 |
lbltaxonAssignment = new Label(this, SWT.NONE); |
74 | 76 |
lbltaxonAssignment.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); |
75 |
lbltaxonAssignment.setText("Taxon assignment");
|
|
77 |
lbltaxonAssignment.setText(Messages.DerivateSearchComposite_TAXON_ASSIGNMENT);
|
|
76 | 78 |
|
77 | 79 |
comboTaxonAssignment = new Combo(this, SWT.NONE); |
78 |
comboTaxonAssignment.setItems(new String[] { "All", "Yes", "No" });
|
|
80 |
comboTaxonAssignment.setItems(new String[] { Messages.DerivateSearchComposite_ALL, Messages.DerivateSearchComposite_YES, Messages.DerivateSearchComposite_NO });
|
|
79 | 81 |
comboTaxonAssignment.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); |
80 | 82 |
formToolkit.adapt(comboTaxonAssignment); |
81 | 83 |
formToolkit.paintBordersFor(comboTaxonAssignment); |
... | ... | |
84 | 86 |
|
85 | 87 |
lblTitleCache = new Label(this, SWT.NONE); |
86 | 88 |
lblTitleCache.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); |
87 |
lblTitleCache.setText("Title Cache");
|
|
89 |
lblTitleCache.setText(Messages.DerivateSearchComposite_TITLE_CACHE);
|
|
88 | 90 |
|
89 |
searchField = formToolkit.createText(this, "New Text", SWT.BORDER); |
|
91 |
searchField = formToolkit.createText(this, "New Text", SWT.BORDER); //$NON-NLS-1$
|
|
90 | 92 |
searchField.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 3, 1)); |
91 |
searchField.setText(""); |
|
93 |
searchField.setText(""); //$NON-NLS-1$
|
|
92 | 94 |
|
93 | 95 |
lblDerivateType = new Label(this, SWT.NULL); |
94 | 96 |
lblDerivateType.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); |
95 |
lblDerivateType.setText("Derivative Type");
|
|
97 |
lblDerivateType.setText(Messages.DerivateSearchComposite_DERIVATE_TYPE);
|
|
96 | 98 |
|
97 | 99 |
comboDerivateType = new Combo(this, SWT.READ_ONLY); |
98 | 100 |
comboDerivateType.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1)); |
... | ... | |
100 | 102 |
|
101 | 103 |
buttonSearch = new Button(this, SWT.NONE); |
102 | 104 |
formToolkit.adapt(buttonSearch, true, true); |
103 |
buttonSearch.setText("Search");
|
|
105 |
buttonSearch.setText(Messages.DerivateSearchComposite_SEARCH);
|
|
104 | 106 |
|
105 | 107 |
} |
106 | 108 |
|
Also available in: Unified diff
ref #4611 i18n for taxeditor.editor plugin