Interface ExternalFileLauncher.OpenExternalFileHandler

  • Enclosing class:
    ExternalFileLauncher

    public static interface ExternalFileLauncher.OpenExternalFileHandler
    This interface allows a mechanism for a BlueJ extension to write a launcher, and for BlueJ to call this launcher. When implementing the interface, BlueJ extension writers must take a particular care that their action will not block the BlueJ UI thread (JavaFX thread).
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void openFile​(java.lang.String filePath)
      The BlueJ extension implements this method as a launcher for a file, specified by its name.
    • Method Detail

      • openFile

        void openFile​(java.lang.String filePath)
               throws java.lang.Exception
        The BlueJ extension implements this method as a launcher for a file, specified by its name. BlueJ will call it when trying to run the launcher associated with the file extension. Note: particular take must be taken when implementing this method as it could cause BlueJ UI thread (JavaFX thread).
        Parameters:
        filePath - the file path to launch
        Throws:
        java.lang.Exception