Class NoExtensionExplorerFileType
- java.lang.Object
-
- org.apache.hop.ui.hopgui.file.HopFileTypeBase
-
- org.apache.hop.ui.hopgui.perspective.explorer.file.types.base.BaseExplorerFileType<T>
-
- org.apache.hop.ui.hopgui.perspective.explorer.file.types.text.BaseTextExplorerFileType<NoExtensionExplorerFileTypeHandler>
-
- org.apache.hop.ui.hopgui.perspective.explorer.file.types.noext.NoExtensionExplorerFileType
-
- All Implemented Interfaces:
IHopFileType,IExplorerFileType<NoExtensionExplorerFileTypeHandler>
@HopFileTypePlugin(id="NoExtensionExplorerFileType", name="Text files without extensions", description="No extension files handling in the explorer perspective", image="ui/images/script-active.svg") public class NoExtensionExplorerFileType extends BaseTextExplorerFileType<NoExtensionExplorerFileTypeHandler> implements IExplorerFileType<NoExtensionExplorerFileTypeHandler>
-
-
Field Summary
-
Fields inherited from interface org.apache.hop.ui.hopgui.file.IHopFileType
CAPABILITY_ALIGN_BOTTOM, CAPABILITY_ALIGN_LEFT, CAPABILITY_ALIGN_RIGHT, CAPABILITY_ALIGN_TOP, CAPABILITY_CLOSE, CAPABILITY_COPY, CAPABILITY_CUT, CAPABILITY_DEBUG, CAPABILITY_DELETE, CAPABILITY_DISTRIBUTE_HORIZONTAL, CAPABILITY_DISTRIBUTE_VERTICAL, CAPABILITY_EXPORT_TO_SVG, CAPABILITY_FILE_HISTORY, CAPABILITY_HANDLE_METADATA, CAPABILITY_NEW, CAPABILITY_PASTE, CAPABILITY_PAUSE, CAPABILITY_PREVIEW, CAPABILITY_SAVE, CAPABILITY_SAVE_AS, CAPABILITY_SELECT, CAPABILITY_SNAP_TO_GRID, CAPABILITY_START, CAPABILITY_STOP
-
-
Constructor Summary
Constructors Constructor Description NoExtensionExplorerFileType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NoExtensionExplorerFileTypeHandlercreateFileTypeHandler(HopGui hopGui, ExplorerPerspective perspective, ExplorerFile file)Create a new file type handler for the given Hop GUI instance, perspective and filebooleanisHandledBy(String filename, boolean checkContent)Look at the given file and see if it's handled by this type.IHopFileTypeHandlernewFile(HopGui hopGui, IVariables parentVariableSpace)-
Methods inherited from class org.apache.hop.ui.hopgui.perspective.explorer.file.types.base.BaseExplorerFileType
getCapabilities, getContextHandlers, getDefaultFileExtension, getFileTypeImage, getFilterExtensions, getFilterNames, getName, openFile, setCapabilities, setDefaultFileExtension, setFilterExtensions, setFilterNames, setName, supportsFile
-
Methods inherited from class org.apache.hop.ui.hopgui.file.HopFileTypeBase
equals, hasCapability
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hop.ui.hopgui.file.IHopFileType
getCapabilities, getContextHandlers, getDefaultFileExtension, getFileTypeImage, getFilterExtensions, getFilterNames, getName, hasCapability, openFile, supportsFile
-
-
-
-
Method Detail
-
isHandledBy
public boolean isHandledBy(String filename, boolean checkContent) throws HopException
Description copied from interface:IHopFileTypeLook at the given file and see if it's handled by this type. Usually this is done by simply looking at the file extension. In rare cases we look at the content.- Specified by:
isHandledByin interfaceIHopFileType- Overrides:
isHandledByin classHopFileTypeBase- Parameters:
filename- The filenamecheckContent- True if we want to look inside the file content- Returns:
- true if this HopFile is handling the file
- Throws:
HopException- In case something goes wrong like: file doesn't exist, a permission problem, ...
-
createFileTypeHandler
public NoExtensionExplorerFileTypeHandler createFileTypeHandler(HopGui hopGui, ExplorerPerspective perspective, ExplorerFile file)
Description copied from interface:IExplorerFileTypeCreate a new file type handler for the given Hop GUI instance, perspective and file- Specified by:
createFileTypeHandlerin interfaceIExplorerFileType<NoExtensionExplorerFileTypeHandler>- Specified by:
createFileTypeHandlerin classBaseTextExplorerFileType<NoExtensionExplorerFileTypeHandler>- Parameters:
hopGui- The Hop GUIperspective- The perspectivefile- The file- Returns:
-
newFile
public IHopFileTypeHandler newFile(HopGui hopGui, IVariables parentVariableSpace) throws HopException
- Specified by:
newFilein interfaceIHopFileType- Specified by:
newFilein classBaseTextExplorerFileType<NoExtensionExplorerFileTypeHandler>- Throws:
HopException
-
-