Project

General

Profile

« Previous | Next » 

Revision 3177a949

Added by Patrick Plitzner over 9 years ago

  • activated filter in factual data view for displaying only IndividualsAssociations

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/DescriptiveContentProvider.java
67 67
			    DescriptionBase<?> description = (DescriptionBase<?>) parentElement;
68 68

  
69 69
				FeatureNodeContainerTree containerTree = getContainerTreeForDesription(description);
70

  
71
				if(getChildren(containerTree).length>=0){
72
				    return containerTree.getRoot().getChildren().toArray();
73
				}
70
				List<FeatureNodeContainer> children = containerTree.getRoot().getChildren();
71
				//filter out containers with no children
72
				List<FeatureNodeContainer> childrenWithChildren = new ArrayList<FeatureNodeContainer>();
73
				for (FeatureNodeContainer featureNodeContainer : children) {
74
				    if(getChildren(featureNodeContainer).length>0){
75
				        childrenWithChildren.add(featureNodeContainer);
76
				    }
77
                }
78
				return childrenWithChildren.toArray();
74 79
			}
75 80
		}
76 81
		else if (parentElement instanceof FeatureNodeContainer){

Also available in: Unified diff