Class HopGuiFileDelegate
- java.lang.Object
-
- org.apache.hop.ui.hopgui.delegates.HopGuiFileDelegate
-
public class HopGuiFileDelegate extends Object
-
-
Constructor Summary
Constructors Constructor Description HopGuiFileDelegate(HopGui hopGui)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseAllFiles()voidexportToSvg()booleanfileClose()booleanfileExit()When the app exits we need to see if all open files are saved in all perspectives...voidfileOpen()IHopFileTypeHandlerfileOpen(String filename)voidfileOpenRecent()Show all the recent files in a new dialog...voidfileSave()StringfileSaveAs()We need to figure out which file is open at the given time so we can save it.IHopFileTypeHandlergetActiveFileTypeHandler()booleansaveGuardAllFiles()Go over all files and ask to save the ones who have changed.
-
-
-
Constructor Detail
-
HopGuiFileDelegate
public HopGuiFileDelegate(HopGui hopGui)
-
-
Method Detail
-
getActiveFileTypeHandler
public IHopFileTypeHandler getActiveFileTypeHandler()
-
fileOpen
public void fileOpen()
-
fileOpen
public IHopFileTypeHandler fileOpen(String filename) throws Exception
- Throws:
Exception
-
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 theto 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()
-
-