Project

General

Profile

« Previous | Next » 

Revision 68befb95

Added by Patrick Plitzner over 5 years ago

ref #7502 Add abbrev (nomencl.) cache for references

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/ReferenceEditorInput.java
38 38

  
39 39
	public static final String ID = "bulkeditor.input.reference";
40 40

  
41
	private static final String PROPERTY_NOMENCLATURAL_CACHE = "Nomencl. Cache";
42

  
41 43
	private static ReferenceEditorInput instance;
42 44

  
43 45
	public static String getID() {
......
47 49
    @Override
48 50
    protected List<String> getPropertyKeys_internal() {
49 51
        List<String> propertyKeysInternal = new ArrayList<>();
52
        propertyKeysInternal.add(PROPERTY_NOMENCLATURAL_CACHE);
50 53
        return propertyKeysInternal;
51 54
    }
52 55

  
56
    @Override
57
    public Object getPropertyValue(Reference cdmBase, String property) {
58
        if(property.equals(PROPERTY_NOMENCLATURAL_CACHE)){
59
            return cdmBase.getAbbrevTitleCache();
60
        }
61
        return super.getPropertyValue(cdmBase, property);
62
    }
63

  
53 64
    @Override
54 65
    public String getName() {
55 66
		return BulkEditorInputType.REFERENCE.label;

Also available in: Unified diff