Renamed project folders to match the respective project name
[Mograsim.git] / net.mograsim.rcp / src / net / mograsim / rcp / handlers / QuitHandler.java
1 package net.mograsim.rcp.handlers;
2
3 import org.eclipse.e4.core.di.annotations.Execute;
4 import org.eclipse.e4.ui.workbench.IWorkbench;
5 import org.eclipse.jface.dialogs.MessageDialog;
6 import org.eclipse.swt.widgets.Shell;
7
8 public class QuitHandler
9 {
10         @Execute
11         public void execute(IWorkbench workbench, Shell shell)
12         {
13                 if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?"))
14                 {
15                         workbench.close();
16                 }
17         }
18 }