Print at Dec 18, 2025, 12:31:36 PM

Posted by Puybaret at Sep 15, 2021, 11:24:11 PM
Re: Plugin for input-output methods
I don’t think you could change mouse actions from a plug-in but managing some shortcuts should be possible by changing the value associated to the ACCELERATOR_KEY key for all the Swing actions available in the program.
Menu items actions are accessible from getHomeController().getView() which returns an instance of JComponent subclass to access to actions with getActionMap() method.
Similarly, some actions are also defined on the plan and 3D view Swing components which are returned by getHomeController().getPlanController().getView() and getHomeController().getHomeController3D().getView() calls.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator