mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
GHelpBuilder fix to allow theme usage in headless
This commit is contained in:
parent
3586062eb4
commit
65542e9937
10 changed files with 332 additions and 258 deletions
|
@ -21,7 +21,7 @@ import java.nio.file.Path;
|
|||
import java.nio.file.Paths;
|
||||
import java.util.*;
|
||||
|
||||
import generic.theme.ApplicationThemeManager;
|
||||
import generic.theme.HeadlessThemeManager;
|
||||
import ghidra.framework.Application;
|
||||
import ghidra.framework.ApplicationConfiguration;
|
||||
import help.validator.*;
|
||||
|
@ -69,12 +69,11 @@ public class GHelpBuilder {
|
|||
ApplicationConfiguration config = new ApplicationConfiguration() {
|
||||
@Override
|
||||
protected void initializeApplication() {
|
||||
ApplicationThemeManager.initialize();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isHeadless() {
|
||||
return false;
|
||||
//
|
||||
// We must be headless, as we are utility class. But, we also need theme properties
|
||||
// to be loaded and correct for the help system to function properly.
|
||||
//
|
||||
HeadlessThemeManager.initialize();
|
||||
}
|
||||
};
|
||||
Application.initializeApplication(new HelpApplicationLayout("Help Builder", "0.1"), config);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue