mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GT-3542 - Symbol Tree - fixed flashing of the symbol tree while
analyzing; fixed bad progress of Decompiler Parameter ID analyzer; fixed odd progress updating of ConcurrentQ
This commit is contained in:
parent
e9ac056f90
commit
30db29d1ce
12 changed files with 98 additions and 58 deletions
|
@ -84,21 +84,18 @@ public class Swing {
|
|||
}
|
||||
|
||||
/**
|
||||
* A development/testing time method to make sure the current thread is the swing thread.
|
||||
* @param errorMessage The message to display when the assert fails
|
||||
* Logs a stack trace if the current calling thread is not the Swing thread
|
||||
* @param errorMessage The message to display when not on the Swing thread
|
||||
* @return true if the calling thread is the Swing thread
|
||||
*/
|
||||
public static void assertThisIsTheSwingThread(String errorMessage) {
|
||||
boolean isProductionMode =
|
||||
!SystemUtilities.isInTestingMode() && !SystemUtilities.isInDevelopmentMode();
|
||||
if (isProductionMode) {
|
||||
return; // squash during production mode
|
||||
}
|
||||
|
||||
public static boolean assertSwingThread(String errorMessage) {
|
||||
if (!isSwingThread()) {
|
||||
Throwable t =
|
||||
ReflectionUtilities.filterJavaThrowable(new AssertException(errorMessage));
|
||||
Msg.error(SystemUtilities.class, errorMessage, t);
|
||||
Msg.error(Swing.class, errorMessage, t);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue