Project

General

Profile

Download (1.26 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9

    
10
package eu.etaxonomy.taxeditor.bulkeditor.preference;
11

    
12
import org.eclipse.jface.preference.BooleanFieldEditor;
13

    
14
import eu.etaxonomy.cdm.model.common.MarkerType;
15
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
16
import eu.etaxonomy.taxeditor.preference.menu.FieldEditorPreferencePageE4;
17
import eu.etaxonomy.taxeditor.store.CdmStore;
18
import eu.etaxonomy.taxeditor.store.TermStore;
19

    
20
/**
21
 * @author p.ciardelli
22
 * @created 17.08.2009
23
 * @version 1.0
24
 */
25
public class BulkEditorMarkerPreferencePage extends FieldEditorPreferencePageE4 {
26

    
27

    
28
    @Override
29
    protected void createFieldEditors() {
30
        if(CdmStore.isActive()){
31
            for (final MarkerType markerType : TermStore.getTerms(MarkerType.class)) {
32
                addField(new BooleanFieldEditor(IPreferenceKeys.EDIT_MARKER_TYPE_PREFIX
33
                        + markerType.getClass().getName() + markerType.getLabel(), String.format("Edit '%s' markers",
34
                        markerType.getLabel()), getFieldEditorParent()));
35
            }
36
        }
37

    
38
    }
39
}
(2-2/2)