org.netbeans.spi.editor.typinghooks
Interface TypedTextInterceptor.Factory
- Enclosing interface:
- TypedTextInterceptor
public static interface TypedTextInterceptor.Factory
The factory interface for registering TypedTextInterceptor
s
in MimeLookup
. An example registration in an XML layer shown
below registers Factory
implementation under text/x-something
mime type in MimeLookup
.
<folder name="Editors">
<folder name="text">
<folder name="x-something">
<file name="org-some-module-TTIFactory.instance" />
</folder>
</folder>
</folder>
createTypedTextInterceptor
TypedTextInterceptor createTypedTextInterceptor(MimePath mimePath)
- Creates a new interceptor for the given
MimePath
.
- Parameters:
mimePath
- The MimePath
for which the infrastructure
needs the new interceptor. Typically this is the same MimePath
where this Factory
was registered, but in embedded scenarios
this can be a different MimePath
.
- Returns:
- The new interceptor.