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