mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
Revised some code comments.
This commit is contained in:
parent
71c35d63ec
commit
eeb83e270c
@ -113,14 +113,18 @@ public class ExtractedContentViewer implements DataContentViewer {
|
|||||||
if (artifact != null) {
|
if (artifact != null) {
|
||||||
if (artifact.getArtifactTypeID() == TSK_ACCOUNT.getTypeID()) {
|
if (artifact.getArtifactTypeID() == TSK_ACCOUNT.getTypeID()) {
|
||||||
try {
|
try {
|
||||||
// if the artifact is an account artifact, get an account text.
|
/*
|
||||||
|
* Generate AccountsText for the account artifact.
|
||||||
|
*/
|
||||||
highlightedHitText = getAccountsText(content, nodeLookup);
|
highlightedHitText = getAccountsText(content, nodeLookup);
|
||||||
} catch (TskCoreException ex) {
|
} catch (TskCoreException ex) {
|
||||||
LOGGER.log(Level.SEVERE, "Failed to create AccountsText for " + content, ex); //NON-NLS
|
LOGGER.log(Level.SEVERE, "Failed to create AccountsText for " + content, ex); //NON-NLS
|
||||||
}
|
}
|
||||||
} else if (artifact.getArtifactTypeID() == TSK_KEYWORD_HIT.getTypeID()) {
|
} else if (artifact.getArtifactTypeID() == TSK_KEYWORD_HIT.getTypeID()) {
|
||||||
try {
|
try {
|
||||||
//if there is kwh artifact use that to construct the HighlightedText
|
/*
|
||||||
|
* Generate HighlightedText for the keyword hit artifact.
|
||||||
|
*/
|
||||||
highlightedHitText = new HighlightedText(artifact);
|
highlightedHitText = new HighlightedText(artifact);
|
||||||
} catch (TskCoreException ex) {
|
} catch (TskCoreException ex) {
|
||||||
LOGGER.log(Level.SEVERE, "Failed to create HighlightedText for " + artifact, ex); //NON-NLS
|
LOGGER.log(Level.SEVERE, "Failed to create HighlightedText for " + artifact, ex); //NON-NLS
|
||||||
@ -137,11 +141,6 @@ public class ExtractedContentViewer implements DataContentViewer {
|
|||||||
if (null != content && solrHasContent(content.getId())) {
|
if (null != content && solrHasContent(content.getId())) {
|
||||||
QueryResults queryResults = queryContent.getResults();
|
QueryResults queryResults = queryContent.getResults();
|
||||||
if (queryResults != null) {
|
if (queryResults != null) {
|
||||||
/*
|
|
||||||
* If there's a QueryContent object in the lookup, use that.
|
|
||||||
* This happens when a user selects a row in an ad-hoc
|
|
||||||
* search result.
|
|
||||||
*/
|
|
||||||
highlightedHitText = new HighlightedText(queryContent.getSolrObjectId(), queryResults);
|
highlightedHitText = new HighlightedText(queryContent.getSolrObjectId(), queryResults);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user