/jEdit/tags/jedit-4-0-pre3/org/gjt/sp/jedit/buffer/BufferChangeAdapter.java
Java | 75 lines | 12 code | 5 blank | 58 comment | 0 complexity | 19f7d7eb002e37cb57cb4d71e7366cec MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- /*
- * BufferChangeListener.java - Buffer listener adapter
- * :tabSize=8:indentSize=8:noTabs=false:
- * :folding=explicit:collapseFolds=1:
- *
- * Copyright (C) 2001 Slava Pestov
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
- package org.gjt.sp.jedit.buffer;
- import org.gjt.sp.jedit.Buffer;
- /**
- * An adapter you can subclass to avoid having to implement all the methods
- * of the <code>BufferChangeListener</code> interface.
- * @author Slava Pestov
- * @version $Id: BufferChangeAdapter.java 3894 2001-11-12 09:28:48Z spestov $
- * @since jEdit 4.0pre1
- */
- public abstract class BufferChangeAdapter implements BufferChangeListener
- {
- //{{{ foldLevelChanged() method
- /**
- * Called when the fold level of a line changes.
- * @param buffer The buffer in question
- * @param line The line number
- * @param level The fold level
- * @since jEdit 4.0pre1
- */
- public void foldLevelChanged(Buffer buffer, int line, int level)
- {
- } //}}}
- //{{{ contentInserted() method
- /**
- * Called when text is inserted into the buffer.
- * @param buffer The buffer in question
- * @param startLine The first line
- * @param offset The start offset, from the beginning of the buffer
- * @param numLines The number of lines inserted
- * @param length The number of characters inserted
- * @since jEdit 4.0pre1
- */
- public void contentInserted(Buffer buffer, int startLine, int offset,
- int numLines, int length) {}
- //}}}
- //{{{ contentRemoved() method
- /**
- * Called when text is removed from the buffer.
- * @param buffer The buffer in question
- * @param startLine The first line
- * @param offset The start offset, from the beginning of the buffer
- * @param numLines The number of lines removed
- * @param length The number of characters removed
- * @since jEdit 4.0pre1
- */
- public void contentRemoved(Buffer buffer, int startLine, int offset,
- int numLines, int length) {}
- //}}}
- }