org.eclipse.ui.progress.IJobRunnable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of workbench Show documentation
Show all versions of workbench Show documentation
This plug-in contains the bulk of the Workbench implementation, and depends on JFace, SWT, and Core Runtime. It cannot be used independently from org.eclipse.ui. Workbench client plug-ins should not depend directly on this plug-in.
The 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