|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICrystalDocumentSaveBehavior
This interface defines a save behavior for a ICrystalReportsEditor
object.
By defining a save behavior, you can save a report to a custom location or a custom format.
To use this class, return an object that implements this interface from a class
that implements the IEditorInput.getAdapter
method.
EditorUtilities.getDefaultSaveBehavior()
Method Summary | |
---|---|
IEditorInput |
doSave(ICrystalReportsEditor editor,
IProgressMonitor progress)
Saves the editor. |
IEditorInput |
doSaveAs(ICrystalReportsEditor editor,
IProgressMonitor progress)
Saves the editor to a new location. |
boolean |
isDirty(ICrystalReportsEditor editor)
Returns true if the editor has unsaved changes. |
Method Detail |
---|
IEditorInput doSave(ICrystalReportsEditor editor, IProgressMonitor progress)
IProgressMonitor
object to provide
progress updates to the user.
This method may delegate to the
doSaveAs
method.
If this method delegates
to the doSaveAs
method, the IEditorInput
object that is returned
may have changed.
editor
- the editor to save, may not be null
progress
- the progress monitor to display the saving status to, may not be null
IEditorInput
object for the editor, or null
if the operation was canceledIEditorInput doSaveAs(ICrystalReportsEditor editor, IProgressMonitor progress)
IProgressMonitor
object to provide
progress updates to the user.
editor
- the editor to save, may not be null
progress
- the progress monitor to display the saving status to, may not be null
IEditorInput
object representing the new location, or null
if the operation was canceledboolean isDirty(ICrystalReportsEditor editor)
editor
- the editor to check for unsaved changes
true
if the editor has unsaved changes, false
otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |