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.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/handler/GeneratePdfHandler.java
27 27
import eu.etaxonomy.cdm.print.out.pdf.PdfOutputModule;
28 28
import eu.etaxonomy.cdm.print.out.xml.XMLOutputModule;
29 29
import eu.etaxonomy.taxeditor.editor.TaxonEditorInput;
30
import eu.etaxonomy.taxeditor.model.MessagingUtils;
30 31
import eu.etaxonomy.taxeditor.printpublisher.PrintUtil;
31 32
import eu.etaxonomy.taxeditor.printpublisher.wizard.DirectPublishingWizard;
32 33
import eu.etaxonomy.taxeditor.store.CdmStore;
33
import eu.etaxonomy.taxeditor.store.StoreUtil;
34 34

  
35 35
/**
36 36
 * <p>GeneratePdfHandler class.</p>
......
51 51
		IEditorInput input = editor.getEditorInput();
52 52
		
53 53
		if(!(input instanceof TaxonEditorInput)){
54
			StoreUtil.warningDialog("PDF generation not supported for selected input", this, "Generating PDF output is not supported for the current active editor");
54
			MessagingUtils.warningDialog("PDF generation not supported for selected input", this, "Generating PDF output is not supported for the current active editor");
55 55
			
56 56
			return null;
57 57
		}

Also available in: Unified diff