public void uninstall(RTextArea textArea) { if (installed) { //System.out.println("Uninstalling"); textArea.removeCaretListener(this); textArea.removePropertyChangeListener(this); installed = false; } }
/** * Overridden so we can track when code folding is enabled/disabled. */ @Override public void setTextArea(RTextArea textArea) { if (this.textArea!=null) { this.textArea.removePropertyChangeListener( RSyntaxTextArea.CODE_FOLDING_PROPERTY, listener); } super.setTextArea(textArea); if (this.textArea!=null) { this.textArea.addPropertyChangeListener( RSyntaxTextArea.CODE_FOLDING_PROPERTY, listener); } }
public void uninstall() { if (installed) { textArea.removeComponentListener(this); textArea.getDocument().removeDocumentListener(this); textArea.removePropertyChangeListener(this); if (textArea instanceof RSyntaxTextArea) { RSyntaxTextArea rsta = (RSyntaxTextArea)textArea; rsta.removeActiveLineRangeListener(this); rsta.getFoldManager().removePropertyChangeListener(this); } installed = false; } }
public void uninstall(RTextArea textArea) { if (installed) { //System.out.println("Uninstalling"); textArea.removeCaretListener(this); textArea.removePropertyChangeListener(this); installed = false; } }
public void uninstall(RTextArea textArea) { if (installed) { //System.out.println("Uninstalling"); textArea.removeCaretListener(this); textArea.removePropertyChangeListener(this); installed = false; } }
public void uninstall(RTextArea textArea) { if (installed) { //System.out.println("Uninstalling"); textArea.removeCaretListener(this); textArea.removePropertyChangeListener(this); installed = false; } }
/** * Overridden so we can track when code folding is enabled/disabled. */ @Override public void setTextArea(RTextArea textArea) { if (this.textArea!=null) { this.textArea.removePropertyChangeListener( RSyntaxTextArea.CODE_FOLDING_PROPERTY, listener); } super.setTextArea(textArea); if (this.textArea!=null) { this.textArea.addPropertyChangeListener( RSyntaxTextArea.CODE_FOLDING_PROPERTY, listener); } }
public void uninstall() { if (installed) { textArea.removeComponentListener(this); textArea.getDocument().removeDocumentListener(this); textArea.removePropertyChangeListener(this); if (textArea instanceof RSyntaxTextArea) { RSyntaxTextArea rsta = (RSyntaxTextArea)textArea; rsta.removeActiveLineRangeListener(this); rsta.getFoldManager().removePropertyChangeListener(this); } installed = false; } }