Class ExportBreakpointsOperation

  • All Implemented Interfaces:
    IRunnableWithProgress

    public class ExportBreakpointsOperation
    extends Object
    implements IRunnableWithProgress
    Exports breakpoints to a file or string buffer.

    This class may be instantiated.

    Since:
    3.2
    Restriction:
    This class is not intended to be sub-classed by clients.
    • Constructor Detail

      • ExportBreakpointsOperation

        public ExportBreakpointsOperation​(IBreakpoint[] breakpoints,
                                          String fileName)
        Constructs an operation to export breakpoints to a file.
        Parameters:
        breakpoints - the breakpoints to export
        fileName - absolute path of file to export breakpoints to - the file will be overwritten if it already exists
      • ExportBreakpointsOperation

        public ExportBreakpointsOperation​(IBreakpoint[] breakpoints)
        Constructs an operation to export breakpoints to a string buffer. The buffer is available after the operation is run via getBuffer().
        Parameters:
        breakpoints - the breakpoints to export
        Since:
        3.5
    • Method Detail

      • getBuffer

        public 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. The memento can be used to import breakpoints into the workspace using an ImportBreakpointsOperation.
        Returns:
        a string buffer containing a memento of the exported breakpoints or null if the operation was configured to export to a file
        Since:
        3.5