public class DefaultSaveImageFeature extends AbstractSaveImageFeature implements ISaveImageFeature
DiagramEditor. It relies on an existing GraphicalViewer
showing the diagram to save.| Constructor and Description |
|---|
DefaultSaveImageFeature(IFeatureProvider fp)
Creates a new
DefaultSaveImageFeature. |
| Modifier and Type | Method and Description |
|---|---|
void |
save(ISaveImageContext context)
Performs the save as image operation.
|
canExecute, canSave, execute, getName, hasDoneChanges, postSave, preSavecanUndo, getDescription, getFeatureProvider, isAvailable, manageFont, manageFont, setProgressCallback, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcanSave, postSave, preSavecanExecute, canUndo, execute, hasDoneChanges, isAvailablegetDescriptiongetFeatureProviderpublic DefaultSaveImageFeature(IFeatureProvider fp)
DefaultSaveImageFeature.fp - The feature provider providing this featurepublic void save(ISaveImageContext context)
#getGraphicalViewer(IPrintContext) to retrieve the
GraphicalViewer that already displays the diagram, queries for
ISaveAsImageConfiguration to use by calling
getSaveAsImageConfiguration(GraphicalViewer), queries for the
filename by delegating to
getFilename(GraphicalViewer, ISaveAsImageConfiguration) and
finally uses
getSaveAsImageOperation(ISaveAsImageConfiguration, String) to
create an operation to perform the save as image operation. All those
methods may be overridden to change the default behavior, so normally one
would not need to override this method unless the complete sequence needs
to changed or the save as image is performed in a completely different
scenario.save in interface ISaveImageFeaturecontext - Context information for saving as an image.