Package org.apache.hop.ui.hopgui.file
Interface IHopFileTypeHandler
-
- All Superinterfaces:
IActionContextHandlersProvider
- All Known Subinterfaces:
IExplorerFileTypeHandler
- All Known Implementing Classes:
BaseExplorerFileTypeHandler,BaseTextExplorerFileTypeHandler,DatabaseMetaEditor,EmptyHopFileTypeHandler,ExecutionDataProfileEditor,ExecutionInfoLocationEditor,ExplorerFileTypeHandler,HopGuiPipelineGraph,HopGuiWorkflowGraph,HopServerEditor,LogExplorerFileTypeHandler,MetadataEditor,MetadataFileTypeHandler,NoExtensionExplorerFileTypeHandler,PartitionSchemaEditor,PipelineRunConfigurationEditor,SvgExplorerFileTypeHandler,WebServiceEditor,WorkflowRunConfigurationEditor
public interface IHopFileTypeHandler extends IActionContextHandlersProvider
This describes the main file operations for a supported Hop file
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidapplyStateProperties(Map<String,Object> stateProperties)voidclose()Actually close the file, remove it from the user interface.voidcopySelectedToClipboard()Copy the selected items to the clipboardvoidcutSelectedToClipboard()Cut the selected items to the clipboardvoiddebug()Debug the filevoiddeleteSelected()Delete the selected itemsStringgetFilename()IHopFileTypegetFileType()Get a hold of the file type detailsStringgetName()Get the user friendly name of the file being handledMap<String,Object>getStateProperties()Describe the state properties of the file being handled: zoomLevel, scrollX, scrollY, active, ...ObjectgetSubject()What is this handling? (pipeline, workflow, ...)IVariablesgetVariables()The variables associated with the file.booleanhasChanged()See if there anything has been changed by the userbooleanisCloseable()Perform any task needed to close a file, save it if neededdefault voidmarkDeleted()mark the file as deletedvoidpasteFromClipboard()Paste items from the clipboardvoidpause()Pause executionvoidpreview()Preview this filevoidredo()Redo a change to the filevoidredraw()Refresh the graphical file representation after model changesdefault voidreload()Reload the filevoidresume()Resume executionvoidsave()Save the file without asking for a new filenamevoidsaveAs(String filename)Save the file after asking for a filenamevoidselectAll()Select all items in the current filesvoidsetFilename(String filename)Change the filename of the hop filevoidsetName(String name)Set the user friendly name of the underlying filevoidstart()Start executionvoidstop()Stop executionvoidundo()Undo a change to the filevoidunselectAll()Unselect all items in the current filevoidupdateGui()Update the toolbar, menus and so on.-
Methods inherited from interface org.apache.hop.ui.hopgui.context.IActionContextHandlersProvider
getContextHandlers
-
-
-
-
Method Detail
-
getSubject
Object getSubject()
What is this handling? (pipeline, workflow, ...)- Returns:
- The subject being handled
-
getName
String getName()
Get the user friendly name of the file being handled- Returns:
- The user friendly name
-
setName
void setName(String name)
Set the user friendly name of the underlying file- Parameters:
name- The user friendly name
-
getFileType
IHopFileType getFileType()
Get a hold of the file type details- Returns:
-
getFilename
String getFilename()
- Returns:
- The filename of the hop file
-
setFilename
void setFilename(String filename)
Change the filename of the hop file- Parameters:
filename- The new filename
-
save
void save() throws HopException
Save the file without asking for a new filename- Throws:
HopException
-
saveAs
void saveAs(String filename) throws HopException
Save the file after asking for a filename- Throws:
HopException
-
start
void start()
Start execution
-
stop
void stop()
Stop execution
-
pause
void pause()
Pause execution
-
resume
void resume()
Resume execution
-
preview
void preview()
Preview this file
-
debug
void debug()
Debug the file
-
redraw
void redraw()
Refresh the graphical file representation after model changes
-
updateGui
void updateGui()
Update the toolbar, menus and so on. This is needed after a file, context or capabilities changes
-
selectAll
void selectAll()
Select all items in the current files
-
unselectAll
void unselectAll()
Unselect all items in the current file
-
copySelectedToClipboard
void copySelectedToClipboard()
Copy the selected items to the clipboard
-
cutSelectedToClipboard
void cutSelectedToClipboard()
Cut the selected items to the clipboard
-
deleteSelected
void deleteSelected()
Delete the selected items
-
pasteFromClipboard
void pasteFromClipboard()
Paste items from the clipboard
-
isCloseable
boolean isCloseable()
Perform any task needed to close a file, save it if needed- Returns:
- true if the file is ready to close. Return false if there was a problem saving or any other issue.
-
close
void close()
Actually close the file, remove it from the user interface.
-
hasChanged
boolean hasChanged()
See if there anything has been changed by the user- Returns:
- true if there were changes worth saving, false if nothing has been changed.
-
undo
void undo()
Undo a change to the file
-
redo
void redo()
Redo a change to the file
-
getStateProperties
Map<String,Object> getStateProperties()
Describe the state properties of the file being handled: zoomLevel, scrollX, scrollY, active, ...- Returns:
- The state properties
-
getVariables
IVariables getVariables()
The variables associated with the file. It's usually keeping internal variables and other file specific settings like active unit test settings.- Returns:
- The variables associated with the loaded file
-
reload
default void reload()
Reload the file
-
markDeleted
default void markDeleted()
mark the file as deleted
-
-