1 8 package com.mountainminds.eclemma.internal.ui.launching; 9 10 import org.eclipse.core.runtime.CoreException; 11 import org.eclipse.core.runtime.IStatus; 12 import org.eclipse.debug.core.IStatusHandler; 13 import org.eclipse.jface.dialogs.MessageDialog; 14 import org.eclipse.swt.widgets.Shell; 15 16 import com.mountainminds.eclemma.internal.ui.EclEmmaUIPlugin; 17 import com.mountainminds.eclemma.internal.ui.UIMessages; 18 19 26 public class NoCoverageDataHandler implements IStatusHandler { 27 28 public Object handleStatus(IStatus status, Object source) 29 throws CoreException { 30 31 Shell parent = EclEmmaUIPlugin.getInstance().getShell(); 32 String title = UIMessages.NoCoverageDataError_title; 33 String message = UIMessages.NoCoverageDataError_message; 34 35 MessageDialog.openError(parent, title, message); 36 return Boolean.FALSE; 37 } 38 39 } 40 | Popular Tags |