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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    Methods inherited from class org.eclipse.core.commands.common.EventManager

    addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PrintDiagramHandler

      public PrintDiagramHandler()
  • Method Details

    • 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 be null.
      figures - - figures to print. Can't be null.
    • execute

      public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
      Throws:
      org.eclipse.core.commands.ExecutionException