/**
 * Handler class providing execute method for exiting Atomic. 
 */
package de.uni_jena.iaa.linktype.atomic.handlers;

import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.ui.workbench.IWorkbench;

public class ExitHandler {
	/**
	 * Handles exiting the Atomic workbench.
	 * @param workbench The current workbench
	 */
	@Execute
	public void execute(IWorkbench workbench) {
		workbench.close();
	}
		
}
@@ -115,16 +115,100 @@
 dlers;%0A%0A
+import org.apache.logging.log4j.LogManager;%0Aimport org.apache.logging.log4j.Logger;%0A
 import o
@@ -250,16 +250,16 @@
 xecute;%0A
-
 import o
@@ -325,16 +325,89 @@
 ndler %7B%0A
+%09%0A%09private static Logger log = LogManager.getLogger(ExitHandler.class);%0A%0A
 %09/**%0A%09 *
@@ -554,26 +554,260 @@
 %7B%0A%09%09
-workbench.close();
+log.trace(%22Close Atomic workbench.%22);%0A%09%09boolean shutdownSuccess = workbench.close();%0A%09%09if (!shutdownSuccess) %7B%0A%09%09%09log.error(%22Shutdown of Atomic workbench did not complete successfully.%22);%0A%09%09%7D%0A%09%09else %7B%0A%09%09%09log.trace(%22Atomic shut down successfully.%22);%0A%09%09%7D
 %0A%09%7D%0A

Add log messages to ExitHandler