1
/*******************************************************************************
2
* Copyright (C) 2008, 2013, Guillaume Brocker
4
* All rights reserved. This program and the accompanying materials
5
* are made available under the terms of the Eclipse Public License v1.0
6
* which accompanies this distribution, and is available at
7
* http://www.eclipse.org/legal/epl-v10.html
10
* Guillaume Brocker - Initial API and implementation
12
******************************************************************************/
16
import org.eclipse.core.runtime.jobs.IJobChangeEvent;
17
import org.eclipse.core.runtime.jobs.JobChangeAdapter;
18
import org.eclipse.swt.widgets.Display;
20
import eclox.core.doxygen.BuildJob;
23
* @brief Monitors all doxygen build jobs and report errors
24
* concerning doxygen invokation failures.
28
public class JobMonitor extends JobChangeAdapter {
31
* @see org.eclipse.core.runtime.jobs.JobChangeAdapter#done(org.eclipse.core.runtime.jobs.IJobChangeEvent)
33
public void done(IJobChangeEvent event) {
35
if( event.getJob().belongsTo(BuildJob.FAMILY) && event.getResult().getCode() == BuildJob.ERROR_DOXYGEN_NOT_FOUND ) {
36
Display display = Plugin.getDefault().getWorkbench().getDisplay();
43
Plugin.editPreferencesAfterDoxygenInvocationFailed();