Browse Source

fix wrongly shown signals and streams in table

feature/unified_window
Eyck Jentzsch 9 months ago
parent
commit
ef1f2a758a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/provider/TxDbContentProvider.java

+ 3
- 3
plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/provider/TxDbContentProvider.java View File

@ -68,7 +68,9 @@ public class TxDbContentProvider implements ITreeContentProvider {
*/
@Override
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>(){
@Override
public boolean apply(IHierNode arg0) {
@ -82,8 +84,6 @@ public class TxDbContentProvider implements ITreeContentProvider {
return res.toArray();
}else if(inputElement instanceof List<?>){
return ((List<?>)inputElement).toArray();
}else if(inputElement instanceof IWaveformDb){
return new Object[]{};
} else
return null;
}

Loading…
Cancel
Save