Package com._1c.g5.v8.dt.erd.ui.handlers
Class PrintDiagramHandler
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- com._1c.g5.v8.dt.erd.ui.handlers.AbstractSaveHandler
-
- com._1c.g5.v8.dt.erd.ui.handlers.PrintDiagramHandler
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
public class PrintDiagramHandler extends AbstractSaveHandler
Handler for "Print" action. Prints diagram if it is not empty.
-
-
Constructor Summary
Constructors Constructor Description PrintDiagramHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
execute(org.eclipse.core.commands.ExecutionEvent event)
void
print(com._1c.g5.v8.dt.diagram.framework.ui.IDiagram diagram, Collection<org.eclipse.draw2d.IFigure> figures)
Opens dialog for printing given figures.-
Methods inherited from class com._1c.g5.v8.dt.erd.ui.handlers.AbstractSaveHandler
getFiguresImageData
-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
-
-
-
Method Detail
-
print
public void print(com._1c.g5.v8.dt.diagram.framework.ui.IDiagram diagram, Collection<org.eclipse.draw2d.IFigure> figures)
Opens dialog for printing given figures.- Parameters:
diagram
- - figures diagram. Can't benull
.figures
- - figures to print. Can't benull
.
-
execute
public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
- Throws:
org.eclipse.core.commands.ExecutionException
-
-