Exemplo n.º 1
0
 /**
  * Logs an internal error with the specified message.
  *
  * @param message the error message to log
  */
 public static void logErrorMessage(String message) {
   // this message is intentionally not internationalized, as an exception may
   // be due to the resource bundle itself
   log(
       newErrorStatus(
           IDsfStatusConstants.INTERNAL_ERROR,
           "Internal message logged from Debug UI: " + message,
           null)); //$NON-NLS-1$
 }
 /* (non-Javadoc)
  * @see org.eclipse.jface.dialogs.Dialog#okPressed()
  */
 @Override
 protected void okPressed() {
   String text = getValue();
   try {
     DsfUIPlugin.getDefault()
         .getPreferenceStore()
         .setValue(IDebugUIConstants.PREF_MAX_DETAIL_LENGTH, Integer.parseInt(text));
   } catch (NumberFormatException e) {
     DsfUIPlugin.log(e);
   }
   super.okPressed();
 }
Exemplo n.º 3
0
 /**
  * Logs the specified throwable with this plug-in's log.
  *
  * @param t throwable to log
  */
 public static void log(Throwable t) {
   log(
       newErrorStatus(
           IDsfStatusConstants.INTERNAL_ERROR, "Error logged from Debug UI: ", t)); // $NON-NLS-1$
 }