org.netbeans.modules.editor.indent.spi
Interface CodeStylePreferences.Provider
- Enclosing class:
- CodeStylePreferences
public static interface CodeStylePreferences.Provider
Code style preferences provider. This interface allows to implement your own
code style preferences storage. Implementations ought to be registered in the
default lookup (ie. through @ServiceProvider annotation).
Usual API clients do not have to be concerned about this. It was created
in order to seprate the project-dependent implementation of code style preferences
storage from the rest of the editor infrastructure.
forFile
Preferences forFile(FileObject file,
String mimeType)
forDocument
Preferences forDocument(Document doc,
String mimeType)