initializationScreenContext(Constants.STUDY_MENU, Constants.STUDY_MENU,
Constants.TRUE);
- if (_action == ToDo.cancel) {
- res = "cancel";
- } else if (_documentType == 0) {
+ if (_documentType == 0) {
setErrorCode("message.error.import.type");
initializationFullScreenContext(Constants.STUDY_MENU,
//
// if (send != null) send.converts(addoc); // Asynchronous process
- _mystudy.add(addoc); // Updates the presentation
+ if (uses.isEmpty()) {
+ _mystudy.add(addoc); // Updates the presentation
+ } else {
+ // Re-opening (refreshing) the currently open study
+ refreshStudy();
+ }
res = SUCCESS;
} catch (FileNotFoundException error) {
LOG.error("Reason:", error);