Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#10 Add ability to add MouseListeners to Gutter

closed
New API (9)
5
2014-03-26
2009-08-18
Anonymous
No

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.

Discussion

  • 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.

     
  • Robert Futrell
    Robert Futrell
    2014-03-26

    • status: open --> closed
    • Group: --> Next Release (example)