@Deprecated public interface MimeLookupInitializer
MimeDataProvider
instead.ServiceProvider
.
child(String)
which will lead to forming of a tree initializers hierarchy.
lookup()
of the global-level initializer
(the one registered in the layer) will automatically appear
in all the results returned by MimeLookup
for any particular mime type.
MimeLookup
for a specific mime-type
by using MimeLookup.getMimeLookup(String)
the global level initializer will be asked for child(String)
and the lookup()
on the returned children
will define the result data (together with the global-level initializer's lookup).
An example implementation of MimeLookupInitializer that works over xml layer file system can be found at mime lookup module implementation LayerMimeLookupInitializer
Modifier and Type | Method | Description |
---|---|---|
org.openide.util.Lookup.Result<MimeLookupInitializer> |
child(String mimeType) |
Deprecated.
Retrieves a Lookup.Result of MimeLookupInitializers for the given sub-mimeType.
|
org.openide.util.Lookup |
lookup() |
Deprecated.
Lookup providing mime-type sensitive or global-level data
depending on which level this initializer is defined.
|
org.openide.util.Lookup lookup()
org.openide.util.Lookup.Result<MimeLookupInitializer> child(String mimeType)
mimeType
- mime-type string representation e.g. "text/x-java"Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.