* @param cl
*/
private void resetTable() throws ClipsException {
currentModel = new TableModelUserPanels(collabLoc);
tblUserPanels.setModel(currentModel);
rightsTable.setModel(new TableModelUserRightsM());
tblUserPanels.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent arg0) {
UserRight rights[] = currentModel.getRights(tblUserPanels.getSelectedRowSorted());
if(rights != null) {
Set<UserRight> allRights = new HashSet<UserRight>();
for(int i=0; i<rights.length; i++) {
allRights.add(rights[i]);
}
try {
TableModelUserRightsM rightsModel = new TableModelUserRightsM(allRights, collabLoc);
rightsTable.setModel(rightsModel);
} catch (ClipsException ex) {
tblUserPanels.setModel(new DefaultTableModel());
rightsTable.setModel(new DefaultTableModel());
MessageBox.showException(ex);