예제 #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();
   }
 }
예제 #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();
   }
 }
예제 #4
0
 @Execute
 public void execute(IWorkbench workbench) {
   workbench.close();
 }