mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-1981 - Updated help to allow authors to use theme image ids; updated
help to only allow modules that live on the classpath. Dpdating themd documentation. Fixing gradle help build
This commit is contained in:
parent
c86b884daf
commit
45c52e3cb9
105 changed files with 1660 additions and 569 deletions
|
@ -21,7 +21,7 @@ import java.nio.file.Path;
|
|||
import java.nio.file.Paths;
|
||||
import java.util.*;
|
||||
|
||||
import ghidra.GhidraApplicationLayout;
|
||||
import generic.theme.Gui;
|
||||
import ghidra.framework.Application;
|
||||
import ghidra.framework.ApplicationConfiguration;
|
||||
import help.validator.*;
|
||||
|
@ -55,8 +55,8 @@ public class GHelpBuilder {
|
|||
|
||||
private String outputDirectoryName;
|
||||
private String moduleName;
|
||||
private Collection<File> dependencyHelpPaths = new LinkedHashSet<File>();
|
||||
private Collection<File> helpInputDirectories = new LinkedHashSet<File>();
|
||||
private Collection<File> dependencyHelpPaths = new LinkedHashSet<>();
|
||||
private Collection<File> helpInputDirectories = new LinkedHashSet<>();
|
||||
private static boolean debugEnabled = false;
|
||||
private boolean ignoreInvalid = false; // TODO: Do actual validation here
|
||||
|
||||
|
@ -66,9 +66,18 @@ public class GHelpBuilder {
|
|||
public static void main(String[] args) throws Exception {
|
||||
GHelpBuilder builder = new GHelpBuilder();
|
||||
builder.exitOnError = true;
|
||||
ApplicationConfiguration config = new ApplicationConfiguration() {
|
||||
@Override
|
||||
protected void initializeApplication() {
|
||||
Gui.initialize();
|
||||
}
|
||||
|
||||
ApplicationConfiguration config = new ApplicationConfiguration();
|
||||
Application.initializeApplication(new GhidraApplicationLayout(), config);
|
||||
@Override
|
||||
public boolean isHeadless() {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
Application.initializeApplication(new HelpApplicationLayout("Help Builder", "0.1"), config);
|
||||
|
||||
builder.build(args);
|
||||
}
|
||||
|
@ -98,7 +107,7 @@ public class GHelpBuilder {
|
|||
}
|
||||
|
||||
private HelpModuleCollection collectAllHelp() {
|
||||
List<File> allHelp = new ArrayList<File>(helpInputDirectories);
|
||||
List<File> allHelp = new ArrayList<>(helpInputDirectories);
|
||||
for (File file : dependencyHelpPaths) {
|
||||
allHelp.add(file);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue