GP-1660 - fixed Swing thread access issue; fixed improper test names

This commit is contained in:
dragonmacher 2022-04-25 15:03:36 -04:00
parent b026a5f53a
commit 40248f7157

View File

@ -60,8 +60,7 @@ import ghidra.program.model.address.AddressSetView;
import ghidra.program.model.data.*;
import ghidra.program.model.listing.DataTypeArchive;
import ghidra.program.model.listing.Program;
import ghidra.util.HelpLocation;
import ghidra.util.Msg;
import ghidra.util.*;
import ghidra.util.datastruct.LRUMap;
import ghidra.util.task.TaskLauncher;
@ -612,9 +611,11 @@ public class DataTypeManagerPlugin extends ProgramPlugin
@Override
public void setDataTypeSelected(DataType dataType) {
if (provider.isVisible()) {
provider.setDataTypeSelected(dataType);
}
Swing.runIfSwingOrRunLater(() -> {
if (provider.isVisible()) {
provider.setDataTypeSelected(dataType);
}
});
}
@Override