예제 #1
1
 /**
  * Show a message in a warning dialog window.
  *
  * @param errorTitle title for warning dialog.
  * @param errorMSG warning message.
  */
 public static void reportWarning(String errorTitle, String errorMSG) {
   ErrorDialog.showMessageDialog(
       PatchEdit.getInstance() /*[email protected]*/,
       errorMSG,
       errorTitle,
       JOptionPane.WARNING_MESSAGE);
   if ((debugLevel & DEBUG_MSG) != 0) System.out.println("WRN> '" + errorMSG + "' reported.");
   if ((debugLevel & DUMP_STACK) != 0) Thread.dumpStack();
 }
예제 #2
0
 /**
  * Show a message in a warning dialog window with an <code>Exception</code> information.
  *
  * @param errorTitle title for warning dialog.
  * @param errorMSG warning message.
  * @param e an <code>Exception</code> value
  */
 public static void reportWarning(String errorTitle, String errorMSG, Exception e) {
   ErrorDialog.showMessageDialog(
       PatchEdit.getInstance() /*[email protected]*/,
       errorMSG,
       errorTitle,
       JOptionPane.WARNING_MESSAGE);
   if ((debugLevel & DEBUG_MSG) != 0) {
     System.out.println("WRN> '" + errorMSG + "' reported.");
     System.out.println("WRN> [Exception] " + e.getMessage());
   }
   if ((debugLevel & DUMP_STACK) != 0) e.printStackTrace(System.out);
 }