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.
I am implementing a version control module for the IDE. A feature that I would like to implement is to put a new file under version control automatically when the file is created. My module extends AbstractFilesystem, the createData method is used to implement this feature. The problem is that at that moment the file is empty and there is no way for me to check the MIME type of the file being created to perform a proper version control opertion to check-in the file. I need a new API to report the MIME type of the file being created in the filesystem.
What is wrong with checking the extension (or however you normally determine the MIME type)? See FileUtil.
Waiting for reply to question: "What is wrong with checking the extension?"
FileUtil.getMIMEType will work.