edvin
alert(Alert.AlertType.WARNING, "changed not saved", "you should save before exiting", ButtonType.CANCEL, ButtonType.OK)