1 11 package org.eclipse.debug.internal.ui.commands.actions; 12 13 import org.eclipse.core.runtime.IStatus; 14 import org.eclipse.debug.internal.ui.viewers.model.provisional.IStatusMonitor; 15 16 22 public abstract class AbstractRequestMonitor implements IStatusMonitor { 23 24 private IStatus fStatus; 25 private boolean fCancelled = false; 26 27 30 public void setStatus(IStatus status) { 31 fStatus = status; 32 } 33 34 37 public void beginTask(String name, int totalWork) { 38 } 39 40 43 public void internalWorked(double work) { 44 } 45 46 49 public boolean isCanceled() { 50 return fCancelled; 51 } 52 53 56 public void setCanceled(boolean value) { 57 fCancelled = value; 58 } 59 60 63 public void setTaskName(String name) { 64 } 65 66 69 public void subTask(String name) { 70 } 71 72 75 public void worked(int work) { 76 } 77 78 81 public IStatus getStatus() { 82 return fStatus; 83 } 84 } 85 | Popular Tags |