PageRenderTime 48ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-5-pre1/org/gjt/sp/jedit/msg/PositionChanging.java

#
Java | 45 lines | 18 code | 6 blank | 21 comment | 0 complexity | 7693776e7bd9655d2ea1632d26f2bef6 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. package org.gjt.sp.jedit.msg;
  2. import org.gjt.sp.jedit.EditPane;
  3. import org.gjt.sp.jedit.textarea.TextArea;
  4. /**
  5. * An EBMessage associated with an EditPane that is sent just before its caret
  6. * position changes in a "major way" to another location in the same Buffer.
  7. * These messages are tracked by the Navigator plugin,
  8. * and other interested plugins.
  9. *
  10. * jEdit plugins such as SideKick, Tags, Jump, CscopeFinder, etc, should
  11. * emit this message whenever the user wants to jump from one position
  12. * to another in the same buffer.
  13. *
  14. * For jumps to a different buffer entirely, it is not necessary for plugins
  15. * to send any message, since BufferChanging is sent by jEdit whenever
  16. * EditPane.setBuffer() is called, and it serves as a PositionChanging message
  17. * also.
  18. *
  19. *
  20. * @see org.gjt.sp.jedit.msg.BufferChanging
  21. * @author ezust
  22. * @since jEdit 4.3pre15
  23. *
  24. */
  25. public class PositionChanging extends EditPaneUpdate
  26. {
  27. protected PositionChanging(EditPane editPane, Object whatt)
  28. {
  29. super(editPane, whatt);
  30. }
  31. public PositionChanging(TextArea textArea)
  32. {
  33. super(EditPane.get(textArea), EditPaneUpdate.POSITION_CHANGING);
  34. }
  35. public PositionChanging(EditPane editPane)
  36. {
  37. super (editPane, EditPaneUpdate.POSITION_CHANGING);
  38. }
  39. }