Interface FileOwnerQueryImplementation


public interface FileOwnerQueryImplementation
Knowledge of which project some files belong to.

An implementation must attempt to return a result quickly and avoid blocking on foreign locks. In particular, it should not call OpenProjects.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    getOwner(URI file)
    Decide which project, if any, "owns" a given file.
    getOwner(org.openide.filesystems.FileObject file)
    Decide which project, if any, "owns" a given file.
  • Method Details

    • getOwner

      Project getOwner(URI file)
      Decide which project, if any, "owns" a given file.
      Parameters:
      file - an absolute URI to some file (typically on disk; need not currently exist)
      Returns:
      a project which owns it, or null for no response
    • getOwner

      Project getOwner(org.openide.filesystems.FileObject file)
      Decide which project, if any, "owns" a given file.
      Parameters:
      file - FileObject of an existing file
      Returns:
      a project which owns it, or null for no response