Class 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.
    • 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 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
    • Constructor Detail

      • PrintDiagramHandler

        public PrintDiagramHandler()
    • 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 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