Class HopGuiFileDelegate


  • public class HopGuiFileDelegate
    extends Object
    • Constructor Detail

      • HopGuiFileDelegate

        public HopGuiFileDelegate​(HopGui hopGui)
    • Method Detail

      • fileOpen

        public void fileOpen()
      • fileSaveAs

        public String fileSaveAs()
        We need to figure out which file is open at the given time so we can save it. To do this we see which is the active perspective. Then we ask the perspective for the shown/active file. We then know the filter extension and name so we can show a dialog. We can then also have the to save the file.
        Returns:
        The original filename, not having any variables replaced. It returns null if no file was saved
      • fileSave

        public void fileSave()
      • fileClose

        public boolean fileClose()
      • saveGuardAllFiles

        public boolean saveGuardAllFiles()
        Go over all files and ask to save the ones who have changed.
        Returns:
        True if all files are saveguarded (or changes are ignored)
      • closeAllFiles

        public void closeAllFiles()
      • fileExit

        public boolean fileExit()
        When the app exits we need to see if all open files are saved in all perspectives...
      • fileOpenRecent

        public void fileOpenRecent()
        Show all the recent files in a new dialog...
      • exportToSvg

        public void exportToSvg()