Package ghidra.program.util
Class GhidraProgramUtilities
- java.lang.Object
-
- ghidra.program.util.GhidraProgramUtilities
-
public class GhidraProgramUtilities extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Program
getCurrentProgram(PluginTool tool)
returns the current program, given a tool, if a program is opened; otherwise returns null.static void
removeAnalyzedFlag(Program program)
Removes the analyzed flag from the program properties.static void
setAnalyzedFlag(Program program, boolean analyzed)
Sets the analyzed flag to the specified value.static boolean
shouldAskToAnalyze(Program program)
Returns true if the program contains the analyzed flag.
-
-
-
Method Detail
-
getCurrentProgram
public static Program getCurrentProgram(PluginTool tool)
returns the current program, given a tool, if a program is opened; otherwise returns null.
-
shouldAskToAnalyze
public static boolean shouldAskToAnalyze(Program program)
Returns true if the program contains the analyzed flag.- Parameters:
program
- the program to check for the property- Returns:
- true if the program contains the analyzed flag
-
removeAnalyzedFlag
public static void removeAnalyzedFlag(Program program)
Removes the analyzed flag from the program properties. With this property removed, the user will be prompted to analyze the program the next time it is opened.- Parameters:
program
- the program containing the property to be removed
-
setAnalyzedFlag
public static void setAnalyzedFlag(Program program, boolean analyzed)
Sets the analyzed flag to the specified value.- Parameters:
program
- the program to set propertyanalyzed
- the analyzed flag
-
-