/** * resets the name of this console to the original computed name */ private void resetName() { final String newName = computeName(); String name = getName(); if (!name.equals(newName)) { UIJob job = new UIJob("Update console title") { //$NON-NLS-1$ @Override public IStatus runInUIThread(IProgressMonitor monitor) { ProcessConsole.this.setName(newName); warnOfContentChange(); return Status.OK_STATUS; } }; job.setSystem(true); job.schedule(); } }