Project

General

Profile

« Previous | Next » 

Revision f5b66699

Added by Patrick Plitzner over 7 years ago

ref #6333 Add generic support for entity collection sections to allow
adding existing entities

  • this is done by two abstract methods allowAddExisting() and addExisting()

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/SourceCollectionDetailSection.java
1 1
/**
2 2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
57 57
	/** {@inheritDoc} */
58 58
	@Override
59 59
	public IdentifiableSource createNewElement() {
60
		return IdentifiableSource.NewInstance(OriginalSourceType.PrimaryTaxonomicSource);		
60
		return IdentifiableSource.NewInstance(OriginalSourceType.PrimaryTaxonomicSource);
61 61
	}
62 62

  
63 63
	/* (non-Javadoc)
......
96 96
		return "Add source";
97 97
	}
98 98

  
99
    /**
100
     * {@inheritDoc}
101
     */
102
    @Override
103
    public IdentifiableSource addExisting() {
104
        return null;
105
    }
106

  
107
    /**
108
     * {@inheritDoc}
109
     */
110
    @Override
111
    public boolean allowAddExisting() {
112
        return false;
113
    }
114

  
99 115
}

Also available in: Unified diff