Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.coreutils.Desktop Class Reference

Public Member Functions

void browse (URI uri) throws IOException
 
void edit (File file) throws IOException
 
void open (File file) throws IOException
 

Static Public Member Functions

static Desktop getDesktop ()
 
static boolean isDesktopSupported ()
 

Private Member Functions

 Desktop (java.awt.Desktop awtDesktop)
 
void xdgOpen (String path) throws IOException
 

Static Private Member Functions

static boolean isXdgSupported ()
 

Private Attributes

final java.awt.Desktop awtDesktop
 

Static Private Attributes

static Desktop instance = null
 
static final Logger LOGGER = Logger.getLogger(Desktop.class.getName())
 
static final long XDG_TIMEOUT_SECS = 30
 
static Boolean xdgSupported = null
 

Detailed Description

Wrapper for java.awt.Desktop to handle some situations that java.awt.Desktop doesn't.

Definition at line 32 of file Desktop.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.coreutils.Desktop.Desktop ( java.awt.Desktop  awtDesktop)
private

Private constructor for this wrapper.

Parameters
awtDesktopThe delegate java.awt.Desktop.

Definition at line 82 of file Desktop.java.

References org.sleuthkit.autopsy.coreutils.Desktop.awtDesktop.

Referenced by org.sleuthkit.autopsy.coreutils.Desktop.getDesktop().

Member Function Documentation

void org.sleuthkit.autopsy.coreutils.Desktop.browse ( URI  uri) throws IOException
void org.sleuthkit.autopsy.coreutils.Desktop.edit ( File  file) throws IOException
static Desktop org.sleuthkit.autopsy.coreutils.Desktop.getDesktop ( )
static
Returns
A singleton instance of this class.

Definition at line 67 of file Desktop.java.

References org.sleuthkit.autopsy.coreutils.Desktop.Desktop(), and org.sleuthkit.autopsy.coreutils.Desktop.instance.

Referenced by org.sleuthkit.autopsy.actions.OpenPythonModulesFolderAction.actionPerformed(), org.sleuthkit.autopsy.actions.OpenLogFolderAction.actionPerformed(), org.sleuthkit.autopsy.texttranslation.translators.BingTranslatorSettingsPanel.BingTranslatorSettingsPanel(), org.sleuthkit.autopsy.communications.VisualizationPanel.createReport(), org.sleuthkit.autopsy.actions.ThreadDumpAction.ThreadDumper.done(), org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslatorSettingsPanel.GoogleTranslatorSettingsPanel(), com.basistech.df.cybertriage.autopsy.ctoptions.ctcloud.CTMalwareScannerOptionsPanel.gotoLink(), org.sleuthkit.autopsy.corecomponents.AboutWindowPanel.AboutPanelHyperlinkListener.hyperlinkUpdate(), com.basistech.df.cybertriage.autopsy.CTIntegrationMissingDialog.linkMouseClicked(), org.sleuthkit.autopsy.directorytree.ExternalViewerAction.openFile(), org.sleuthkit.autopsy.modules.yara.ui.RuleSetDetailsPanel.openFolderButtonActionPerformed(), org.sleuthkit.autopsy.directorytree.ExternalViewerAction.openURL(), org.sleuthkit.autopsy.actions.OpenOutputFolderAction.performAction(), org.sleuthkit.autopsy.report.ReportProgressPanel.setLabels(), org.sleuthkit.autopsy.corecomponents.AboutWindowPanel.showUrl(), org.sleuthkit.autopsy.corecomponents.OfflineHelpAction.viewOfflineHelp(), and org.sleuthkit.autopsy.corecomponents.OnlineHelpAction.viewOnlineHelp().

static boolean org.sleuthkit.autopsy.coreutils.Desktop.isDesktopSupported ( )
static
static boolean org.sleuthkit.autopsy.coreutils.Desktop.isXdgSupported ( )
staticprivate
void org.sleuthkit.autopsy.coreutils.Desktop.open ( File  file) throws IOException
void org.sleuthkit.autopsy.coreutils.Desktop.xdgOpen ( String  path) throws IOException
private

Opens a given path using xdg-open on linux.

Parameters
pathThe path.
Exceptions
IOException

Definition at line 92 of file Desktop.java.

Referenced by org.sleuthkit.autopsy.coreutils.Desktop.browse(), org.sleuthkit.autopsy.coreutils.Desktop.edit(), and org.sleuthkit.autopsy.coreutils.Desktop.open().

Member Data Documentation

final java.awt.Desktop org.sleuthkit.autopsy.coreutils.Desktop.awtDesktop
private
Desktop org.sleuthkit.autopsy.coreutils.Desktop.instance = null
staticprivate

Definition at line 62 of file Desktop.java.

Referenced by org.sleuthkit.autopsy.coreutils.Desktop.getDesktop().

final Logger org.sleuthkit.autopsy.coreutils.Desktop.LOGGER = Logger.getLogger(Desktop.class.getName())
staticprivate

Definition at line 34 of file Desktop.java.

final long org.sleuthkit.autopsy.coreutils.Desktop.XDG_TIMEOUT_SECS = 30
staticprivate

Definition at line 35 of file Desktop.java.

Boolean org.sleuthkit.autopsy.coreutils.Desktop.xdgSupported = null
staticprivate

Definition at line 37 of file Desktop.java.

Referenced by org.sleuthkit.autopsy.coreutils.Desktop.isXdgSupported().


The documentation for this class was generated from the following file:

Copyright © 2012-2024 Sleuth Kit Labs. Generated on: Mon Mar 17 2025
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.