Change display type to make it cleaner

This commit is contained in:
Sophie Mori 2016-11-11 17:03:28 -05:00
parent 12156cf226
commit 757f880675

View File

@ -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");
} }
} }