0

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?

Joel
  • 473
  • 2
  • 7
  • 22

1 Answers1

0

If you have the FileObject, you can use the FileUtil.getMIMEType method to get the mime type.

ShaggyInjun
  • 2,880
  • 2
  • 31
  • 52