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.

Bug 267419

Summary: No way for Java MIMEResolvers to be run before MIME resolvers defined via XML
Product: platform Reporter: Tomas Mysik <tmysik>
Component: FilesystemsAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal CC: sdedic
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Tomas Mysik 2016-08-03 09:30:57 UTC
Currently, if one creates Java MIME resolver (class MyResolver extends MIMEResolver), such a resolver is run _after_ all resolvers defined via XML files and there is no way to change it. This is of course problem, if one wants to create resolver for some special file already resolved by any XML declaration (e.g. "*jstestdriver*.conf", see issue #267416 BTW). So, there could perhaps be a method in MIMEResolver e.g.:

protected boolean runBeforeXmlDeclarations()

with default value false (to maintain backward compatibility). Such method could be easily overriden by custom MIME resolvers.

IMO this report is more a bug than an enhancement, feel free to disagree :)

Thanks.