mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
Change display type to make it cleaner
This commit is contained in:
parent
12156cf226
commit
757f880675
@ -32,9 +32,6 @@ import org.sleuthkit.datamodel.BlackboardAttribute;
|
|||||||
*/
|
*/
|
||||||
class Keyword {
|
class Keyword {
|
||||||
|
|
||||||
static final String EXACT = NbBundle.getMessage(NewKeywordPanel.class, "NewKeywordPanel.exactButton.text");
|
|
||||||
static final String SUBSTRING = NbBundle.getMessage(NewKeywordPanel.class, "NewKeywordPanel.substringButton.text");
|
|
||||||
static final String REGEX = NbBundle.getMessage(NewKeywordPanel.class, "NewKeywordPanel.regexButton.text");
|
|
||||||
private String searchTerm;
|
private String searchTerm;
|
||||||
private boolean isLiteral;
|
private boolean isLiteral;
|
||||||
private boolean isWholeWord;
|
private boolean isWholeWord;
|
||||||
@ -126,12 +123,12 @@ class Keyword {
|
|||||||
String getSearchTermType() {
|
String getSearchTermType() {
|
||||||
if (isLiteral) {
|
if (isLiteral) {
|
||||||
if (isWholeWord) {
|
if (isWholeWord) {
|
||||||
return EXACT;
|
return NbBundle.getMessage(NewKeywordPanel.class, "NewKeywordPanel.exactButton.text");
|
||||||
} else {
|
} else {
|
||||||
return SUBSTRING;
|
return NbBundle.getMessage(NewKeywordPanel.class, "NewKeywordPanel.substringButton.text");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return REGEX;
|
return NbBundle.getMessage(NewKeywordPanel.class, "NewKeywordPanel.regexButton.text");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user