All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.ui.progress.IJobRunnable Maven / Gradle / Ivy

There is a newer version: 3.108.0.v20160602-1232
Show newest version
/*******************************************************************************
 * Copyright (c) 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 ******************************************************************************/

package org.eclipse.ui.progress;

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;

/**
 * Interface for runnables that can be run as jobs.
 *
 * @since 3.3
 */
public interface IJobRunnable {

	/**
	 * Executes this runnable. Returns the result of the execution.
	 * 

* The provided monitor can be used to report progress and respond to * cancellation. If the progress monitor has been canceled, the runnable should * finish its execution at the earliest convenience and return a result * status of severity IStatus.CANCEL. The singleton cancel * status Status.CANCEL_STATUS can be used for this purpose. *

* * @param monitor * the monitor to be used for reporting progress and responding * to cancelation. The monitor is never null * @return resulting status of the run. The result must not be * null */ public IStatus run(IProgressMonitor monitor); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy