Project

General

Profile

« Previous | Next » 

Revision d436d97b

Added by Patrick Plitzner about 5 years ago

code cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/TypeDesignationSection.java
44 44
import eu.etaxonomy.taxeditor.ui.section.name.type.CloneTypeWizard;
45 45

  
46 46
/**
47
 * <p>TypeDesignationSection class.</p>
48
 *
49 47
 * @author n.hoffmann
50 48
 * @created May 17, 2010
51 49
 */
......
53 51

  
54 52
	private TaxonBase taxonBase;
55 53

  
56
	/**
57
	 * <p>Constructor for TypeDesignationSection.</p>
58
	 *
59
	 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
60
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
61
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
62
	 * @param style a int.
63
	 */
64 54
	public TypeDesignationSection(CdmFormFactory formFactory, ConversationHolder conversation,
65 55
			ICdmFormElement parentElement, int style) {
66 56
		super(formFactory, conversation, parentElement, "Type Designations", style);
......
107 97
        toolBarManager.add(addAction);
108 98
	}
109 99

  
110
	/** {@inheritDoc} */
111 100
	@Override
112 101
	public void addElement(TypeDesignationBase element) {
113 102
		getEntity().addTypeDesignation(element, PreferencesUtil.getBooleanValue(IPreferenceKeys.ADD_TYPES_TO_ALL_NAMES));
114 103
	}
115 104

  
116
	/** {@inheritDoc} */
117 105
	@Override
118 106
	public TypeDesignationBase createNewElement() {
119 107
		if(isSpecimenType()){
......
123 111
		}
124 112
	}
125 113

  
126
	/** {@inheritDoc} */
127 114
	@Override
128 115
	public Collection<TypeDesignationBase> getCollection(TaxonName entity) {
129 116
		if (entity == null){
......
137 124
        return new TypeDesignationComparator();
138 125
	}
139 126

  
140
	/** {@inheritDoc} */
141 127
	@Override
142 128
	public String getEmptyString() {
143 129
		return "No type designations yet.";
144 130
	}
145 131

  
146
	/** {@inheritDoc} */
147 132
	@Override
148 133
	protected String getTooltipString() {
149 134
		return "Add a type designation";
150 135
	}
151 136

  
152
	/** {@inheritDoc} */
153 137
	@Override
154 138
	public void removeElement(TypeDesignationBase element) {
155 139
		boolean removeTypeDesignationFromAllTypifiedNames = PreferencesUtil.getBooleanValue(IPreferenceKeys.ADD_TYPES_TO_ALL_NAMES);
......
157 141
		CdmStore.getService(INameService.class).deleteTypeDesignation(entity.getUuid(), element.getUuid());
158 142
	}
159 143

  
160
	/** {@inheritDoc} */
161 144
	@Override
162 145
    public void setTaxonBase(TaxonBase entity) {
163 146
		this.taxonBase = entity;
......
178 161
		return taxonBase;
179 162
	}
180 163

  
181
    /**
182
     * {@inheritDoc}
183
     */
184 164
    @Override
185 165
    public TypeDesignationBase addExisting() {
186 166
        return null;
187 167
    }
188 168

  
189
    /**
190
     * {@inheritDoc}
191
     */
192 169
    @Override
193 170
    public boolean allowAddExisting() {
194 171
        return false;

Also available in: Unified diff