Keyword search edit list panel show only unlocked lists

This commit is contained in:
Dick Fickling 2012-06-13 10:02:54 -04:00
parent b5ee94cb28
commit 12f260222b
2 changed files with 11 additions and 1 deletions

View File

@ -693,7 +693,7 @@ private void useForIngestCheckboxActionPerformed(java.awt.event.ActionEvent evt)
listSelectionModel.setSelectionInterval(index, index);
KeywordSearchListsXML loader = KeywordSearchListsXML.getCurrent();
currentKeywordList = loader.getListsL().get(index);
currentKeywordList = loader.getListsL(false).get(index);
tableModel.resync();
initButtons();
} else {

View File

@ -127,6 +127,16 @@ public abstract class KeywordSearchListsAbstract {
}
return ret;
}
List<KeywordSearchList> getListsL(boolean locked) {
List<KeywordSearchList> ret = new ArrayList<KeywordSearchList>();
for (KeywordSearchList list : theLists.values()) {
if(list.isLocked().equals(locked)) {
ret.add(list);
}
}
return ret;
}
/**
* Get list names of all loaded keyword list names