Package ghidra.framework.plugintool
Class StandAloneApplication
- java.lang.Object
-
- ghidra.framework.plugintool.StandAloneApplication
-
- All Implemented Interfaces:
GenericStandAloneApplication
public abstract class StandAloneApplication extends java.lang.Object implements GenericStandAloneApplication
-
-
Field Summary
Fields Modifier and Type Field Description protected DockingApplicationConfiguration
configuration
protected ApplicationLayout
layout
protected PluginTool
tool
-
Constructor Summary
Constructors Constructor Description StandAloneApplication(java.lang.String propertiesFilename)
Creates a new application using the given properties filename.StandAloneApplication(java.lang.String name, java.lang.String version)
Creates a new application using the specified application name and version.StandAloneApplication(ApplicationLayout applicationLayout)
reates a new application using the given application layout and associated application properties.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PluginTool
createTool()
void
exit()
ToolServices
getToolServices()
protected void
initializeTool(StandAlonePluginTool newTool)
static ApplicationProperties
readApplicationProperties(java.lang.String propertiesFilename)
ReadApplicationProperties
from the specified file path relative to the current working directory.void
setHomeCallback(java.lang.Runnable callback)
void
setHomeIcon(javax.swing.ImageIcon icon)
void
setWindowsIcons(java.util.List<java.awt.Image> windowsIcons)
void
showSpashScreen(javax.swing.ImageIcon splashIcon)
protected void
showTool()
void
start()
-
-
-
Field Detail
-
layout
protected ApplicationLayout layout
-
configuration
protected DockingApplicationConfiguration configuration
-
tool
protected PluginTool tool
-
-
Constructor Detail
-
StandAloneApplication
public StandAloneApplication(java.lang.String propertiesFilename) throws java.io.IOException
Creates a new application using the given properties filename. The filename is expected reside in the current working directory.The given properties file is expected to have the
ApplicationProperties.APPLICATION_NAME_PROPERTY
andApplicationProperties.APPLICATION_VERSION_PROPERTY
properties set.- Parameters:
propertiesFilename
- the name of the properties file.- Throws:
java.io.IOException
- error causing application initialization failure
-
StandAloneApplication
public StandAloneApplication(java.lang.String name, java.lang.String version) throws java.io.IOException
Creates a new application using the specified application name and version.- Parameters:
name
- application nameversion
- application version- Throws:
java.io.IOException
- error causing application initialization failure
-
StandAloneApplication
public StandAloneApplication(ApplicationLayout applicationLayout)
reates a new application using the given application layout and associated application properties.- Parameters:
applicationLayout
- application layout
-
-
Method Detail
-
readApplicationProperties
public static ApplicationProperties readApplicationProperties(java.lang.String propertiesFilename) throws java.io.IOException
ReadApplicationProperties
from the specified file path relative to the current working directory.The given properties file is expected to have the
ApplicationProperties.APPLICATION_NAME_PROPERTY
andApplicationProperties.APPLICATION_VERSION_PROPERTY
properties set.- Parameters:
propertiesFilename
- the name of the properties file.- Returns:
- application properties
- Throws:
java.io.IOException
- if file read error occurs
-
showSpashScreen
public void showSpashScreen(javax.swing.ImageIcon splashIcon)
-
setWindowsIcons
public void setWindowsIcons(java.util.List<java.awt.Image> windowsIcons)
-
setHomeIcon
public void setHomeIcon(javax.swing.ImageIcon icon)
-
setHomeCallback
public void setHomeCallback(java.lang.Runnable callback)
-
start
public void start()
-
showTool
protected void showTool()
-
createTool
protected PluginTool createTool()
-
initializeTool
protected void initializeTool(StandAlonePluginTool newTool)
-
exit
public void exit()
- Specified by:
exit
in interfaceGenericStandAloneApplication
-
getToolServices
public ToolServices getToolServices()
- Specified by:
getToolServices
in interfaceGenericStandAloneApplication
-
-