Package ca.phon.app.actions
Class TextFileOpenHandler
java.lang.Object
ca.phon.app.actions.TextFileOpenHandler
- All Implemented Interfaces:
OpenFileHandler
,IPluginExtensionPoint<OpenFileHandler>
@PhonexPlugin(name="Open")
public class TextFileOpenHandler
extends Object
implements OpenFileHandler, IPluginExtensionPoint<OpenFileHandler>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Can this handler open this file?Class<?>
Get type of extensionGet factory for extension point objectsvoid
Open the file in the appropriate editor/viewer.
-
Constructor Details
-
TextFileOpenHandler
public TextFileOpenHandler()
-
-
Method Details
-
supportedExtensions
- Specified by:
supportedExtensions
in interfaceOpenFileHandler
- Returns:
- Set of supported file extensions (without '.')
-
canOpen
Description copied from interface:OpenFileHandler
Can this handler open this file?- Specified by:
canOpen
in interfaceOpenFileHandler
- Throws:
IOException
-
openFile
Description copied from interface:OpenFileHandler
Open the file in the appropriate editor/viewer.- Specified by:
openFile
in interfaceOpenFileHandler
- Parameters:
args
- - arguments pass to the open file handler- Throws:
IOException
-
getExtensionType
Description copied from interface:IPluginExtensionPoint
Get type of extension- Specified by:
getExtensionType
in interfaceIPluginExtensionPoint<OpenFileHandler>
-
getFactory
Description copied from interface:IPluginExtensionPoint
Get factory for extension point objects- Specified by:
getFactory
in interfaceIPluginExtensionPoint<OpenFileHandler>
-