BGBM BDI Projects
/
taxeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ref #6774 Adapt to service layer change
[taxeditor.git]
/
eu.etaxonomy.taxeditor.store
/
src
/
main
/
java
/
eu
/
etaxonomy
/
taxeditor
/
featuretree
/
FeatureTreeContentProvider.java
diff --git
a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/FeatureTreeContentProvider.java
b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/FeatureTreeContentProvider.java
index f2b24eed3d57b8abba3c2f239435c1c5aa8e3e1f..2b78666f0ec76417fefb6b3629dccec3eb06ceae 100644
(file)
--- a/
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/FeatureTreeContentProvider.java
+++ b/
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/FeatureTreeContentProvider.java
@@
-14,8
+14,8
@@
import java.util.List;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.Viewer;
-import eu.etaxonomy.cdm.model.
description
.FeatureNode;
-import eu.etaxonomy.cdm.model.
description
.FeatureTree;
+import eu.etaxonomy.cdm.model.
term
.FeatureNode;
+import eu.etaxonomy.cdm.model.
term
.FeatureTree;
/**
* <p>FeatureTreeContentProvider class.</p>
/**
* <p>FeatureTreeContentProvider class.</p>
@@
-72,6
+72,9
@@
public class FeatureTreeContentProvider implements ITreeContentProvider {
/** {@inheritDoc} */
@Override
public Object getParent(Object element) {
/** {@inheritDoc} */
@Override
public Object getParent(Object element) {
+ if(element instanceof FeatureNode){
+ return ((FeatureNode) element).getParent();
+ }
return null;
}
return null;
}