Class SaveDiagramHandler

  • All Implemented Interfaces:
    org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2

    public class SaveDiagramHandler
    extends AbstractSaveHandler
    Handler for "Save" action. Saves 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 save​(com._1c.g5.v8.dt.diagram.framework.ui.IDiagram diagram, Collection<? extends org.eclipse.draw2d.IFigure> figures)
      Opens dialog for saving 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

      • SaveDiagramHandler

        public SaveDiagramHandler()
    • Method Detail

      • save

        public void save​(com._1c.g5.v8.dt.diagram.framework.ui.IDiagram diagram,
                         Collection<? extends org.eclipse.draw2d.IFigure> figures)
        Opens dialog for saving given figures.
        Parameters:
        diagram - - figures diagram. Can't be null.
        figures - - figures to save as picture. 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