4652 fix errors in refactoring of Bundle messages

This commit is contained in:
William Schaefer 2019-01-22 19:12:35 -05:00
parent 060e2f2551
commit eb73ed62fd
2 changed files with 7 additions and 4 deletions

View File

@ -22,6 +22,7 @@ import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import org.openide.util.NbBundle.Messages;
import org.sleuthkit.autopsy.casemodule.Case;
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
import org.sleuthkit.datamodel.DataSource;
@ -43,6 +44,8 @@ public class DataSourceSummaryDetailsPanel extends javax.swing.JPanel {
/**
* Creates new form DataSourceSummaryDetailsPanel
*/
@Messages({"DataSourceSummaryDetailsPanel.getDataSources.error.text=Failed to get the list of datasources for the current case.",
"DataSourceSummaryDetailsPanel.getDataSources.error.title=Load Failure"})
public DataSourceSummaryDetailsPanel() {
initComponents();
try {
@ -50,7 +53,7 @@ public class DataSourceSummaryDetailsPanel extends javax.swing.JPanel {
osInfoList = OSUtility.getOSInfo(skCase);
} catch (TskCoreException | NoCurrentCaseException ex) {
logger.log(Level.SEVERE, "Failed to load ingest jobs.", ex);
JOptionPane.showMessageDialog(this, Bundle.DataSourceSummaryPanel_getDataSources_error_text(), Bundle.DataSourceSummaryPanel_getDataSources_error_title(), JOptionPane.ERROR_MESSAGE);
JOptionPane.showMessageDialog(this, Bundle.DataSourceSummaryDetailsPanel_getDataSources_error_text(), Bundle.DataSourceSummaryDetailsPanel_getDataSources_error_title(), JOptionPane.ERROR_MESSAGE);
}
}

View File

@ -48,11 +48,11 @@ final class DataSourceSummaryDialog extends javax.swing.JDialog implements Obser
"DataSourceSummaryPanel.detailsTab.title=Details"
})
DataSourceSummaryDialog(Frame owner) {
super(owner, Bundle.DataSourcesSummaryPanel_window_title(), true);
super(owner, Bundle.DataSourceSummaryPanel_window_title(), true);
initComponents();
dataSourceSummarySplitPane.setLeftComponent(dataSourcesPanel);
dataSourceTabbedPane.add(Bundle.DataSourcesSummaryPanel_filesTab_title(), filesPanel);
dataSourceTabbedPane.addTab(Bundle.DataSourcesSummaryPanel_detailsTab_title(), detailsPanel);
dataSourceTabbedPane.add(Bundle.DataSourceSummaryPanel_filesTab_title(), filesPanel);
dataSourceTabbedPane.addTab(Bundle.DataSourceSummaryPanel_detailsTab_title(), detailsPanel);
dataSourcesPanel.addListSelectionListener((ListSelectionEvent e) -> {
if (!e.getValueIsAdjusting()) {
DataSource selectedDataSource = dataSourcesPanel.getSelectedDataSource();