Project

General

Profile

« Previous | Next » 

Revision 0881e734

Added by Katja Luther over 3 years ago

fix #9168: code cleaníng

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/DescriptiveContentProvider.java
147 147
	}
148 148

  
149 149
	private FeatureNodeContainerTree getContainerTreeForDesription(DescriptionBase<?> description){
150
		if(! featureNodeContainerCache.containsKey(description)){
151
			FeatureNodeContainerTree containerTree = new FeatureNodeContainerTree(description, getFeatureTree(description));
152
			featureNodeContainerCache.put(description, containerTree);
153
		}
154
		return featureNodeContainerCache.get(description);
150
//		if(! featureNodeContainerCache.containsKey(description)){
151
//			FeatureNodeContainerTree containerTree = new FeatureNodeContainerTree(description, getFeatureTree(description));
152
//			featureNodeContainerCache.put(description, containerTree);
153
//		}
154
//		return featureNodeContainerCache.get(description);
155
		return new FeatureNodeContainerTree(description, getFeatureTree(description));
155 156
	}
156 157

  
157 158
	@Override
......
179 180

  
180 181
	        TermTree<?> featureTree = null;
181 182

  
183
	        if (description instanceof TaxonNameDescription){
184

  
185
                return PreferencesUtil.getPreferredFeatureTreeForNameDescription(false);
186
            }
182 187
	        // TODO change this to the feature tree associated with this taxon
183 188
	        // description
184 189
	        if (description.hasStructuredData()) {
......
191 196

  
192 197
	        if (featureTree == null) {
193 198
	            featureTree = TermEditorInput.getDefaultFeatureTree();
194
	                    }
195
	        if (description instanceof TaxonNameDescription){
196

  
197
	            featureTree = TermEditorInput.getDefaultNameFeatureTree();
198 199
	        }
199 200

  
201

  
200 202
	        return featureTree;
201 203

  
202 204

  

Also available in: Unified diff