mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
commit
b3d94e9024
@ -3,6 +3,7 @@ AnalysisPanel_keyColumn_title=Name
|
|||||||
AnalysisPanel_keywordSearchModuleName=Keyword Search
|
AnalysisPanel_keywordSearchModuleName=Keyword Search
|
||||||
# {0} - module name
|
# {0} - module name
|
||||||
BaseDataSourceSummaryPanel_defaultNotIngestMessage=The {0} ingest module has not been run on this data source.
|
BaseDataSourceSummaryPanel_defaultNotIngestMessage=The {0} ingest module has not been run on this data source.
|
||||||
|
ContainerPanel_setFieldsForNonImageDataSource_na=N/A
|
||||||
CTL_DataSourceSummaryAction=Data Source Summary
|
CTL_DataSourceSummaryAction=Data Source Summary
|
||||||
DataSourceSummaryDialog.closeButton.text=Close
|
DataSourceSummaryDialog.closeButton.text=Close
|
||||||
ContainerPanel.displayNameLabel.text=Display Name:
|
ContainerPanel.displayNameLabel.text=Display Name:
|
||||||
|
@ -26,6 +26,7 @@ import java.util.Set;
|
|||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
import javax.swing.table.DefaultTableModel;
|
import javax.swing.table.DefaultTableModel;
|
||||||
|
import org.openide.util.NbBundle.Messages;
|
||||||
import org.sleuthkit.autopsy.casemodule.Case;
|
import org.sleuthkit.autopsy.casemodule.Case;
|
||||||
import org.sleuthkit.autopsy.datasourcesummary.datamodel.ContainerSummary;
|
import org.sleuthkit.autopsy.datasourcesummary.datamodel.ContainerSummary;
|
||||||
import org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchResult.ResultType;
|
import org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchResult.ResultType;
|
||||||
@ -52,7 +53,7 @@ class ContainerPanel extends BaseDataSourceSummaryPanel {
|
|||||||
/**
|
/**
|
||||||
* Main constructor.
|
* Main constructor.
|
||||||
*
|
*
|
||||||
* @param dataSource The original datasource.
|
* @param dataSource The original datasource.
|
||||||
* @param unallocatedFilesSize The unallocated file size.
|
* @param unallocatedFilesSize The unallocated file size.
|
||||||
*/
|
*/
|
||||||
ContainerPanelData(DataSource dataSource, Long unallocatedFilesSize) {
|
ContainerPanelData(DataSource dataSource, Long unallocatedFilesSize) {
|
||||||
@ -165,8 +166,6 @@ class ContainerPanel extends BaseDataSourceSummaryPanel {
|
|||||||
private void updateDetailsPanelData(DataSource selectedDataSource, Long unallocatedFilesSize) {
|
private void updateDetailsPanelData(DataSource selectedDataSource, Long unallocatedFilesSize) {
|
||||||
clearTableValues();
|
clearTableValues();
|
||||||
if (selectedDataSource != null) {
|
if (selectedDataSource != null) {
|
||||||
unallocatedSizeValue.setText(SizeRepresentationUtil.getSizeString(unallocatedFilesSize));
|
|
||||||
timeZoneValue.setText(selectedDataSource.getTimeZone());
|
|
||||||
displayNameValue.setText(selectedDataSource.getName());
|
displayNameValue.setText(selectedDataSource.getName());
|
||||||
originalNameValue.setText(selectedDataSource.getName());
|
originalNameValue.setText(selectedDataSource.getName());
|
||||||
deviceIdValue.setText(selectedDataSource.getDeviceId());
|
deviceIdValue.setText(selectedDataSource.getDeviceId());
|
||||||
@ -178,24 +177,48 @@ class ContainerPanel extends BaseDataSourceSummaryPanel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (selectedDataSource instanceof Image) {
|
if (selectedDataSource instanceof Image) {
|
||||||
setFieldsForImage((Image) selectedDataSource);
|
setFieldsForImage((Image) selectedDataSource, unallocatedFilesSize);
|
||||||
|
} else {
|
||||||
|
setFieldsForNonImageDataSource();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.repaint();
|
this.repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Messages({
|
||||||
|
"ContainerPanel_setFieldsForNonImageDataSource_na=N/A"
|
||||||
|
})
|
||||||
|
private void setFieldsForNonImageDataSource() {
|
||||||
|
String NA = Bundle.ContainerPanel_setFieldsForNonImageDataSource_na();
|
||||||
|
|
||||||
|
unallocatedSizeValue.setText(NA);
|
||||||
|
imageTypeValue.setText(NA);
|
||||||
|
sizeValue.setText(NA);
|
||||||
|
sectorSizeValue.setText(NA);
|
||||||
|
timeZoneValue.setText(NA);
|
||||||
|
|
||||||
|
((DefaultTableModel) filePathsTable.getModel()).addRow(new Object[]{NA});
|
||||||
|
|
||||||
|
md5HashValue.setText(NA);
|
||||||
|
sha1HashValue.setText(NA);
|
||||||
|
sha256HashValue.setText(NA);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets text fields for an image. This should be called after
|
* Sets text fields for an image. This should be called after
|
||||||
* clearTableValues and before updateFieldVisibility to ensure the proper
|
* clearTableValues and before updateFieldVisibility to ensure the proper
|
||||||
* rendering.
|
* rendering.
|
||||||
*
|
*
|
||||||
* @param selectedImage The selected image.
|
* @param selectedImage The selected image.
|
||||||
|
* @param unallocatedFilesSize Unallocated file size in bytes.
|
||||||
*/
|
*/
|
||||||
private void setFieldsForImage(Image selectedImage) {
|
private void setFieldsForImage(Image selectedImage, Long unallocatedFilesSize) {
|
||||||
|
unallocatedSizeValue.setText(SizeRepresentationUtil.getSizeString(unallocatedFilesSize));
|
||||||
imageTypeValue.setText(selectedImage.getType().getName());
|
imageTypeValue.setText(selectedImage.getType().getName());
|
||||||
sizeValue.setText(SizeRepresentationUtil.getSizeString(selectedImage.getSize()));
|
sizeValue.setText(SizeRepresentationUtil.getSizeString(selectedImage.getSize()));
|
||||||
sectorSizeValue.setText(SizeRepresentationUtil.getSizeString(selectedImage.getSsize()));
|
sectorSizeValue.setText(SizeRepresentationUtil.getSizeString(selectedImage.getSsize()));
|
||||||
|
timeZoneValue.setText(selectedImage.getTimeZone());
|
||||||
|
|
||||||
for (String path : selectedImage.getPaths()) {
|
for (String path : selectedImage.getPaths()) {
|
||||||
((DefaultTableModel) filePathsTable.getModel()).addRow(new Object[]{path});
|
((DefaultTableModel) filePathsTable.getModel()).addRow(new Object[]{path});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user