[Feature] Usability and Performance Enhancements for File Choosers and Dialogs

Author: V-ZemlyakovCreated Oct 1, 2026Updated Oct 1, 2026

Description

Following the integration of native file dialog support on macOS #2974, several cross-platform performance bottlenecks and usability limitations in file dialog handling were identified.

Motivation & Problems Identified

  1. Initial Dialog Open Delay (All OSes):
    • The first time a file dialog is requested, Swing initializes internal subsystem components (FileSystemView, ShellFolder, native icon lookups, and L&F peers), resulting in an noticeable ~1–1.5 second UI freeze on EDT.
  2. Directory History Interference (Cross-Feature Conflict):
    • File choosers across Logisim-evolution currently share a single global directory state (currentDirectory / dialogDirectory).
    • Exporting a waveform or circuit diagram into ~/Documents/Images/ or loading an ELF/assembly firmware file in the SoC/Assembler tab forcibly alters the default directory for standard project actions (File -> Open..., Save As...), requiring repetitive manual re-navigation.
  3. Export Usability in Secondary Windows (Future Scope):
    • Exporting waveforms in ChronoPanel or truth tables in Analyzer currently lacks dedicated quick-export buttons directly on their toolbars and unified pre-export options dialogs (PNG/SVG/TikZ scale selection before triggering the save dialog).

Proposed Improvements

  • Background Warmup: Warm up JFileChooser in a low-priority background daemon thread during startup/splash-screen to eliminate the first-open latency.
  • Scoped Directory Memory: Introduce isolated directory scopes (CIRCUITS, IMAGE_EXPORT, SOC_SOFTWARE) with persistent preferences backing, ensuring secondary export/SoC operations do not overwrite the user's primary circuit project workspace.
  • Window Ancestor Resolution: Optimize parent window lookups on macOS to ensure smooth native modal attachment.
  • Direct Export Buttons: Add dedicated toolbar export buttons for ChronoPanel and Analyzer.
  • Pre-Export Options Dialog: Provide preliminary format and scale configuration before invoking native file choosers for waveforms and truth tables.

Source: logisim-evolution/logisim-evolution