void validateFolder() { assert notificationLineSupport != null; String docFolder = getDocFolder(); String error = FileUtils.validateDirectory(docFolder, true); if (error != null) { notificationLineSupport.setErrorMessage(error); dialogDescriptor.setValid(false); return; } notificationLineSupport.clearMessages(); dialogDescriptor.setValid(true); }
private void error(String message) { System.out.println("error: " + message); if (notificationLineSupport != null) { System.out.println("nls: " + message); notificationLineSupport.setErrorMessage(message); } }
private void warn(String message) { if (notificationLineSupport != null) { notificationLineSupport.setWarningMessage(message); } }
private void info(String message) { if (notificationLineSupport != null) { notificationLineSupport.setInformationMessage(message); } }
private void clearNotificationLineSupport() { if (notificationLineSupport != null) { notificationLineSupport.clearMessages(); } }