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 DockingApplicationConfigurationconfigurationprotected ApplicationLayoutlayoutprotected PluginTooltool
-
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 PluginToolcreateTool()voidexit()ToolServicesgetToolServices()protected voidinitializeTool(StandAlonePluginTool newTool)static ApplicationPropertiesreadApplicationProperties(java.lang.String propertiesFilename)ReadApplicationPropertiesfrom the specified file path relative to the current working directory.voidsetHomeCallback(java.lang.Runnable callback)voidsetHomeIcon(javax.swing.ImageIcon icon)voidsetWindowsIcons(java.util.List<java.awt.Image> windowsIcons)voidshowSpashScreen(javax.swing.ImageIcon splashIcon)protected voidshowTool()voidstart()
-
-
-
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.IOExceptionCreates 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_PROPERTYandApplicationProperties.APPLICATION_VERSION_PROPERTYproperties 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.IOExceptionCreates 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
ReadApplicationPropertiesfrom the specified file path relative to the current working directory.The given properties file is expected to have the
ApplicationProperties.APPLICATION_NAME_PROPERTYandApplicationProperties.APPLICATION_VERSION_PROPERTYproperties 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:
exitin interfaceGenericStandAloneApplication
-
getToolServices
public ToolServices getToolServices()
- Specified by:
getToolServicesin interfaceGenericStandAloneApplication
-
-