Revision 8481f952
Added by Andreas Müller almost 4 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/DescriptiveContentProvider.java | ||
---|---|---|
32 | 32 |
* |
33 | 33 |
* @author p.ciardelli |
34 | 34 |
* @author n.hoffmann |
35 |
* @version $Id: $ |
|
36 | 35 |
*/ |
37 | 36 |
public class DescriptiveContentProvider implements ITreeContentProvider { |
38 | 37 |
|
... | ... | |
54 | 53 |
this.showOnlyIndividualAssociations = showOnlyIndividualAssociations; |
55 | 54 |
} |
56 | 55 |
|
57 |
/* (non-Javadoc) |
|
58 |
* @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object) |
|
59 |
*/ |
|
60 |
/** {@inheritDoc} */ |
|
61 | 56 |
@Override |
62 | 57 |
public Object[] getChildren(Object parentElement) { |
63 | 58 |
if(parentElement instanceof TreeNode){ |
... | ... | |
159 | 154 |
return featureNodeContainerCache.get(description); |
160 | 155 |
} |
161 | 156 |
|
162 |
/** {@inheritDoc} */ |
|
163 | 157 |
@Override |
164 | 158 |
public boolean hasChildren(Object element) { |
165 | 159 |
if (element instanceof DescriptionBase<?>){ |
... | ... | |
235 | 229 |
return resultDescriptions; |
236 | 230 |
} |
237 | 231 |
|
238 |
/** {@inheritDoc} */ |
|
239 | 232 |
@Override |
240 | 233 |
public Object getParent(Object element) { |
241 | 234 |
if (element instanceof FeatureNodeContainer){ |
... | ... | |
244 | 237 |
return null; |
245 | 238 |
} |
246 | 239 |
|
247 |
/** {@inheritDoc} */ |
|
248 | 240 |
@Override |
249 | 241 |
public Object[] getElements(Object inputElement) { |
250 | 242 |
return getChildren(inputElement); |
... | ... | |
258 | 250 |
featureNodeContainerCache.clear(); |
259 | 251 |
} |
260 | 252 |
|
261 |
/** {@inheritDoc} */ |
|
262 | 253 |
@Override |
263 | 254 |
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {} |
264 | 255 |
|
Also available in: Unified diff
cleanup