I want create plugin for Netbeans to add some action in Netbeans to certain file types. Conditionally enabled action depends on content type. I don't know mime type for some file types and I don't know how to know it. Can I register my own content type and somehow assign it to all file types I want to process?
Asked
Active
Viewed 82 times
1 Answers
0
If you have the FileObject
, you can use the FileUtil.getMIMEType
method to get the mime type.

ShaggyInjun
- 2,880
- 2
- 31
- 52