import org.eclipse.php.internal.debug.core.zend.model.PHPDebugTarget;
public class DebugErrorNotificationHandler implements IDebugMessageHandler {
public void handle(IDebugMessage message, PHPDebugTarget debugTarget) {
DebuggerErrorNotification parseError = (DebuggerErrorNotification) message;
IDebugHandler debugHandler = debugTarget.getRemoteDebugger()
.getDebugHandler();
int errorLevel = parseError.getErrorLevel();
DebugError debugError = new DebugError();
String errorText = parseError.getErrorText();
if (errorText != null && !errorText.equals("")) { //$NON-NLS-1$
debugError.setErrorText(errorText);
}
debugError.setCode(errorLevel);