Beispiel #1
0
 @Execute
 public void execute(
     IWorkbench workbench,
     IEclipseContext context,
     @Named(IServiceConstants.ACTIVE_SHELL) Shell shell)
     throws InvocationTargetException, InterruptedException {
   if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) {
     workbench.close();
   }
 }
Beispiel #2
0
 @Execute
 void close(IWorkbench workbench) {
   workbench.close();
 }
 @Execute
 public void execute(IWorkbench workbench, Shell shell) {
   if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) {
     workbench.close();
   }
 }
 @Execute
 public void execute(IWorkbench workbench) {
   workbench.close();
 }