Пример #1
0
 public static VisualiserUpdateJob getInstance() {
   if (theJob == null) {
     theJob = new VisualiserUpdateJob(VisualiserMessages.Jobs_VisualiserUpdate);
     theJob.setUser(true);
     theJob.setPriority(Job.INTERACTIVE);
   }
   return theJob;
 }
Пример #2
0
 /** Refresh the Visualiser views. */
 public static void refresh() {
   if (visualiser != null && visualiser.getSite() != null) {
     if (visualiser.getSite().getPage().isPartVisible(visualiser)) {
       VisualiserUpdateJob.getInstance().schedule();
     } else {
       visualiser.setNeedsUpdating();
     }
   }
 }