mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
add a mode for AID
This commit is contained in:
parent
d6ec2a35d3
commit
355174f9cb
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<mode version="2.4">
|
||||||
|
<name unique="AID"/>
|
||||||
|
<kind type="editor"/>
|
||||||
|
<state type="separated"/>
|
||||||
|
<bounds x="76" y="68" width="996" height="672"/>
|
||||||
|
<frame state="0"/>
|
||||||
|
|
||||||
|
<empty-behavior permanent="false"/>
|
||||||
|
</mode>
|
@ -19,28 +19,21 @@
|
|||||||
package org.sleuthkit.autopsy.experimental.autoingest;
|
package org.sleuthkit.autopsy.experimental.autoingest;
|
||||||
|
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import org.netbeans.api.settings.ConvertAsProperties;
|
|
||||||
import org.openide.awt.ActionID;
|
|
||||||
import org.openide.awt.ActionReference;
|
|
||||||
import org.openide.windows.TopComponent;
|
|
||||||
import org.openide.util.NbBundle.Messages;
|
import org.openide.util.NbBundle.Messages;
|
||||||
import org.openide.windows.Mode;
|
import org.openide.windows.Mode;
|
||||||
|
import org.openide.windows.TopComponent;
|
||||||
import org.openide.windows.WindowManager;
|
import org.openide.windows.WindowManager;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Top component which displays the Auto Ingest Dashboard interface.
|
* Top component which displays the Auto Ingest Dashboard interface.
|
||||||
*/
|
*/
|
||||||
@ConvertAsProperties(
|
|
||||||
dtd = "-//org.sleuthkit.autopsy.experimental.autoingest//AutoIngestDashboard//EN",
|
|
||||||
autostore = false
|
|
||||||
)
|
|
||||||
@TopComponent.Description(
|
@TopComponent.Description(
|
||||||
preferredID = "AutoIngestDashboardTopComponent",
|
preferredID = "AutoIngestDashboardTopComponent",
|
||||||
//iconBase="SET/PATH/TO/ICON/HERE",
|
//iconBase="SET/PATH/TO/ICON/HERE",
|
||||||
persistenceType = TopComponent.PERSISTENCE_NEVER
|
persistenceType = TopComponent.PERSISTENCE_NEVER
|
||||||
)
|
)
|
||||||
@TopComponent.Registration(mode = "dashboard", openAtStartup = false)
|
@TopComponent.Registration(mode = "AID", openAtStartup = false)
|
||||||
@Messages({
|
@Messages({
|
||||||
"CTL_AutoIngestDashboardAction=Auto Ingest Dashboard",
|
"CTL_AutoIngestDashboardAction=Auto Ingest Dashboard",
|
||||||
"CTL_AutoIngestDashboardTopComponent=Auto Ingest Dashboard",
|
"CTL_AutoIngestDashboardTopComponent=Auto Ingest Dashboard",
|
||||||
@ -48,7 +41,7 @@ import org.sleuthkit.autopsy.coreutils.Logger;
|
|||||||
})
|
})
|
||||||
public final class AutoIngestDashboardTopComponent extends TopComponent {
|
public final class AutoIngestDashboardTopComponent extends TopComponent {
|
||||||
public final static String PREFERRED_ID = "AutoIngestDashboardTopComponent"; // NON-NLS
|
public final static String PREFERRED_ID = "AutoIngestDashboardTopComponent"; // NON-NLS
|
||||||
private static final Logger LOGGER = Logger.getLogger(AutoIngestDashboardTopComponent.class.getName());
|
private static final Logger logger = Logger.getLogger(AutoIngestDashboardTopComponent.class.getName());
|
||||||
private static boolean topComponentInitialized = false;
|
private static boolean topComponentInitialized = false;
|
||||||
|
|
||||||
public static void openTopComponent() {
|
public static void openTopComponent() {
|
||||||
@ -77,7 +70,7 @@ public final class AutoIngestDashboardTopComponent extends TopComponent {
|
|||||||
try {
|
try {
|
||||||
etc.close();
|
etc.close();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOGGER.log(Level.SEVERE, "failed to close " + PREFERRED_ID, e); // NON-NLS
|
logger.log(Level.SEVERE, "failed to close " + PREFERRED_ID, e); // NON-NLS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -111,25 +104,5 @@ public final class AutoIngestDashboardTopComponent extends TopComponent {
|
|||||||
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
@Override
|
|
||||||
public void componentOpened() {
|
|
||||||
// TODO add custom code on component opening
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void componentClosed() {
|
|
||||||
// TODO add custom code on component closing
|
|
||||||
}
|
|
||||||
|
|
||||||
void writeProperties(java.util.Properties p) {
|
|
||||||
// better to version settings since initial version as advocated at
|
|
||||||
// http://wiki.apidesign.org/wiki/PropertyFiles
|
|
||||||
p.setProperty("version", "1.0");
|
|
||||||
// TODO store your settings
|
|
||||||
}
|
|
||||||
|
|
||||||
void readProperties(java.util.Properties p) {
|
|
||||||
String version = p.getProperty("version");
|
|
||||||
// TODO read your settings according to their version
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -31,5 +31,11 @@
|
|||||||
</file>
|
</file>
|
||||||
</folder>
|
</folder>
|
||||||
</folder>
|
</folder>
|
||||||
|
|
||||||
|
<folder name="Windows2">
|
||||||
|
<folder name="Modes">
|
||||||
|
<file name="AID.wsmode" url="AIDWsmode.xml"/>
|
||||||
|
</folder>
|
||||||
|
</folder>
|
||||||
|
|
||||||
</filesystem>
|
</filesystem>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user