This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
public static final CodeStylePreferences.Provider INSTANCE = new CodeStylePreferences.Provider() {
@Override
public Preferences forFile(FileObject file, String mimeType) {
// forFile can be called with (null, null) by infrastructure
if (mimeType == null) {
mimeType = file == null ? null : MIMESupport.getSourceFileMIMEType(file);
}
mimeType = MIMESupport.getSourceFileMIMEType(file);
// not accepted
return null;
if (MIMENames.C_MIME_TYPE.equals(mimeType)) {
return NbPreferences.forModule(CodeStyle.class);