@Override
public void onTextAvailable(ProcessEvent event, Key outputType) {
String[] lines = event.getText().split("\\n");
if (lines.length > 0) {
if (lines[0].matches("Error: : unknown option `-python'.")) {
handler.detachProcess();
handler.removeProcessListener(this);
context.errorHandler("Currently active Haxe toolkit doesn't supports Python target. Please install latest version of Haxe toolkit");
Notifications.Bus.notify(
new Notification("", "Current version of Haxe toolkit doesn't supports Python target", "You can download latest version of Haxe toolkit at <a href='http://haxe.org/download'>haxe.org/download</a> ", NotificationType.WARNING, NotificationListener.URL_OPENING_LISTENER));
return;