Project

General

Profile

Revision 68befb95

ID68befb95911cfa4aa7e5e66cd812e5a94602745a
Parent fe289550
Child 091afa8b

Added by Patrick Plitzner almost 2 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

  
53 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

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

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)