public class ExportBreakpointsOperation extends Object implements IRunnableWithProgress
This class may be instantiated; not intended to be subclassed.
Constructor and Description |
---|
ExportBreakpointsOperation(IBreakpoint[] breakpoints,
String fileName)
Constructs an operation to export breakpoints to a file.
|
public ExportBreakpointsOperation(IBreakpoint[] breakpoints, String fileName)
breakpoints
- the breakpoints to exportfileName
- absolute path of file to export breakpoints to - the file
will be overwritten if it already existspublic void run(IProgressMonitor monitor) throws InvocationTargetException
IRunnableWithProgress
IRunnableContext
's run
method,
which supplies the progress monitor.
A request to cancel the operation should be honored and acknowledged
by throwing InterruptedException
.run
in interface IRunnableWithProgress
monitor
- the progress monitor to use to display progress and receive
requests for cancelationInvocationTargetException
- if the run method must propagate a checked exception,
it should wrap it inside an InvocationTargetException
; runtime exceptions are automatically
wrapped in an InvocationTargetException
by the calling contextIRunnableContext.run(boolean, boolean, org.eclipse.jface.operation.IRunnableWithProgress)
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.