mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
Revert "GP-65 - Error Dialog - updated the error dialog to accumulate errors while it is open instead of repeatedly showing new dialogs"
This reverts commit 6d3ff619fd
.
This commit is contained in:
parent
2892aeadc7
commit
765bd8aa3d
12 changed files with 437 additions and 691 deletions
|
@ -89,7 +89,7 @@ abstract public class DataTypeManagerDB implements DataTypeManager {
|
|||
|
||||
protected DBHandle dbHandle;
|
||||
private AddressMap addrMap;
|
||||
private ErrorHandler errHandler = new DbErrorHandler();
|
||||
private ErrorHandler errHandler;
|
||||
private DataTypeConflictHandler currentHandler;
|
||||
|
||||
private CategoryDB root;
|
||||
|
@ -168,7 +168,12 @@ abstract public class DataTypeManagerDB implements DataTypeManager {
|
|||
*/
|
||||
protected DataTypeManagerDB() {
|
||||
this.lock = new Lock("DataTypeManagerDB");
|
||||
|
||||
errHandler = new ErrorHandler() {
|
||||
@Override
|
||||
public void dbError(IOException e) {
|
||||
Msg.showError(this, null, "IO ERROR", e.getMessage(), e);
|
||||
}
|
||||
};
|
||||
try {
|
||||
dbHandle = new DBHandle();
|
||||
int id = startTransaction("");
|
||||
|
@ -208,6 +213,13 @@ abstract public class DataTypeManagerDB implements DataTypeManager {
|
|||
") for read-only Datatype Archive: " + packedDBfile.getAbsolutePath());
|
||||
}
|
||||
|
||||
errHandler = new ErrorHandler() {
|
||||
@Override
|
||||
public void dbError(IOException e) {
|
||||
Msg.showError(this, null, "IO ERROR", e.getMessage(), e);
|
||||
}
|
||||
};
|
||||
|
||||
// Open packed database archive
|
||||
boolean openSuccess = false;
|
||||
PackedDatabase pdb = null;
|
||||
|
@ -4077,20 +4089,6 @@ abstract public class DataTypeManagerDB implements DataTypeManager {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
private class DbErrorHandler implements ErrorHandler {
|
||||
|
||||
@Override
|
||||
public void dbError(IOException e) {
|
||||
|
||||
String message = e.getMessage();
|
||||
if (e instanceof ClosedException) {
|
||||
message = "Data type archive is closed: " + getName();
|
||||
}
|
||||
|
||||
Msg.showError(this, null, "IO ERROR", message, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue