Class LocalFileChooserModel

  • All Implemented Interfaces:
    GhidraFileChooserModel

    public class LocalFileChooserModel
    extends java.lang.Object
    implements GhidraFileChooserModel
    A default implementation of the file chooser model that browses the local file system.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean createDirectory​(java.io.File directory, java.lang.String name)
      Creates a directory in the specified directory with the specified name.
      protected java.lang.String formatRootPathForDisplay​(java.io.File root)
      Returns the string path of a file system root, formatted so it doesn't have a trailing backslash in the case of Windows root drive strings such as "c:\\", which becomes "c:"
      java.lang.String getDescription​(java.io.File file)
      Returns a description for the specified file.
      java.io.File getDesktopDirectory()
      Probes for a "Desktop" directory under the user's home directory.
      protected java.lang.String getFastRootDescriptionString​(java.io.File root)
      Return a description string for a file system root.
      java.io.File getHomeDirectory()
      Returns the home directory.
      javax.swing.Icon getIcon​(java.io.File file)
      Returns an icon for the specified file.
      java.io.File[] getListing​(java.io.File directory, java.io.FileFilter filter)
      Returns an array of the files that exist in the specified directory.
      protected java.lang.String getRootDescriptionString​(java.io.File root)
      Return a description string for a root location.
      java.io.File[] getRoots()
      Returns the root drives/directories.
      char getSeparator()
      Returns the file separator char.
      boolean isAbsolute​(java.io.File file)
      Tests whether this abstract pathname is absolute.
      boolean isDirectory​(java.io.File file)
      Tests whether the file denoted by this abstract pathname is a directory.
      boolean renameFile​(java.io.File src, java.io.File dest)
      Renames the src file to the dest file.
      void setListener​(GhidraFileChooserListener l)
      Set the model listener.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait