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 18750

Summary: Ask existing loaders to use MIME types properly
Product: platform Reporter: Jesse Glick <jglick>
Component: -- Other --Assignee: Jaroslav Tulach <jtulach>
Status: RESOLVED WONTFIX    
Severity: blocker CC: jtulach, phamernik, pkuzel
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:
Bug Depends on: 15195, 26237    
Bug Blocks: 16191, 16389, 20203    

Description Jesse Glick 2001-12-17 22:32:38 UTC
More like a container task that could depend on other tasks: for 3.4 we should
start to use MIME types consistently for various loaders. E.g.:

- ExtensionList should handle MIME wildcards and understand attributes listed
after a semicolon as being specializations (e.g. "text/html" will match actual
type "text/html;charset=UTF-8")

- XMLDataObject in APIs, as well as in xml module, should recognize text/xml as
well as text/*+xml, and use a MIMEResolver rather than file extension list

- TXTDataLoader should recognize text/plain, and use a MIMEResolver

- ditto HTMLLoader (text/html), ImageLoader (image/*), ....

- CloneableEditorSupport could find the right editor kit using a better lookup
which understands MIME attributes and wildcards, too; e.g. setting its
contentType to text/x-ant+xml should use a text/xml kit if available;
JEditorPane's registration is not so clever

- if we make a meta-loader which delegates to other loaders by MIME type, it
should check first for an exact match, then exact module attributes, then a
wildcard match, etc.
Comment 1 Jesse Glick 2002-02-07 12:13:22 UTC
Petr do you want to take this one over? It might be exactly what you
are doing anyway, or parts of it...
Comment 2 phamernik 2002-02-07 12:43:30 UTC
Sure. I am taking it.
Comment 3 Jaroslav Tulach 2005-01-28 08:47:59 UTC
Getting rid of all issues. If there is anything that should be done
now, please be specific.