/**
* Display the details of a given message
* @param rowNumber index to the message to display
*/
void showDetails(int rowNumber) {
final IngestMessageGroup messageGroup = mainPanel.getMessagePanel().getMessageGroup(rowNumber);
if (messageGroup != null) {
String details = messageGroup.getDetails();
if (details != null) {
StringBuilder b = new StringBuilder();
if (details.startsWith("<html><body>") == false) { //NON-NLS
b.append("<html><body>"); //NON-NLS
b.append(details);
b.append("</body></html>"); //NON-NLS
}
else {
b.append(details);
}
this.messageDetailsPane.setText(b.toString());
} else {
this.messageDetailsPane.setText("");
}
//show artifact/content only for a message group with a single message
BlackboardArtifact artifact = messageGroup.getData();;
if (artifact != null && messageGroup.getCount() == 1) {
viewArtifactButton.setEnabled(true);
//check file type
long objId = artifact.getObjectID();
AbstractFile file = null;