Class BaseTextExplorerFileTypeHandler
- java.lang.Object
-
- org.apache.hop.ui.hopgui.perspective.explorer.file.types.base.BaseExplorerFileTypeHandler
-
- org.apache.hop.ui.hopgui.perspective.explorer.file.types.text.BaseTextExplorerFileTypeHandler
-
- All Implemented Interfaces:
IActionContextHandlersProvider,IHopFileTypeHandler,IExplorerFileTypeHandler
- Direct Known Subclasses:
LogExplorerFileTypeHandler,NoExtensionExplorerFileTypeHandler
public class BaseTextExplorerFileTypeHandler extends BaseExplorerFileTypeHandler implements IExplorerFileTypeHandler
This handles a text file in the file explorer perspective: open, save, ...
-
-
Field Summary
-
Fields inherited from class org.apache.hop.ui.hopgui.perspective.explorer.file.types.base.BaseExplorerFileTypeHandler
explorerFile, hopGui, perspective
-
-
Constructor Summary
Constructors Constructor Description BaseTextExplorerFileTypeHandler(HopGui hopGui, ExplorerPerspective perspective, ExplorerFile explorerFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopySelectedToClipboard()Copy the selected items to the clipboardvoidreload()Reload the filevoidrenderFile(org.eclipse.swt.widgets.Composite composite)Render a file on a compositevoidsave()Save the file without asking for a new filenamevoidselectAll()Select all items in the current filesvoidunselectAll()Unselect all items in the current file-
Methods inherited from class org.apache.hop.ui.hopgui.perspective.explorer.file.types.base.BaseExplorerFileTypeHandler
applyStateProperties, close, cutSelectedToClipboard, debug, deleteSelected, getContextHandlers, getExplorerFile, getFilename, getFileType, getHopGui, getName, getPerspective, getStateProperties, getSubject, getVariables, hasChanged, isCloseable, pasteFromClipboard, pause, preview, readTextFileContent, redo, redraw, resume, saveAs, setExplorerFile, setFilename, setHopGui, setName, setPerspective, start, stop, undo, updateGui
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hop.ui.hopgui.context.IActionContextHandlersProvider
getContextHandlers
-
Methods inherited from interface org.apache.hop.ui.hopgui.file.IHopFileTypeHandler
applyStateProperties, close, cutSelectedToClipboard, debug, deleteSelected, getFilename, getFileType, getName, getStateProperties, getSubject, getVariables, hasChanged, isCloseable, markDeleted, pasteFromClipboard, pause, preview, redo, redraw, resume, saveAs, setFilename, setName, start, stop, undo, updateGui
-
-
-
-
Constructor Detail
-
BaseTextExplorerFileTypeHandler
public BaseTextExplorerFileTypeHandler(HopGui hopGui, ExplorerPerspective perspective, ExplorerFile explorerFile)
-
-
Method Detail
-
renderFile
public void renderFile(org.eclipse.swt.widgets.Composite composite)
Description copied from interface:IExplorerFileTypeHandlerRender a file on a composite- Specified by:
renderFilein interfaceIExplorerFileTypeHandler- Parameters:
composite- The parent composite in a new tab in the explorer perspective
-
save
public void save() throws HopExceptionDescription copied from interface:IHopFileTypeHandlerSave the file without asking for a new filename- Specified by:
savein interfaceIHopFileTypeHandler- Overrides:
savein classBaseExplorerFileTypeHandler- Throws:
HopException
-
reload
public void reload()
Description copied from interface:IHopFileTypeHandlerReload the file- Specified by:
reloadin interfaceIHopFileTypeHandler
-
selectAll
public void selectAll()
Description copied from interface:IHopFileTypeHandlerSelect all items in the current files- Specified by:
selectAllin interfaceIHopFileTypeHandler- Overrides:
selectAllin classBaseExplorerFileTypeHandler
-
unselectAll
public void unselectAll()
Description copied from interface:IHopFileTypeHandlerUnselect all items in the current file- Specified by:
unselectAllin interfaceIHopFileTypeHandler- Overrides:
unselectAllin classBaseExplorerFileTypeHandler
-
copySelectedToClipboard
public void copySelectedToClipboard()
Description copied from interface:IHopFileTypeHandlerCopy the selected items to the clipboard- Specified by:
copySelectedToClipboardin interfaceIHopFileTypeHandler- Overrides:
copySelectedToClipboardin classBaseExplorerFileTypeHandler
-
-