Class OpenFileEP

All Implemented Interfaces:
IPluginEntryPoint, ActionListener, Serializable, Cloneable, EventListener, Action

public class OpenFileEP extends HookableAction implements IPluginEntryPoint
See Also:
  • Field Details

    • EP_NAME

      public static String EP_NAME
    • DESC

      public static String DESC
    • INPUT_FILE

      public static String INPUT_FILE
  • Constructor Details

    • OpenFileEP

      public OpenFileEP()
  • Method Details

    • getName

      public String 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 interface IPluginEntryPoint
    • pluginStart

      public void pluginStart(Map<String,Object> args)
      Description copied from interface: IPluginEntryPoint
      Entry point method for a plugin.
      Specified by:
      pluginStart in interface IPluginEntryPoint
      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

      public void openFile(File file, Map<String,Object> args)
    • hookableActionPerformed

      public void hookableActionPerformed(ActionEvent ae)
      Description copied from class: HookableAction
      Method which should be implemented instead of actionPerformed.
      Specified by:
      hookableActionPerformed in class HookableAction