Project

General

Profile

« Previous | Next » 

Revision 41e2f693

Added by Cherian Mathew over 9 years ago

Moved all logging and dialog functionality to the new class MessagingUtils.
Refactoring code to adapt to above change.
Added new custom error dialog - CdmErrorDialog
Added runtime exception handling to the ApplicationWorkbenchAdvisor by adding a custom status handler

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/entitycreator/UserCreator.java
18 18
import eu.etaxonomy.cdm.api.service.IUserService;
19 19
import eu.etaxonomy.cdm.model.common.User;
20 20
import eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator;
21
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditorUtil;
21
import eu.etaxonomy.taxeditor.model.MessagingUtils;
22 22
import eu.etaxonomy.taxeditor.store.CdmStore;
23 23

  
24 24
/**
......
46 46
			CdmStore.getService(IUserService.class).createUser(user);
47 47
			return user;
48 48
		} catch (AccessDeniedException e){
49
			BulkEditorUtil.errorDialog("Access denied", getClass(), e.getMessage(), e);
49
			MessagingUtils.messageDialog("Access denied", getClass(), e.getMessage(), e);
50 50
			return null;
51 51
		}
52 52
	}

Also available in: Unified diff