Package com._1c.g5.v8.dt.erd.ui.handlers
Class AbstractSaveHandler
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- com._1c.g5.v8.dt.erd.ui.handlers.AbstractSaveHandler
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
- Direct Known Subclasses:
PrintDiagramHandler
,SaveDiagramHandler
public abstract class AbstractSaveHandler extends org.eclipse.core.commands.AbstractHandler
Base class for print and save handlers. Instance of this class can get image data from figures withgetFiguresImageData(IDiagram, Collection)
method.
-
-
Constructor Summary
Constructors Constructor Description AbstractSaveHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<org.eclipse.swt.graphics.ImageData>
getFiguresImageData(com._1c.g5.v8.dt.diagram.framework.ui.IDiagram diagram, Collection<? extends org.eclipse.draw2d.IFigure> figures)
Creates image data from given figures.-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
-
-
-
Method Detail
-
getFiguresImageData
protected List<org.eclipse.swt.graphics.ImageData> getFiguresImageData(com._1c.g5.v8.dt.diagram.framework.ui.IDiagram diagram, Collection<? extends org.eclipse.draw2d.IFigure> figures)
Creates image data from given figures.- Parameters:
diagram
- - figures diagram. Can't benull
.figures
- - figures to create image data. Can't benull
.- Returns:
- image data of given figures. Can't return
null
.
-
-