mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
Rework initial API of new keyword lists manager class
This commit is contained in:
parent
1249ab8376
commit
c50076b420
@ -61,12 +61,16 @@ public class KeywordListsManager extends Observable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the configured keyword lists.
|
||||
* Gets the names of the configured keyword lists.
|
||||
*
|
||||
* @return A collection of keyword list objects.
|
||||
* @return The name strings.
|
||||
*/
|
||||
public List<KeywordList> getKeywordLists() {
|
||||
return new ArrayList<>(XmlKeywordSearchList.getCurrent().getListsL());
|
||||
public List<String> getKeywordLists() {
|
||||
List<String> names = new ArrayList<>();
|
||||
for (KeywordList list : XmlKeywordSearchList.getCurrent().getListsL()) {
|
||||
names.add(list.getName());
|
||||
}
|
||||
return names;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user