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.
Added ConstrainedBinaryIndexer which allows an indexer to declaratively specify constrains which need to be fulfilled, the check is done by infrastructure before the indexer is loaded. If the constrains are not fulfilled the indexer is neither loaded nor executed.
Probably missing patch?
Created attachment 112994 [details] Patch file
[JG01] Typo - "constrains" (as a noun) should be "constraints" (several places). [JG02] "paths inside the binary files" seems vague. [JG03] XSD_MIME = "text/xml" seems odd; IIRC there is a special MIME subtype inside NB for *.xsd.
JG01 + JG02 : Fixed JG03: Yes we have mime resolver for xsd but the XSD mime resolver returns text/xml as mime type.
JG03 - then maybe that should be fixed now. AFAIK should be harmless for existing code to switch the resolver to producing a subtype.
Overall concept seems fine. Y01 Javadoc for mimeType() is wrong "Use <code>{}</code> if the resource check should be skipped" - it should not talk about resources. Y02 Slightly unrelated, but don't forget to make parsing.api stable - change nbbuild/build.properties and parsing.api/arch.xml
Y01: Fixed Y02: Next week
Fixed jet-main d054f910d8f6
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/d054f910d8f6 User: Tomas Zezula <tzezula@netbeans.org> Log: #204817:Review of ConstrainedBinaryIndexer