fix wrongly shown signals and streams in table
This commit is contained in:
parent
3e6d5bd33e
commit
ef1f2a758a
|
@ -68,7 +68,9 @@ public class TxDbContentProvider implements ITreeContentProvider {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Object[] getElements(Object inputElement) {
|
public Object[] getElements(Object inputElement) {
|
||||||
if(inputElement instanceof IHierNode){
|
if(inputElement instanceof IWaveformDb){
|
||||||
|
return new Object[]{};
|
||||||
|
}else if(inputElement instanceof IHierNode){
|
||||||
Collection<IHierNode> res = Collections2.filter(((IHierNode)inputElement).getChildNodes(), new Predicate<IHierNode>(){
|
Collection<IHierNode> res = Collections2.filter(((IHierNode)inputElement).getChildNodes(), new Predicate<IHierNode>(){
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(IHierNode arg0) {
|
public boolean apply(IHierNode arg0) {
|
||||||
|
@ -82,8 +84,6 @@ public class TxDbContentProvider implements ITreeContentProvider {
|
||||||
return res.toArray();
|
return res.toArray();
|
||||||
}else if(inputElement instanceof List<?>){
|
}else if(inputElement instanceof List<?>){
|
||||||
return ((List<?>)inputElement).toArray();
|
return ((List<?>)inputElement).toArray();
|
||||||
}else if(inputElement instanceof IWaveformDb){
|
|
||||||
return new Object[]{};
|
|
||||||
} else
|
} else
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue