コード例 #1
0
  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);
  }
コード例 #2
0
 private void error(String message) {
   System.out.println("error: " + message);
   if (notificationLineSupport != null) {
     System.out.println("nls: " + message);
     notificationLineSupport.setErrorMessage(message);
   }
 }
コード例 #3
0
 private void warn(String message) {
   if (notificationLineSupport != null) {
     notificationLineSupport.setWarningMessage(message);
   }
 }
コード例 #4
0
 private void info(String message) {
   if (notificationLineSupport != null) {
     notificationLineSupport.setInformationMessage(message);
   }
 }
コード例 #5
0
 private void clearNotificationLineSupport() {
   if (notificationLineSupport != null) {
     notificationLineSupport.clearMessages();
   }
 }