}
@Override
protected TreeModel getModel(Object[] items, String rootTitle) {
if (mainTab.getSelectedIndex() == 0) {
return new DirectoryDialogTreeModel(items, rootTitle);
}
else {
try {
return new DirectoryDialogSpecCollTreeModel(selectedLpu, !showNotInShedule);
} catch (ClipsException ex) {
MessageBox.showException(ex);
return new DirectoryDialogTreeModel(items, rootTitle);
}
}
}