release/2.1.2 #24

Manually merged
eyck merged 11 commits from release/2.1.2 into master 2020-02-10 06:50:59 +01:00
1 changed files with 8 additions and 4 deletions
Showing only changes of commit 44ac32359f - Show all commits

View File

@ -201,10 +201,14 @@ public class DesignBrowser {
ISelection selection=event.getSelection();
if( selection instanceof IStructuredSelection) {
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);
updateButtons();
}
else { //if selection is changed but empty
txTableViewer.setInput(null);
updateButtons();
}
}
}
});