Add ability to add MouseListeners to Gutter
A syntax highlighting, code folding text component written in Swing
Brought to you by:
robert_futrell
There is no easy way to add a popup menu to the Gutter component. Perhaps allow adding a MouseListener to the (package private) IconRowHeader. This would provide maximum flexibility, but it might be just as useful to provide a custom event/listener API (something like "LineHeaderMouseListener/LineHeaderMouseEvent", but better named) that add easy methods to return line number clicked and other useful info.
I needed the same functionality and used a workaround by installing listener on all components returned by gutter.getComponents(). It will be nice if gutter exposes listener interfaces and installs them on all visible components.
This issue was migrated to GitHub.
https://github.com/bobbylight/RSyntaxTextArea