org.netbeans.modules.projectapi/1 1.36.1

org.netbeans.spi.project
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:
FileOwnerQuery

Method Summary
 Project getOwner(FileObject file)
          Decide which project, if any, "owns" a given file.
 Project getOwner(URI file)
          Decide which project, if any, "owns" a given file.
 

Method Detail

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(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

org.netbeans.modules.projectapi/1 1.36.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.