1 11 package org.eclipse.ui.progress; 12 13 import java.lang.reflect.InvocationTargetException ; 14 15 import org.eclipse.core.runtime.jobs.ISchedulingRule; 16 import org.eclipse.core.runtime.jobs.Job; 17 import org.eclipse.jface.operation.IRunnableContext; 18 import org.eclipse.jface.operation.IRunnableWithProgress; 19 import org.eclipse.jface.resource.ImageDescriptor; 20 import org.eclipse.swt.graphics.Image; 21 import org.eclipse.swt.widgets.Shell; 22 23 37 public interface IProgressService extends IRunnableContext { 38 39 46 public int getLongOperationTime(); 47 48 55 public void registerIconForFamily(ImageDescriptor icon, Object family); 56 57 88 public void runInUI(IRunnableContext context, 89 IRunnableWithProgress runnable, ISchedulingRule rule) 90 throws InvocationTargetException , InterruptedException ; 91 92 100 public Image getIconFor(Job job); 101 102 118 public void busyCursorWhile(IRunnableWithProgress runnable) 119 throws InvocationTargetException , InterruptedException ; 120 121 128 public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable) throws InvocationTargetException , InterruptedException ; 129 130 143 public void showInDialog(Shell shell, Job job); 144 145 } 146 | Popular Tags |