private void format() {
   if (commit == null) {
     setDocument(new Document("")); // $NON-NLS-1$
     return;
   }
   if (formatJob != null && formatJob.getState() != Job.NONE) formatJob.cancel();
   scheduleFormatJob();
 }