| org.netbeans.modules.refactoring.spi.ReadOnlyFilesHandler
ReadOnlyFilesHandler | public interface ReadOnlyFilesHandler (Code) | | 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.
author: Jan Becicka since: 1.5.0 |
createProblem | public Problem createProblem(RefactoringSession session, Collection files)(Code) | | 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 FileObjects Parameters: session - current refactoring session Problem with ProblemDetails, which can handle read only files. See Also: ProblemDetailsImplementation |
|
|