avoid the opening of many error dialogs if an element is not present.

This commit is contained in:
helmut.neemann 2016-11-08 15:52:07 +01:00
parent 1e8226c1f4
commit acdecd1686
3 changed files with 155 additions and 155 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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)

View File

@ -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();
}
}
}