If the one-time action timeout in Ghidra is around 100 seconds and you can't find it directly in the OneTimeActionDialog class, it might be defined elsewhere in the codebase. Here are some steps to help you locate it:
Steps to Find the Timeout:
-
Search the Entire Codebase:
-
Check Related Classes and Configurations:
- Look into classes and configuration files that handle user interactions, dialogs, or timeouts.
- Some potential classes to check include
Dialog, TaskLauncher, ProgressMonitor, and any other classes that manage user interactions or background tasks.
-
Review Configuration Files:
- Ghidra uses configuration files for various settings. Check if the timeout is defined in any of these files.
- Common configuration files are located in the
config directory within the Ghidra installation.
-
Use Ghidra's Debugging Tools:
- If you have access to the source code, you can run Ghidra in a debugging mode and set breakpoints to trace where the timeout is being set.
Example Search in Related Classes:
-
TaskLauncher Class:
- This class might handle background tasks and could have a timeout setting.
- Location:
ghidra/framework/main/TaskLauncher.java
-
ProgressMonitor Class:
- This class might be used to monitor long-running tasks and could have a timeout setting.
- Location:
ghidra/framework/main/ProgressMonitor.java
Example Code Snippet (Hypothetical):
If the timeout is set in a configuration file or a different class, it might look something like this:
public class SomeTimeoutConfig {
public static final int ONE_TIME_ACTION_TIMEOUT_MS = 100000; // 100 seconds
}
Conclusion:
If you still can't find the exact location, consider reaching out to the Ghidra community or checking the Ghidra documentation and forums for more specific guidance. The community might have encountered similar issues and could provide insights or direct you to the correct location in the codebase.