public abstract class MIMEResolver.UIHelpers extends Object
Modifier | Constructor and Description |
---|---|
protected |
UIHelpers()
Throws an exception.
|
Modifier and Type | Method and Description |
---|---|
protected Map<String,Set<String>> |
getMIMEToExtensions(FileObject fo)
Returns mapping of MIME type to set of extensions.
|
protected Collection<? extends FileObject> |
getOrderedResolvers()
Lists registered MIMEResolver instances in reverse order,
i.e.
|
protected boolean |
isUserDefined(FileObject mimeResolverFO)
Checks whether a given resolver is user-defined.
|
protected void |
storeUserDefinedResolver(Map<String,Set<String>> mimeToExtensions)
Stores declarative resolver corresponding to specified mapping of MIME type
and set of extensions.
|
protected UIHelpers()
IllegalStateException
protected final void storeUserDefinedResolver(Map<String,Set<String>> mimeToExtensions)
Not intended for use by modules outside the NetBeans Platform.
mimeToExtensions
- mapping of MIME type to set of extensions like
{image/jpeg=[jpg, jpeg], image/gif=[]}
protected final Collection<? extends FileObject> getOrderedResolvers()
Not intended for use by modules outside the NetBeans Platform.
protected final boolean isUserDefined(FileObject mimeResolverFO)
Not intended for use by modules outside the NetBeans Platform.
mimeResolverFO
- resolver definitionprotected final Map<String,Set<String>> getMIMEToExtensions(FileObject fo)
Not intended for use by modules outside the NetBeans Platform.
fo
- MIMEResolver definition{image/jpeg=[jpg, jpeg], image/gif=[]}
(never null but may be empty)