mirror of
https://github.com/elisspace/autopsy.git
synced 2026-10-03 07:49:52 +00:00
Merge branch 'develop' of https://github.com/sleuthkit/autopsy into messaging_prototype
This commit is contained in:
@@ -83,7 +83,6 @@ import org.openide.util.actions.Presenter;
|
||||
*/
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
CueBannerPanel.refresh();
|
||||
if (Case.existsCurrentCase() == false)
|
||||
return;
|
||||
|
||||
|
||||
@@ -126,9 +126,6 @@
|
||||
<Events>
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="openRecentButtonActionPerformed"/>
|
||||
</Events>
|
||||
<AuxValues>
|
||||
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="10"/>
|
||||
</AuxValues>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="createNewLabel">
|
||||
<Properties>
|
||||
@@ -149,9 +146,6 @@
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="CueBannerPanel.openRecentLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<AuxValues>
|
||||
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="10"/>
|
||||
</AuxValues>
|
||||
</Component>
|
||||
<Component class="javax.swing.JButton" name="openCaseButton">
|
||||
<Properties>
|
||||
|
||||
@@ -47,6 +47,7 @@ public class CueBannerPanel extends javax.swing.JPanel {
|
||||
|
||||
public CueBannerPanel() {
|
||||
initComponents();
|
||||
refresh();
|
||||
}
|
||||
|
||||
public CueBannerPanel(String welcomeLogo) {
|
||||
@@ -179,7 +180,7 @@ public class CueBannerPanel extends javax.swing.JPanel {
|
||||
);
|
||||
}// </editor-fold>//GEN-END:initComponents
|
||||
|
||||
public static void refresh() {
|
||||
public void refresh() {
|
||||
if (RecentCases.getInstance().getTotalRecentCases() == 0) {
|
||||
openRecentButton.setEnabled(false);
|
||||
openRecentLabel.setEnabled(false);
|
||||
@@ -236,8 +237,8 @@ public class CueBannerPanel extends javax.swing.JPanel {
|
||||
private javax.swing.JButton newCaseButton;
|
||||
private javax.swing.JButton openCaseButton;
|
||||
private javax.swing.JLabel openLabel;
|
||||
private static javax.swing.JButton openRecentButton;
|
||||
private static javax.swing.JLabel openRecentLabel;
|
||||
private javax.swing.JButton openRecentButton;
|
||||
private javax.swing.JLabel openRecentLabel;
|
||||
// End of variables declaration//GEN-END:variables
|
||||
|
||||
/**
|
||||
|
||||
@@ -40,6 +40,7 @@ public final class StartupWindow extends JDialog implements StartupWindowInterfa
|
||||
private static StartupWindow instance;
|
||||
private static final String TITLE = NbBundle.getMessage(StartupWindow.class, "StartupWindow.title.text");
|
||||
private static Dimension DIMENSIONS = new Dimension(750, 400);
|
||||
private static CueBannerPanel welcomeWindow;
|
||||
|
||||
public StartupWindow() {
|
||||
super(WindowManager.getDefault().getMainWindow(), TITLE, true);
|
||||
@@ -62,8 +63,7 @@ public final class StartupWindow extends JDialog implements StartupWindowInterfa
|
||||
// set the location of the popUp Window on the center of the screen
|
||||
setLocation((screenDimension.width - w) / 2, (screenDimension.height - h) / 2);
|
||||
|
||||
CueBannerPanel welcomeWindow = new CueBannerPanel();
|
||||
welcomeWindow.refresh();
|
||||
welcomeWindow = new CueBannerPanel();
|
||||
|
||||
// add the command to close the window to the button on the Volume Detail Panel
|
||||
welcomeWindow.setCloseButtonActionListener(new ActionListener() {
|
||||
@@ -82,6 +82,7 @@ public final class StartupWindow extends JDialog implements StartupWindowInterfa
|
||||
|
||||
@Override
|
||||
public void open() {
|
||||
welcomeWindow.refresh();
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -59,6 +59,7 @@ import org.mitre.cybox.objects.DomainName;
|
||||
import org.mitre.cybox.objects.WindowsRegistryKey;
|
||||
import org.sleuthkit.autopsy.coreutils.MessageNotifyUtil;
|
||||
import org.sleuthkit.autopsy.coreutils.ModuleSettings;
|
||||
import org.sleuthkit.autopsy.report.ReportProgressPanel.ReportStatus;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -120,7 +121,7 @@ public class STIXReportModule implements GeneralReportModule {
|
||||
"STIXReportModule.notifyMsg.unableToOpenReportFile",
|
||||
reportPath),
|
||||
MessageNotifyUtil.MessageType.ERROR);
|
||||
progressPanel.complete();
|
||||
progressPanel.complete(ReportStatus.ERROR);
|
||||
progressPanel.updateStatusLabel(
|
||||
NbBundle.getMessage(this.getClass(), "STIXReportModule.progress.completedWithErrors"));
|
||||
return;
|
||||
@@ -135,7 +136,7 @@ public class STIXReportModule implements GeneralReportModule {
|
||||
logger.log(Level.SEVERE, "STIXReportModuleConfigPanel.stixFile not initialized "); //NON-NLS
|
||||
MessageNotifyUtil.Message.error(
|
||||
NbBundle.getMessage(this.getClass(), "STIXReportModule.notifyErr.noFildDirProvided"));
|
||||
progressPanel.complete();
|
||||
progressPanel.complete(ReportStatus.ERROR);
|
||||
progressPanel.updateStatusLabel(
|
||||
NbBundle.getMessage(this.getClass(), "STIXReportModule.progress.noFildDirProvided"));
|
||||
return;
|
||||
@@ -144,7 +145,7 @@ public class STIXReportModule implements GeneralReportModule {
|
||||
logger.log(Level.SEVERE, "No STIX file/directory provided "); //NON-NLS
|
||||
MessageNotifyUtil.Message.error(
|
||||
NbBundle.getMessage(this.getClass(), "STIXReportModule.notifyErr.noFildDirProvided"));
|
||||
progressPanel.complete();
|
||||
progressPanel.complete(ReportStatus.ERROR);
|
||||
progressPanel.updateStatusLabel(
|
||||
NbBundle.getMessage(this.getClass(), "STIXReportModule.progress.noFildDirProvided"));
|
||||
return;
|
||||
@@ -156,7 +157,7 @@ public class STIXReportModule implements GeneralReportModule {
|
||||
MessageNotifyUtil.Message.error(NbBundle.getMessage(this.getClass(),
|
||||
"STIXReportModule.notifyMsg.unableToOpenFileDir",
|
||||
stixFileName));
|
||||
progressPanel.complete();
|
||||
progressPanel.complete(ReportStatus.ERROR);
|
||||
progressPanel.updateStatusLabel(
|
||||
NbBundle.getMessage(this.getClass(), "STIXReportModule.progress.couldNotOpenFileDir", stixFileName));
|
||||
return;
|
||||
@@ -201,10 +202,12 @@ public class STIXReportModule implements GeneralReportModule {
|
||||
|
||||
// Set the progress bar to done. If any errors occurred along the way, modify
|
||||
// the "complete" message to indicate this.
|
||||
progressPanel.complete();
|
||||
if (hadErrors) {
|
||||
progressPanel.complete(ReportStatus.ERROR);
|
||||
progressPanel.updateStatusLabel(
|
||||
NbBundle.getMessage(this.getClass(), "STIXReportModule.progress.completedWithErrors"));
|
||||
} else {
|
||||
progressPanel.complete(ReportStatus.COMPLETE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -358,7 +358,7 @@ import org.sleuthkit.datamodel.TskData;
|
||||
for (FileReportModule module : fileModules) {
|
||||
module.endTable();
|
||||
module.endReport();
|
||||
fileProgress.get(module).complete();
|
||||
fileProgress.get(module).complete(ReportStatus.COMPLETE);
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -463,7 +463,7 @@ import org.sleuthkit.datamodel.TskData;
|
||||
|
||||
// finish progress, wrap up
|
||||
for (TableReportModule module : tableModules) {
|
||||
tableProgress.get(module).complete();
|
||||
tableProgress.get(module).complete(ReportStatus.COMPLETE);
|
||||
module.endReport();
|
||||
}
|
||||
|
||||
|
||||
@@ -339,12 +339,12 @@ class ReportKML implements GeneralReportModule {
|
||||
} catch (IOException ex) {
|
||||
logger.log(Level.WARNING, "Could not write the KML report.", ex); //NON-NLS
|
||||
}
|
||||
progressPanel.complete();
|
||||
progressPanel.complete(ReportProgressPanel.ReportStatus.ERROR);
|
||||
} catch (TskCoreException ex) {
|
||||
logger.log(Level.WARNING, "Failed to get the unique path.", ex); //NON-NLS
|
||||
}
|
||||
progressPanel.increment();
|
||||
progressPanel.complete();
|
||||
progressPanel.complete(ReportProgressPanel.ReportStatus.COMPLETE);
|
||||
}
|
||||
|
||||
public static void copyFileUsingStream(AbstractFile file, File jFile) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user