Interface ImportService


@Deprecated public interface ImportService
Deprecated.
An import service. All registered import services will appear in the "Import" menu of the program. This interface is deprecated since it will later be replaced by a complete menu management system.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Creates an empty config.
    Deprecated.
    Returns a longer description of the import service.
    Deprecated.
    Returns a short name describing the import service.
    boolean
    Deprecated.
    Returns true if the user can edit a config by showImportDialog()
    void
    run(ImportConfig config, File input, ProgressCallback progress)
    Deprecated.
    Performs the import.
    void
    Deprecated.
    Show a GUI to help the user edit the profile and start an import.
  • Method Details

    • getTitle

      String getTitle()
      Deprecated.
      Returns a short name describing the import service.
      Returns:
      a short name describing the import service.
    • getDescription

      String getDescription()
      Deprecated.
      Returns a longer description of the import service.
      Returns:
      a longer description of the import service.
    • createConfig

      ImportConfig createConfig()
      Deprecated.
      Creates an empty config.
      Returns:
      an empty import config.
    • isEditable

      boolean isEditable()
      Deprecated.
      Returns true if the user can edit a config by showImportDialog()
      Returns:
      true if the user can edit a config by showImportDialog()
    • showImportDialog

      void showImportDialog(JFrame parent, ImportConfig profile)
      Deprecated.
      Show a GUI to help the user edit the profile and start an import.
      Parameters:
      parent - The parent frame to the import dialog to show.
      profile - The profile.
    • run

      void run(ImportConfig config, File input, ProgressCallback progress) throws IOException, MTAccessException
      Deprecated.
      Performs the import.
      Parameters:
      config - The profile.
      input - The file to import.
      progress - A callback used to give updates about progress.
      Throws:
      IOException - If an IOException occurs.
      MTAccessException - If an MTAccessException occurs.