Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 2.61 KB

idea-plugin.md

File metadata and controls

33 lines (22 loc) · 2.61 KB

IntelliJ IDEA Base Plugin (:idea-plugin)

:idea-plugin (com.nexustools.knode.idea, KNode Multiplatform SDK) is an open-by-design IntelliJ Platform plugin providing standalone KNode project scaffolding and target management, and serving as the extensible base for GenericUI's IntelliJ IDEA plugin.


1. Registered Actions & Services

Defined in plugin.xml and implemented by KNodePluginActions and KNodeProjectManagerService:

  • com.nexustools.knode.idea.NewProject (New KNode Project...): Opens KNodeNewProjectWizardDialog (Swing) or runs executeNewProject(...) headlessly.
  • com.nexustools.knode.idea.ManageTargets (Manage KNode Targets & Modules...): Opens KNodeManageTargetsDialog to inspect and update an existing project's build.gradle.kts and gradle.properties.
  • KNodeProjectManagerService: Coordinates KNodeGradleScriptGenerator, KNodeBuildFileInspector, and KNodeStarterSourceGenerator to generate or update settings.gradle.kts, gradle.properties, build.gradle.kts, and starter sources.

2. Templates, Targets, & Extensions

  • Project Templates (KNodeProjectTemplateType):
    • NODEJS_CLI (CLI & System Utility)
    • MULTIPLATFORM_SERVER (HTTP & Realtime Server)
    • FULLSTACK_WEB_NODE (Full-Stack Web + Node.js App)
    • MOBILE_BRIDGE (Mobile & Desktop KNode App)
    • LIBRARY (KNode Reusable Library)
  • Target Backends (KNodeTargetBackend): JVM, WINDOWS, MACOS, LINUX, ANDROID (enables knode.android.companion.* properties), IOS, IPADOS, WEB, NODEJS.
  • Extensions (KNodeExtensionModule): ipc, binaryCodecs, htmlparser, websockets, websocketsServer, socketIo, socketIoServer, ftp, ftpServer, smtp, imap, pop3, mysql, with automatic dependency expansion (expandDependencies) and target compatibility filtering (KNodeExtensionCheckboxPanel).
  • Lazy Mode Toggle: KNodeNewProjectWizardDialog and KNodeManageTargetsDialog default lazyLoadModules = false (immediate consumer loading) while letting host/NJS projects opt in.

3. Extension Points for Downstream IDE Plugins

All model, generator, service, and UI classes (KNodeProjectManagerService, KNodeGradleScriptGenerator, KNodeBuildFileInspector, KNodeStarterSourceGenerator, KNodeNewProjectWizardDialog, KNodeManageTargetsDialog, KNodeTargetCheckboxPanel, KNodeExtensionCheckboxPanel) are open so GenericUI's IDEA plugin can subclass and extend them with GUI-framework templates and extension panels without duplicating KNode build generation logic.