mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
Merge remote-tracking branch 'upstream/master' into e01_st_verification
This commit is contained in:
commit
858d006b2b
@ -101,7 +101,7 @@ class AddImageWizardAddingProgressPanel implements WizardDescriptor.FinishablePa
|
|||||||
*/
|
*/
|
||||||
void setStateStarted() {
|
void setStateStarted() {
|
||||||
component.getProgressBar().setIndeterminate(true);
|
component.getProgressBar().setIndeterminate(true);
|
||||||
component.setProgressBarTextAndColor("*This process take some time for large data sources.", 0, Color.black);
|
component.setProgressBarTextAndColor("*This process may take some time for large data sources.", 0, Color.black);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +18,6 @@ import org.openide.nodes.Node;
|
|||||||
import org.openide.util.Lookup;
|
import org.openide.util.Lookup;
|
||||||
import org.openide.util.NbBundle;
|
import org.openide.util.NbBundle;
|
||||||
import org.openide.util.NbPreferences;
|
import org.openide.util.NbPreferences;
|
||||||
import org.openide.windows.TopComponent;
|
|
||||||
import org.sleuthkit.autopsy.corecomponentinterfaces.DataContent;
|
import org.sleuthkit.autopsy.corecomponentinterfaces.DataContent;
|
||||||
import org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer;
|
import org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
@ -31,10 +30,10 @@ import org.sleuthkit.datamodel.TskCoreException;
|
|||||||
public class DataContentPanel extends javax.swing.JPanel implements DataContent, ChangeListener {
|
public class DataContentPanel extends javax.swing.JPanel implements DataContent, ChangeListener {
|
||||||
|
|
||||||
private static Logger logger = Logger.getLogger(DataContentPanel.class.getName());
|
private static Logger logger = Logger.getLogger(DataContentPanel.class.getName());
|
||||||
|
private final List<UpdateWrapper> viewers = new ArrayList<>();;
|
||||||
private final List<UpdateWrapper> viewers = new ArrayList<UpdateWrapper>();;
|
|
||||||
private Node currentNode;
|
private Node currentNode;
|
||||||
private final boolean isMain;
|
private final boolean isMain;
|
||||||
|
private boolean listeningToTabbedPane = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates new DataContentPanel panel
|
* Creates new DataContentPanel panel
|
||||||
@ -69,8 +68,6 @@ public class DataContentPanel extends javax.swing.JPanel implements DataContent,
|
|||||||
for (int tab = 0; tab < numTabs; ++tab) {
|
for (int tab = 0; tab < numTabs; ++tab) {
|
||||||
jTabbedPane1.setEnabledAt(tab, false);
|
jTabbedPane1.setEnabledAt(tab, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
jTabbedPane1.addChangeListener(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -135,7 +132,7 @@ public class DataContentPanel extends javax.swing.JPanel implements DataContent,
|
|||||||
try {
|
try {
|
||||||
path = content.getUniquePath();
|
path = content.getUniquePath();
|
||||||
} catch (TskCoreException ex) {
|
} catch (TskCoreException ex) {
|
||||||
logger.log(Level.SEVERE, "Exception while calling Content.getUniquePath() for " + content);
|
logger.log(Level.SEVERE, "Exception while calling Content.getUniquePath() for {0}", content);
|
||||||
}
|
}
|
||||||
setName(path);
|
setName(path);
|
||||||
} else {
|
} else {
|
||||||
@ -158,6 +155,12 @@ public class DataContentPanel extends javax.swing.JPanel implements DataContent,
|
|||||||
* @param selectedNode the selected content Node
|
* @param selectedNode the selected content Node
|
||||||
*/
|
*/
|
||||||
public void setupTabs(Node selectedNode) {
|
public void setupTabs(Node selectedNode) {
|
||||||
|
// Deferring becoming a listener to the tabbed pane until this point
|
||||||
|
// eliminates handling a superfluous stateChanged event during construction.
|
||||||
|
if (listeningToTabbedPane == false) {
|
||||||
|
jTabbedPane1.addChangeListener(this);
|
||||||
|
listeningToTabbedPane = true;
|
||||||
|
}
|
||||||
|
|
||||||
// get the preference for the preferred viewer
|
// get the preference for the preferred viewer
|
||||||
Preferences pref = NbPreferences.forModule(GeneralPanel.class);
|
Preferences pref = NbPreferences.forModule(GeneralPanel.class);
|
||||||
|
@ -61,6 +61,7 @@ public class DataResultPanel extends javax.swing.JPanel implements DataResult, C
|
|||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
private static final Logger logger = Logger.getLogger(DataResultPanel.class.getName() );
|
private static final Logger logger = Logger.getLogger(DataResultPanel.class.getName() );
|
||||||
|
private boolean listeningToTabbedPane = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates new DataResultPanel
|
* Creates new DataResultPanel
|
||||||
@ -75,8 +76,6 @@ public class DataResultPanel extends javax.swing.JPanel implements DataResult, C
|
|||||||
setName(title);
|
setName(title);
|
||||||
|
|
||||||
this.title = "";
|
this.title = "";
|
||||||
|
|
||||||
this.dataResultTabbedPanel.addChangeListener(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -341,6 +340,13 @@ public class DataResultPanel extends javax.swing.JPanel implements DataResult, C
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setNode(Node selectedNode) {
|
public void setNode(Node selectedNode) {
|
||||||
|
// Deferring becoming a listener to the tabbed pane until this point
|
||||||
|
// eliminates handling a superfluous stateChanged event during construction.
|
||||||
|
if (listeningToTabbedPane == false) {
|
||||||
|
dataResultTabbedPanel.addChangeListener(this);
|
||||||
|
listeningToTabbedPane = true;
|
||||||
|
}
|
||||||
|
|
||||||
this.rootNode = selectedNode;
|
this.rootNode = selectedNode;
|
||||||
if (selectedNode != null) {
|
if (selectedNode != null) {
|
||||||
int childrenCount = selectedNode.getChildren().getNodesCount(true);
|
int childrenCount = selectedNode.getChildren().getNodesCount(true);
|
||||||
|
@ -343,15 +343,6 @@ public class FXVideoPanel extends MediaViewVideoPanel {
|
|||||||
|
|
||||||
private static final String STOP_TEXT = "X";
|
private static final String STOP_TEXT = "X";
|
||||||
|
|
||||||
/** CSS-formatted skin for pauseButton when showing PLAY_TEXT. **/
|
|
||||||
private static final String PLAY_STYLE = "-fx-text-fill: green;";
|
|
||||||
|
|
||||||
/** CSS-formatted skin for pauseButton when showing PAUSE_TEXT. **/
|
|
||||||
private static final String PAUSE_STYLE = "-fx-font-weight: bolder;";
|
|
||||||
|
|
||||||
/** CSS-formatted skin for stopButton. **/
|
|
||||||
private static final String STOP_STYLE = "-fx-text-fill: red; -fx-font-weight: bold;";
|
|
||||||
|
|
||||||
public MediaPane() {
|
public MediaPane() {
|
||||||
// Video Display
|
// Video Display
|
||||||
mediaViewPane = new HBox();
|
mediaViewPane = new HBox();
|
||||||
@ -368,9 +359,7 @@ public class FXVideoPanel extends MediaViewVideoPanel {
|
|||||||
mediaTools.setPadding(new Insets(5, 10, 5, 10));
|
mediaTools.setPadding(new Insets(5, 10, 5, 10));
|
||||||
|
|
||||||
pauseButton = new Button(PLAY_TEXT);
|
pauseButton = new Button(PLAY_TEXT);
|
||||||
pauseButton.setStyle(PLAY_STYLE);
|
|
||||||
stopButton = new Button(STOP_TEXT);
|
stopButton = new Button(STOP_TEXT);
|
||||||
stopButton.setStyle(STOP_STYLE);
|
|
||||||
mediaTools.getChildren().add(pauseButton);
|
mediaTools.getChildren().add(pauseButton);
|
||||||
mediaTools.getChildren().add(new Label(" "));
|
mediaTools.getChildren().add(new Label(" "));
|
||||||
mediaTools.getChildren().add(stopButton);
|
mediaTools.getChildren().add(stopButton);
|
||||||
@ -670,7 +659,6 @@ public class FXVideoPanel extends MediaViewVideoPanel {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
pauseButton.setText(PLAY_TEXT);
|
pauseButton.setText(PLAY_TEXT);
|
||||||
pauseButton.setStyle(PLAY_STYLE);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -681,7 +669,6 @@ public class FXVideoPanel extends MediaViewVideoPanel {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
pauseButton.setText(PAUSE_TEXT);
|
pauseButton.setText(PAUSE_TEXT);
|
||||||
pauseButton.setStyle(PAUSE_STYLE);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ import org.sleuthkit.datamodel.VirtualDirectory;
|
|||||||
public final class ContentUtils {
|
public final class ContentUtils {
|
||||||
|
|
||||||
private final static Logger logger = Logger.getLogger(ContentUtils.class.getName());
|
private final static Logger logger = Logger.getLogger(ContentUtils.class.getName());
|
||||||
private static final SimpleDateFormat dateFormatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
private static final SimpleDateFormat dateFormatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z");
|
||||||
private static final SimpleDateFormat dateFormatterISO8601 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
|
private static final SimpleDateFormat dateFormatterISO8601 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
|
||||||
|
|
||||||
// don't instantiate
|
// don't instantiate
|
||||||
@ -105,12 +105,17 @@ public final class ContentUtils {
|
|||||||
|
|
||||||
public static TimeZone getTimeZone(Content c) {
|
public static TimeZone getTimeZone(Content c) {
|
||||||
try {
|
try {
|
||||||
final Image image = c.getImage();
|
if (false) {
|
||||||
if (image != null) {
|
return TimeZone.getTimeZone("GMT");
|
||||||
return TimeZone.getTimeZone(image.getTimeZone());
|
}
|
||||||
} else {
|
else {
|
||||||
//case such as top level VirtualDirectory
|
final Image image = c.getImage();
|
||||||
return TimeZone.getDefault();
|
if (image != null) {
|
||||||
|
return TimeZone.getTimeZone(image.getTimeZone());
|
||||||
|
} else {
|
||||||
|
//case such as top level VirtualDirectory
|
||||||
|
return TimeZone.getDefault();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (TskException ex) {
|
} catch (TskException ex) {
|
||||||
return TimeZone.getDefault();
|
return TimeZone.getDefault();
|
||||||
|
@ -47,7 +47,7 @@ public class ExtractedContentChildren extends ChildFactory<BlackboardArtifact.AR
|
|||||||
|
|
||||||
// these are shown in other parts of the UI tree
|
// these are shown in other parts of the UI tree
|
||||||
doNotShow = new ArrayList();
|
doNotShow = new ArrayList();
|
||||||
//doNotShow.add(BlackboardArtifact.ARTIFACT_TYPE.TSK_GEN_INFO);
|
doNotShow.add(BlackboardArtifact.ARTIFACT_TYPE.TSK_GEN_INFO);
|
||||||
doNotShow.add(BlackboardArtifact.ARTIFACT_TYPE.TSK_EMAIL_MSG);
|
doNotShow.add(BlackboardArtifact.ARTIFACT_TYPE.TSK_EMAIL_MSG);
|
||||||
doNotShow.add(BlackboardArtifact.ARTIFACT_TYPE.TSK_HASHSET_HIT);
|
doNotShow.add(BlackboardArtifact.ARTIFACT_TYPE.TSK_HASHSET_HIT);
|
||||||
doNotShow.add(BlackboardArtifact.ARTIFACT_TYPE.TSK_KEYWORD_HIT);
|
doNotShow.add(BlackboardArtifact.ARTIFACT_TYPE.TSK_KEYWORD_HIT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user