/** * Returns a new <code>Job</code> to update the specified labels. This method * is used to determine if a UI job is needed or not, in the event the request for an update * job has come from a non-UI thread. * @param updates an array of pending label updates * @return a new <code>Job</code> to update labels with. */ private Job newLabelJob(ILabelUpdate[] updates) { if (requiresUIJob(updates)) { return new UILabelJob(); } else { return new LabelJob(); } }
public UILabelJob() { super("Label Job"); //$NON-NLS-1$ setSystem(true); }