@Override public void actionPerformed(ActionEvent e) { scrollPane.setLineNumbersEnabled( !scrollPane.getLineNumbersEnabled()); }
@Override public void actionPerformed(ActionEvent e) { JTextComponent textComponent = getTextComponent(e); if (textComponent instanceof HttpPanelSyntaxHighlightTextArea) { HttpPanelSyntaxHighlightTextArea httpPanelTextArea = (HttpPanelSyntaxHighlightTextArea)textComponent; Component c = httpPanelTextArea.getParent(); if (c instanceof JViewport) { c = c.getParent(); if (c instanceof RTextScrollPane) { final RTextScrollPane scrollPane = (RTextScrollPane)c; scrollPane.setLineNumbersEnabled(!scrollPane.getLineNumbersEnabled()); } } } } }
if (c instanceof RTextScrollPane) { final RTextScrollPane scrollPane = (RTextScrollPane)c; fileConfiguration.setProperty(key + SHOW_LINE_NUMBERS, Boolean.valueOf(scrollPane.getLineNumbersEnabled()));
enabled = true; final RTextScrollPane scrollPane = (RTextScrollPane)c; selected = scrollPane.getLineNumbersEnabled();
if (c instanceof RTextScrollPane) { final RTextScrollPane scrollPane = (RTextScrollPane)c; scrollPane.setLineNumbersEnabled(fileConfiguration.getBoolean(key + SHOW_LINE_NUMBERS, scrollPane.getLineNumbersEnabled()));