Class FileSaveAction

All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class FileSaveAction
extends GraffitiAction
The action for saving a graph.
Version:
$Revision: 1.15.2.1 $
See Also:
Serialized Form
  • Constructor Details

    • FileSaveAction

      public FileSaveAction​(MainFrame mainFrame, IOManager ioManager, SessionManager sessionManager)
      Creates a new FileSaveAction object.
      Parameters:
      mainFrame - DOCUMENT ME!
      ioManager - DOCUMENT ME!
      sessionManager - DOCUMENT ME!
  • Method Details

    • isEnabled

      public boolean isEnabled()
      DOCUMENT ME!
      Specified by:
      isEnabled in interface Action
      Specified by:
      isEnabled in class GraffitiAction
      Returns:
      true, if the io manager contains a working output serializer and if the file is writeable.
    • getHelpContext

      public HelpContext getHelpContext()
      Description copied from class: GraffitiAction
      Returns the help context for this action.
      Overrides:
      getHelpContext in class GraffitiAction
      Returns:
      the help context for this action.
      See Also:
      GraffitiAction.getHelpContext()
    • actionPerformed

      public void actionPerformed​(ActionEvent e)
      DOCUMENT ME!
      Parameters:
      e - DOCUMENT ME!
    • getFileExt

      public static String getFileExt​(String fileName)
      DOCUMENT ME!
      Parameters:
      fileName -
      Returns:
      Returns file extension from a given filename.