PageRenderTime 50ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. /*
  2. * BufferChangeListener.java - Buffer listener adapter
  3. * :tabSize=8:indentSize=8:noTabs=false:
  4. * :folding=explicit:collapseFolds=1:
  5. *
  6. * Copyright (C) 2001 Slava Pestov
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License
  10. * as published by the Free Software Foundation; either version 2
  11. * of the License, or any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  21. */
  22. package org.gjt.sp.jedit.buffer;
  23. import org.gjt.sp.jedit.Buffer;
  24. /**
  25. * An adapter you can subclass to avoid having to implement all the methods
  26. * of the <code>BufferChangeListener</code> interface.
  27. * @author Slava Pestov
  28. * @version $Id: BufferChangeAdapter.java 3894 2001-11-12 09:28:48Z spestov $
  29. * @since jEdit 4.0pre1
  30. */
  31. public abstract class BufferChangeAdapter implements BufferChangeListener
  32. {
  33. //{{{ foldLevelChanged() method
  34. /**
  35. * Called when the fold level of a line changes.
  36. * @param buffer The buffer in question
  37. * @param line The line number
  38. * @param level The fold level
  39. * @since jEdit 4.0pre1
  40. */
  41. public void foldLevelChanged(Buffer buffer, int line, int level)
  42. {
  43. } //}}}
  44. //{{{ contentInserted() method
  45. /**
  46. * Called when text is inserted into the buffer.
  47. * @param buffer The buffer in question
  48. * @param startLine The first line
  49. * @param offset The start offset, from the beginning of the buffer
  50. * @param numLines The number of lines inserted
  51. * @param length The number of characters inserted
  52. * @since jEdit 4.0pre1
  53. */
  54. public void contentInserted(Buffer buffer, int startLine, int offset,
  55. int numLines, int length) {}
  56. //}}}
  57. //{{{ contentRemoved() method
  58. /**
  59. * Called when text is removed from the buffer.
  60. * @param buffer The buffer in question
  61. * @param startLine The first line
  62. * @param offset The start offset, from the beginning of the buffer
  63. * @param numLines The number of lines removed
  64. * @param length The number of characters removed
  65. * @since jEdit 4.0pre1
  66. */
  67. public void contentRemoved(Buffer buffer, int startLine, int offset,
  68. int numLines, int length) {}
  69. //}}}
  70. }