Package uno.anahata.ai.nb.mime
package uno.anahata.ai.nb.mime
This package provides a sophisticated bridge between the Anahata AI framework's
Swing UI and the Apache NetBeans editor infrastructure. Its primary purpose is
to enable the AI's chat panel to leverage the IDE's native syntax highlighting
capabilities for code blocks.
Key Components:
NetBeansEditorKitProvider: An implementation of the framework'sEditorKitProviderinterface. It uses the NetBeansMimeLookupAPI to find the appropriateEditorKitfor a given language (e.g., "java", "xml"). This allows code snippets in the chat to be rendered with the same rich syntax highlighting and formatting as the main code editor.MimeUtilsandDisabledModulesMimeUtils: These are utility classes that deeply inspect the NetBeans System Filesystem and module layers. They build a comprehensive map of all known MIME types and their associated file extensions, ensuring that theNetBeansEditorKitProvidercan support the widest possible range of languages, even those from disabled - * modules.
-
ClassesClassDescriptionUtility class for extracting MIME type information from disabled NetBeans modules.Represents information about a MIME type found in a module.Utility class for working with MIME types and file extensions in NetBeans.NetBeans-specific implementation of EditorKitProvider.
