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/media/MediaRepresentationSection.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
*/
......
39 39
			ICdmFormElement parentElement, int style) {
40 40
		super(cdmFormFactory, conversation, parentElement, "Media Representation", style);
41 41
	}
42
	
42

  
43 43
	/** {@inheritDoc} */
44 44
	@Override
45 45
	public void addElement(MediaRepresentation element) {
......
77 77
		getEntity().removeRepresentation(element);
78 78
	}
79 79

  
80
    /**
81
     * {@inheritDoc}
82
     */
83
    @Override
84
    public MediaRepresentation addExisting() {
85
        return null;
86
    }
87

  
88
    /**
89
     * {@inheritDoc}
90
     */
91
    @Override
92
    public boolean allowAddExisting() {
93
        return false;
94
    }
95

  
80 96

  
81 97
}

Also available in: Unified diff