# blueboxware/libgdxplugin architecture

> Architecture diagram of the GitHub repository blueboxware/libgdxplugin, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/blueboxware/libgdxplugin
- Repository: https://github.com/blueboxware/libgdxplugin

## Overview

##### Main Components

a. Core Plugin Infrastructure:
- Plugin Entry Points (LibGDXPluginBundle, LibGDXStartupActivity)
- Settings Management (LibGDXPluginConfigurable)
- Project Configuration (LibGDXProjectFileSubstitutions)

b. File Type Support Systems:
- Skin JSON Support
- Atlas File Support
- Bitmap Font Support
- LibGDX JSON Support
- Properties Support

c. Language Processing:
- Parsers (for each file type)
- Lexers (for each file type)
- PSI (Program Structure Interface) implementations
- Syntax Highlighting

d. Feature Services:
- Inspections System
- Code Completion
- Reference Resolution
- Navigation Services
- Annotation Processing (@GDXAssets, @GDXTag)

**[IntelliJ Platform API]**
- ↑
- [Core Plugin]
- ↓
**┌─────────────────────┐**
- Feature Services  │←──→│ File Type Support │
- ┘    └─────────────────┘
- ↑                        ↑

- [Language Processing]    [User Interface]

##### Detailed Component Relationships

For each file type support system (Skin, Atlas, Bitmap Font, JSON), show:
**[File Type Handler]**
- ↓
**┌─────────────────┐**
- Parser      │
- Lexer       │
- PSI         │
- ┘
- ↓
**[Feature Integration]**

##### Feature Services Detail

How services interact:
**[Inspection System] ←→ [Reference Resolution]**
- ↓                      ↓
**[Code Completion] ←→ [Navigation Services]**
- ↓                      ↓

## Diagram (Mermaid)

```mermaid
graph TB
    %% Core Components
    IntelliJ["IntelliJ Platform API"]:::platform
    Core["Core Plugin"]:::core
    Settings["Settings Management"]:::core
    ProjectConfig["Project Configuration"]:::core

    %% File Type Support
    subgraph FileTypes ["File Type Support Systems"]
        SkinJSON["Skin JSON Support"]:::filetype
        Atlas["Atlas File Support"]:::filetype
        BitmapFont["Bitmap Font Support"]:::filetype
        GDXJSON["LibGDX JSON Support"]:::filetype
        Props["Properties Support"]:::filetype
    end

    %% Language Processing
    subgraph Lang ["Language Processing"]
        Parsers["Parsers"]:::lang
        Lexers["Lexers"]:::lang
        PSI["PSI Implementation"]:::lang
        Syntax["Syntax Highlighting"]:::lang
    end

    %% Feature Services
    subgraph Features ["Feature Services"]
        Inspections["Inspections System"]:::feature
        ColorPreview["Color Preview System"]:::feature
        CodeCompletion["Code Completion"]:::feature
        RefResolution["Reference Resolution"]:::feature
        Navigation["Navigation Services"]:::feature
        Annotations["Annotation Processing"]:::feature
    end

    %% Relationships
    IntelliJ --> Core
    Core --> Settings
    Core --> ProjectConfig
    Core --> FileTypes
    Core --> Features

    FileTypes --> Lang
    Lang --> Features

    %% Feature Interconnections
    Inspections <--> RefResolution
    CodeCompletion <--> Navigation
    ColorPreview <--> Annotations

    %% Styling
    classDef platform fill:#gray
    classDef core fill:#blue
    classDef filetype fill:#green
    classDef lang fill:#yellow
    classDef feature fill:#orange

    %% Click Events
    click Core "https://github.com/BlueBoxWare/LibGDXPlugin/blob/master/src/main/kotlin/com/gmail/blueboxware/libgdxplugin/LibGDXPluginBundle.kt"
    click Settings "https://github.com/BlueBoxWare/LibGDXPlugin/blob/master/src/main/kotlin/com/gmail/blueboxware/libgdxplugin/settings/LibGDXPluginConfigurable.kt"
    click ProjectConfig "https://github.com/BlueBoxWare/LibGDXPlugin/blob/master/src/main/kotlin/com/gmail/blueboxware/libgdxplugin/settings/LibGDXProjectFileSubstitutions.kt"
    click SkinJSON "https://github.com/BlueBoxWare/LibGDXPlugin/tree/master/src/main/kotlin/com/gmail/blueboxware/libgdxplugin/filetypes/skin/"
    click Atlas "https://github.com/BlueBoxWare/LibGDXPlugin/tree/master/src/main/kotlin/com/gmail/blueboxware/libgdxplugin/filetypes/atlas2/"
    click BitmapFont "https://github.com/BlueBoxWare/LibGDXPlugin/tree/master/src/main/kotlin/com/gmail/blueboxware/libgdxplugin/filetypes/bitmapFont/"
    click GDXJSON "https://github.com/BlueBoxWare/LibGDXPlugin/tree/master/src/main/kotlin/com/gmail/blueboxware/libgdxplugin/filetypes/json/"
    click Props "https://github.com/BlueBoxWare/LibGDXPlugin/tree/master/src/main/kotlin/com/gmail/blueboxware/libgdxplugin/filetypes/properties/"
    click Parsers "https://github.com/BlueBoxWare/LibGDXPlugin/tree/master/gen/com/gmail/blueboxware/libgdxplugin/filetypes/"
    click Lexers "https://github.com/BlueBoxWare/LibGDXPlugin/tree/master/gen/com/gmail/blueboxware/libgdxplugin/filetypes/"
    click PSI "https://github.com/BlueBoxWare/LibGDXPlugin/tree/master/gen/com/gmail/blueboxware/libgdxplugin/filetypes/"
    click Inspections "https://github.com/BlueBoxWare/LibGDXPlugin/tree/master/src/main/kotlin/com/gmail/blueboxware/libgdxplugin/inspections/"
    click ColorPreview "https://github.com/BlueBoxWare/LibGDXPlugin/blob/master/src/main/kotlin/com/gmail/blueboxware/libgdxplugin/annotators/ColorAnnotationsHighlightingPassFactory.kt"
    click CodeCompletion "https://github.com/BlueBoxWare/LibGDXPlugin/tree/master/src/main/kotlin/com/gmail/blueboxware/libgdxplugin/completion/"
    click RefResolution "https://github.com/BlueBoxWare/LibGDXPlugin/tree/master/src/main/kotlin/com/gmail/blueboxware/libgdxplugin/references/"
    click Annotations "https://github.com/BlueBoxWare/LibGDXPlugin/tree/master/src/main/kotlin/com/gmail/blueboxware/libgdxplugin/annotations/"
```
