Package ca.phon.app.actions
Class OpenFileEP
java.lang.Object
javax.swing.AbstractAction
ca.phon.app.hooks.HookableAction
ca.phon.app.actions.OpenFileEP
- All Implemented Interfaces:
IPluginEntryPoint
,ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dialogFinished
(ca.phon.ui.nativedialogs.NativeDialogEvent evt) getName()
Plugin action ID.void
Method which should be implemented instead of actionPerformed.void
void
pluginStart
(Map<String, Object> args) Entry point method for a plugin.Methods inherited from class ca.phon.app.hooks.HookableAction
actionPerformed
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
EP_NAME
-
DESC
-
INPUT_FILE
-
-
Constructor Details
-
OpenFileEP
public OpenFileEP()
-
-
Method Details
-
getName
Description copied from interface:IPluginEntryPoint
Plugin action ID. This is used by Phon to call the entry point using a string name.- Specified by:
getName
in interfaceIPluginEntryPoint
-
pluginStart
Description copied from interface:IPluginEntryPoint
Entry point method for a plugin.- Specified by:
pluginStart
in interfaceIPluginEntryPoint
- Parameters:
args
- a hash table of arguments given to the plugin. By default, Phon will provide the plugin with the following arguments: project:IPhonProject - the project. null if N/A. corpus:String - the corpus id of the open session. null if N/A session:String - the session id of the open session. null if N/A More arguments can be defined statically in the module definition xml files.
-
dialogFinished
public void dialogFinished(ca.phon.ui.nativedialogs.NativeDialogEvent evt) -
openFile
-
hookableActionPerformed
Description copied from class:HookableAction
Method which should be implemented instead of actionPerformed.- Specified by:
hookableActionPerformed
in classHookableAction
-