Fixed #19 - Fixed sync of streamlist
This commit is contained in:
parent
51d9d7e25c
commit
44ac32359f
|
@ -201,10 +201,14 @@ public class DesignBrowser {
|
||||||
ISelection selection=event.getSelection();
|
ISelection selection=event.getSelection();
|
||||||
if( selection instanceof IStructuredSelection) {
|
if( selection instanceof IStructuredSelection) {
|
||||||
Object object= ((IStructuredSelection)selection).getFirstElement();
|
Object object= ((IStructuredSelection)selection).getFirstElement();
|
||||||
if(object instanceof IHierNode&& ((IHierNode)object).getChildNodes().size()!=0){
|
if(object instanceof IHierNode && ((IHierNode)object).getChildNodes().size()!=0){
|
||||||
txTableViewer.setInput(object);
|
txTableViewer.setInput(object);
|
||||||
updateButtons();
|
updateButtons();
|
||||||
}
|
}
|
||||||
|
else { //if selection is changed but empty
|
||||||
|
txTableViewer.setInput(null);
|
||||||
|
updateButtons();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue