requestFocusInWindow();
super.configurePopupMenu(popupMenu);
}
@Override public void paint(Graphics g) {
Gutter gutter = scrollPane.getGutter();
gutter.removeAllTrackingIcons();
IGutterListener[] gutterListeners = listeners.getListeners(IGutterListener.class);
for (IGutterListener listener : gutterListeners) {
for (int line = 0; line < getLineCount(); line++) {
Icon icon = listener.getIconAtLine(line);
if (icon != null)
try {
gutter.addLineTrackingIcon(line, icon);
} catch (BadLocationException e) {
e.printStackTrace();
}
}
}
if (currentLineTrackingInfo != null) {
try {
currentLineTrackingInfo = gutter.addOffsetTrackingIcon(currentLineTrackingInfo.getMarkedOffset(),
currentLineTrackingInfo.getIcon());
} catch (BadLocationException e) {
e.printStackTrace();
}
}