Interface PlatformManager

    • Method Detail

      • isAdditionalFileTypeRegistered

        boolean isAdditionalFileTypeRegistered​(java.lang.String name,
                                               java.lang.String type)
                                        throws PlatformManagerException
        Checks to see if the supplied file type is registered with this application
        Parameters:
        name -
        type -
        Returns:
        Throws:
        PlatformManagerException
      • registerAdditionalFileType

        void registerAdditionalFileType​(java.lang.String name,
                                        java.lang.String description,
                                        java.lang.String type,
                                        java.lang.String content_type)
                                 throws PlatformManagerException
        Registers a file type with this application
        Parameters:
        name -
        description -
        type -
        content_type -
        Throws:
        PlatformManagerException
      • unregisterAdditionalFileType

        void unregisterAdditionalFileType​(java.lang.String name,
                                          java.lang.String type)
                                   throws PlatformManagerException
        Removes a file-type registration
        Parameters:
        name -
        type -
        Throws:
        PlatformManagerException
      • showFile

        void showFile​(java.lang.String file_name)
               throws PlatformManagerException
        Reveals the file or directory with the platform's default browser
        Parameters:
        file_name - The full path to a file or directory
        Throws:
        PlatformManagerException - If this operation fails
      • getLocation

        java.io.File getLocation​(long location_id)
                          throws PlatformManagerException
        Get a well-known location, if defined for the platform
        Parameters:
        location_id - from above LOC_constants
        Returns:
        Throws:
        PlatformManagerException
        Since:
        2.3.0.6
      • getComputerName

        java.lang.String getComputerName()
        Returns:
        null if can't be found