mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-19 09:54:49 -04:00
avoid the opening of many error dialogs if an element is not present.
This commit is contained in:
parent
1e8226c1f4
commit
acdecd1686
File diff suppressed because it is too large
Load Diff
@ -154,7 +154,7 @@ public class ElementLibrary implements Iterable<ElementLibrary.ElementContainer>
|
||||
try {
|
||||
description = elementNotFoundNotification.elementNotFound(file);
|
||||
} catch (IOException e) {
|
||||
throw new ElementNotFoundException(Lang.get("err_element_N_notFound", elementName));
|
||||
throw new ElementNotFoundException(Lang.get("msg_errorImportingModel", elementName));
|
||||
}
|
||||
|
||||
if (description != null)
|
||||
|
@ -87,7 +87,7 @@ public class LibrarySelector implements ElementNotFoundNotification {
|
||||
insertHistory.add(imp.insertAction);
|
||||
}
|
||||
} catch (IOException e1) {
|
||||
new ErrorMessage().addCause(e1).show();
|
||||
new ErrorMessage(Lang.get("msg_errorImportingModel")).addCause(e1).show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user