1 11 package org.eclipse.jdt.internal.debug.ui.launcher; 12 13 14 import org.eclipse.core.runtime.IStatus; 15 import org.eclipse.debug.core.IStatusHandler; 16 import org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin; 17 import org.eclipse.jface.dialogs.MessageDialog; 18 19 23 public class VMConnectTimeoutStatusHandler implements IStatusHandler { 24 25 28 public Object handleStatus(IStatus status, Object source) { 29 final boolean[] result = new boolean[1]; 30 JDIDebugUIPlugin.getStandardDisplay().syncExec(new Runnable () { 31 public void run() { 32 String title= LauncherMessages.VMConnectTimeoutStatusHandler_Java_Application_1; 33 String message= LauncherMessages.jdkLauncher_error_timeout; 34 result[0]= (MessageDialog.openQuestion(JDIDebugUIPlugin.getActiveWorkbenchShell(), title, message)); 35 } 36 }); 37 return Boolean.valueOf(result[0]); 38 } 39 } 40 | Popular Tags |