Package ghidra.app.services
Interface EclipseIntegrationService
- 
 public interface EclipseIntegrationServiceService that provides Eclipse-related functionality.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ghidra.app.plugin.core.eclipse.EclipseConnectionconnectToEclipse(int port)Attempts to connect to Eclipse on the given port.java.io.FilegetEclipseExecutableFile()Gets the Eclipse executable file.ToolOptionsgetEclipseIntegrationOptions()Gets the Eclipse Integration options.java.io.FilegetEclipseWorkspaceDir()Gets the Eclipse workspace directory.voidhandleEclipseError(java.lang.String error, boolean askAboutOptions, java.lang.Throwable t)Displays the given Eclipse related error message in an error dialog.booleanisEclipseFeatureInstalled(java.io.FilenameFilter filter)Checks to see if a feature is installed in Eclipse.voidofferGhidraDevInstallation(TaskMonitor monitor)Offers to install GhidraDev into Eclipse's dropins directory.
 
- 
- 
- 
Method Detail- 
getEclipseIntegrationOptionsToolOptions getEclipseIntegrationOptions() Gets the Eclipse Integration options.- Returns:
- The Eclipse Integration options.
 
 - 
getEclipseExecutableFilejava.io.File getEclipseExecutableFile() throws java.io.FileNotFoundExceptionGets the Eclipse executable file.- Returns:
- The Eclipse executable file.
- Throws:
- java.io.FileNotFoundException- if the executable file does not exist.
 
 - 
getEclipseWorkspaceDirjava.io.File getEclipseWorkspaceDir() Gets the Eclipse workspace directory. If it is defined, the directory may or may not exist. If it is undefined, Eclipse will be in control of selecting a workspace directory to use.- Returns:
- The Eclipse workspace directory. The directory may or may not exist. Could return null if the workspace directory is undefined.
 
 - 
isEclipseFeatureInstalledboolean isEclipseFeatureInstalled(java.io.FilenameFilter filter) throws java.io.FileNotFoundExceptionChecks to see if a feature is installed in Eclipse.- Parameters:
- filter- A filename filter that matches the feature file to check.
- Returns:
- True if the specified feature is installed.
- Throws:
- java.io.FileNotFoundException- if Eclipse is not installed.
 
 - 
connectToEclipseghidra.app.plugin.core.eclipse.EclipseConnection connectToEclipse(int port) Attempts to connect to Eclipse on the given port. This may result in Eclipse being launched. If the launch and/or connection fails, an error message will be displayed.- Parameters:
- port- The port to connect to.
- Returns:
- The (possibly failed) connection.  Check the status of the EclipseConnectionfor details on the connection.
 
 - 
offerGhidraDevInstallationvoid offerGhidraDevInstallation(TaskMonitor monitor) Offers to install GhidraDev into Eclipse's dropins directory.- Parameters:
- monitor- The task monitor used to cancel the installation.
 
 - 
handleEclipseErrorvoid handleEclipseError(java.lang.String error, boolean askAboutOptions, java.lang.Throwable t)Displays the given Eclipse related error message in an error dialog.- Parameters:
- error- The error message to display in a dialog.
- askAboutOptions- True if we should ask the user if they want to be taken to the Eclipse options; otherwise, false.
- t- An optional throwable to tie to the message.
 
 
- 
 
-