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.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/operation/MoveMediaInListOperation.java
23 23
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
24 24
import eu.etaxonomy.cdm.model.media.Media;
25 25
import eu.etaxonomy.cdm.model.taxon.Taxon;
26
import eu.etaxonomy.taxeditor.model.MessagingUtils;
26 27
import eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation;
27 28
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
28
import eu.etaxonomy.taxeditor.store.StoreUtil;
29 29

  
30 30
/**
31 31
 * <p>MoveMediaInListOperation class.</p>
......
107 107
		Set<DescriptionElementBase> elements = description.getElements();
108 108
		
109 109
		if(elements.size() != 1){
110
			StoreUtil.error(this.getClass(), "More than one description element in this image gallery", null);
110
			MessagingUtils.error(this.getClass(), "More than one description element in this image gallery", null);
111 111
		}
112 112
		
113 113
		DescriptionElementBase element = elements.iterator().next();
......
125 125
			try{
126 126
				Collections.swap(medias, newIndex, index);
127 127
			}catch(ArrayIndexOutOfBoundsException e){
128
				StoreUtil.error(this.getClass(), e);
128
				MessagingUtils.error(this.getClass(), e);
129 129
			}
130 130
		}	
131 131
	}

Also available in: Unified diff