当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
ReadOnlyFilesHandler (Refactoring API) - NetBeans API Javadoc (Current Development Version)
org.netbeans.modules.refactoring.spi
Interface ReadOnlyFilesHandler
public interface ReadOnlyFilesHandler
Interface for factory classes which allows to create Problem, which ProblemDetails
can handle read only files. Typically VCS can turn read only files into read write.
Implementation of ReadOnlyFilesHandler is required to be registered in Lookup.
More then one instance is not allowed to be registered.
- Since:
- 1.5.0
createProblem
Problem createProblem(RefactoringSession session,
Collection files)
- Create a Problem, which ProblemDetails
can handle read only files. Typically VCS can turn read only files into
read write.
Typical implementation will be following:
new Problem(false,
"Some files needs to be checked out for editing",
ProblemDetailsFactory.createProblemDetails(new VCSDetailsImpl(files))
);
- Parameters:
files
- Collection of FileObjectssession
- current refactoring session
- Returns:
- Problem with ProblemDetails, which can handle read only files.
- See Also:
ProblemDetailsImplementation