org.netbeans.spi.editor.typinghooks
Interface TypedBreakInterceptor.Factory
- Enclosing interface:
- TypedBreakInterceptor
public static interface TypedBreakInterceptor.Factory
The factory interface for registering TypedBreakInterceptor
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-TBIFactory.instance" />
</folder>
</folder>
</folder>
createTypedBreakInterceptor
TypedBreakInterceptor createTypedBreakInterceptor(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.