Package ghidra.framework.plugintool
Class StandAloneApplication
java.lang.Object
ghidra.framework.plugintool.StandAloneApplication
- All Implemented Interfaces:
GenericStandAloneApplication
-
Field Summary
Modifier and TypeFieldDescriptionprotected DockingApplicationConfiguration
protected ApplicationLayout
protected PluginTool
-
Constructor Summary
ConstructorDescriptionStandAloneApplication
(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 PluginTool
void
exit()
protected void
initializeTool
(StandAlonePluginTool newTool) static ApplicationProperties
readApplicationProperties
(String propertiesFilename) ReadApplicationProperties
from the specified file path relative to the current working directory.void
setHomeCallback
(Runnable callback) void
setHomeIcon
(ImageIcon icon) void
setWindowsIcons
(List<Image> windowsIcons) void
showSpashScreen
(ImageIcon splashIcon) protected void
showTool()
void
start()
-
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_PROPERTY
andApplicationProperties.APPLICATION_VERSION_PROPERTY
properties 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 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:
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:
exit
in interfaceGenericStandAloneApplication
-
getToolServices
- Specified by:
getToolServices
in interfaceGenericStandAloneApplication
-