Package ghidra.framework.plugintool
Class StandAloneApplication
java.lang.Object
ghidra.framework.plugintool.StandAloneApplication
- All Implemented Interfaces:
GenericStandAloneApplication
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DockingApplicationConfigurationprotected ApplicationLayoutprotected PluginTool -
Constructor Summary
ConstructorsConstructorDescriptionStandAloneApplication(String propertiesFilename) Creates a new application using the given properties filename.StandAloneApplication(String name, String version) Creates a new application using the specified application name and version.StandAloneApplication(ApplicationLayout applicationLayout) Creates a new application using the given application layout and associated application properties. -
Method Summary
Modifier and TypeMethodDescriptionprotected PluginToolvoidexit()protected voidinitializeTool(StandAlonePluginTool newTool) static ApplicationPropertiesreadApplicationProperties(String propertiesFilename) ReadApplicationPropertiesfrom the specified file path relative to the current working directory.voidsetHomeCallback(Runnable callback) voidsetHomeIcon(ImageIcon icon) voidsetWindowsIcons(List<Image> windowsIcons) voidshowSpashScreen(ImageIcon splashIcon) protected voidshowTool()voidstart()
-
Field Details
-
layout
-
configuration
-
tool
-
-
Constructor Details
-
StandAloneApplication
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_PROPERTYandApplicationProperties.APPLICATION_VERSION_PROPERTYproperties set.- Parameters:
propertiesFilename- the name of the properties file.- Throws:
IOException- error causing application initialization failure
-
StandAloneApplication
Creates a new application using the specified application name and version.- Parameters:
name- application nameversion- application version- Throws:
IOException- error causing application initialization failure
-
StandAloneApplication
Creates a new application using the given application layout and associated application properties.- Parameters:
applicationLayout- application layout
-
-
Method Details
-
readApplicationProperties
public static ApplicationProperties readApplicationProperties(String propertiesFilename) throws 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:
IOException- if file read error occurs
-
showSpashScreen
-
setWindowsIcons
-
setHomeIcon
-
setHomeCallback
-
start
public void start() -
showTool
protected void showTool() -
createTool
-
initializeTool
-
exit
public void exit()- Specified by:
exitin interfaceGenericStandAloneApplication
-
getToolServices
- Specified by:
getToolServicesin interfaceGenericStandAloneApplication
-