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's EditorKitProvider interface. It uses the NetBeans MimeLookup API to find the appropriate EditorKit for 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.
  • MimeUtils and DisabledModulesMimeUtils: 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 the NetBeansEditorKitProvider can support the widest possible range of languages, even those from disabled - * modules.
This package is a key example of the deep integration that makes the Anahata AI Assistant a seamless part of the NetBeans development experience.
  • Classes
    Class
    Description
    Utility 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.