Package ca.phon.phontalk.plugin
Class CHATOpenFileHandler
java.lang.Object
ca.phon.phontalk.plugin.CHATOpenFileHandler
- All Implemented Interfaces:
OpenFileHandler
,IPluginExtensionPoint<OpenFileHandler>
public class CHATOpenFileHandler
extends Object
implements OpenFileHandler, IPluginExtensionPoint<OpenFileHandler>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Can this handler open this file?protected Project
createTempProjectForFile
(File file) protected Project
findProjectForFile
(File file) Class<?>
Get type of extensionGet factory for extension point objectsvoid
Open the file in the appropriate editor/viewer.protected Session
openSession
(File file)
-
Constructor Details
-
CHATOpenFileHandler
public CHATOpenFileHandler()
-
-
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
-
openSession
- Throws:
IOException
-
createTempProjectForFile
-
findProjectForFile
-
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>
-