1 package sampleercp.handlers;
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;
8 public class QuitHandler {
10 public void execute(IWorkbench workbench, Shell shell) {
11 if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) {