public class ExportBreakpointsOperation extends Object implements IRunnableWithProgress
This class may be instantiated.
| Constructor and Description |
|---|
ExportBreakpointsOperation(IBreakpoint[] breakpoints)
Constructs an operation to export breakpoints to a string buffer.
|
ExportBreakpointsOperation(IBreakpoint[] breakpoints,
String fileName)
Constructs an operation to export breakpoints to a file.
|
| Modifier and Type | Method and Description |
|---|---|
StringBuffer |
getBuffer()
Returns a string buffer containing a memento of the exported breakpoints
or
null if the operation was configured to export to a file. |
void |
run(IProgressMonitor monitor)
Runs this operation.
|
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 ExportBreakpointsOperation(IBreakpoint[] breakpoints)
getBuffer().breakpoints - the breakpoints to exportpublic void run(IProgressMonitor monitor) throws InvocationTargetException
IRunnableWithProgressIRunnableContext'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 IRunnableWithProgressmonitor - 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)public StringBuffer getBuffer()
null if the operation was configured to export to a file.
The memento can be used to import breakpoints into the workspace using an
ImportBreakpointsOperation.null if the operation was configured to export to a file
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.