mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-0 Make FIDAnalyzer options names public to avoid hard coded strings
in tests and scripts
This commit is contained in:
parent
92aecad61c
commit
b0e55733c1
1 changed files with 4 additions and 4 deletions
|
@ -38,11 +38,11 @@ public class FidAnalyzer extends AbstractAnalyzer {
|
|||
private FidService service;
|
||||
|
||||
// Options
|
||||
private static final String OPTION_NAME_CREATE_BOOKMARKS = "Create Analysis Bookmarks";
|
||||
public static final String OPTION_NAME_CREATE_BOOKMARKS = "Create Analysis Bookmarks";
|
||||
private static final String OPTION_DESCRIPTION_CREATE_BOOKMARKS =
|
||||
"If checked, an analysis bookmark will be created for each function which was matched " +
|
||||
"against one or more known library functions.";
|
||||
private static final String APPLY_ALL_FID_LABELS_OPTION_NAME = "Always apply FID labels";
|
||||
public static final String APPLY_ALL_FID_LABELS_OPTION_NAME = "Always apply FID labels";
|
||||
private static final String APPLY_ALL_FID_LABELS_OPTION_DESCRIPTION = "Enable this option to " +
|
||||
"always apply FID labels at functions regardless of existing labels at that function." +
|
||||
" When enabled, FID labels will always be added." +
|
||||
|
@ -57,13 +57,13 @@ public class FidAnalyzer extends AbstractAnalyzer {
|
|||
private boolean alwaysApplyFidLabels = APPLY_ALL_FID_LABELS_DEFAULT;
|
||||
private boolean createBookmarksEnabled = OPTION_DEFAULT_CREATE_BOOKMARKS_ENABLED;
|
||||
|
||||
private static final String SCORE_THRESHOLD_OPTION_NAME = "Instruction count threshold";
|
||||
public static final String SCORE_THRESHOLD_OPTION_NAME = "Instruction count threshold";
|
||||
private static final String SCORE_THRESHOLD_OPTION_DESCRIPTION =
|
||||
"The minimum score that a potential match must meet to be labeled by the analyzer. " +
|
||||
"Score corresponds roughly to the number of instructions in the function.";
|
||||
private float scoreThreshold;
|
||||
|
||||
private static final String MULTIMATCH_THRESHOLD_OPTION_NAME = "Multiple match threshold";
|
||||
public static final String MULTIMATCH_THRESHOLD_OPTION_NAME = "Multiple match threshold";
|
||||
private static final String MULTIMATCH_THRESHOLD_OPTION_DESCRIPTION =
|
||||
"If there are multiple conflicting matches for a function, its score must exceed " +
|
||||
"this secondary threshold in order to be labeled by the analyzer";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue