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

/jEdit/tags/jedit-4-2-pre14/org/gjt/sp/jedit/Debug.java

#
Java | 150 lines | 26 code | 23 blank | 101 comment | 0 complexity | c6af2e48d534b07f6d7b5b6df8bfa4af 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. * Debug.java - Various debugging flags
  3. * :tabSize=8:indentSize=8:noTabs=false:
  4. * :folding=explicit:collapseFolds=1:
  5. *
  6. * Copyright (C) 2003 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;
  23. /**
  24. * This class contains various debugging flags mainly useful for core
  25. * development.
  26. * @since jEdit 4.2pre1
  27. * @author Slava Pestov
  28. * @version $Id: Debug.java 4972 2004-02-22 20:00:54Z spestov $
  29. */
  30. public class Debug
  31. {
  32. /**
  33. * Print messages when the gap moves, and other offset manager state
  34. * changes.
  35. */
  36. public static boolean OFFSET_DEBUG = false;
  37. /**
  38. * Print messages when text area and display manager perform scroll
  39. * updates.
  40. */
  41. public static boolean SCROLL_DEBUG = false;
  42. /**
  43. * Print messages when text area tries to make the caret visible.
  44. */
  45. public static boolean SCROLL_TO_DEBUG = false;
  46. /**
  47. * Display an error if the scrolling code detects an inconsistency.
  48. * This kills performance!
  49. */
  50. public static boolean SCROLL_VERIFY = false;
  51. /**
  52. * Print messages when screen line counts change.
  53. */
  54. public static boolean SCREEN_LINES_DEBUG = false;
  55. /**
  56. * For checking context, etc.
  57. */
  58. public static boolean TOKEN_MARKER_DEBUG = false;
  59. /**
  60. * For checking fold level invalidation, etc.
  61. */
  62. public static boolean FOLD_DEBUG = false;
  63. /**
  64. * For checking the line visibility structure..
  65. */
  66. public static boolean FOLD_VIS_DEBUG = false;
  67. /**
  68. * For checking invalidation, etc.
  69. */
  70. public static boolean CHUNK_CACHE_DEBUG = false;
  71. /**
  72. * Paints boxes around chunks.
  73. */
  74. public static boolean CHUNK_PAINT_DEBUG = false;
  75. /**
  76. * Show time taken to repaint text area painter.
  77. */
  78. public static boolean PAINT_TIMER = false;
  79. /**
  80. * Show time taken for each EBComponent.
  81. */
  82. public static boolean EB_TIMER = false;
  83. /**
  84. * Disable monospaced font optimization.
  85. */
  86. public static boolean DISABLE_MONOSPACE_HACK = false;
  87. /**
  88. * Paint strings instead of glyph vectors.
  89. */
  90. public static boolean DISABLE_GLYPH_VECTOR = false;
  91. /**
  92. * Logs messages when BeanShell code is evaluated.
  93. */
  94. public static boolean BEANSHELL_DEBUG = false;
  95. /**
  96. * If true, an alternative dispatcher using key typed events will be
  97. * used to handle a modifier key press in conjunction with an alphabet
  98. * key. <b>On by default on MacOS.</b>
  99. */
  100. public static boolean ALTERNATIVE_DISPATCHER = OperatingSystem.isMacOS();
  101. /**
  102. * If true, A+ shortcuts are disabled. If you use this, you should also
  103. * remap the the modifiers so that A+ is actually something else.
  104. * <b>On by default on MacOS.</b>
  105. */
  106. public static boolean ALT_KEY_PRESSED_DISABLED = OperatingSystem.isMacOS();
  107. /**
  108. * Geometry workaround for X11.
  109. */
  110. public static boolean GEOMETRY_WORKAROUND = false;
  111. /**
  112. * Dump key events received by text area?
  113. */
  114. public static boolean DUMP_KEY_EVENTS = false;
  115. /**
  116. * Indent debug.
  117. */
  118. public static boolean INDENT_DEBUG = false;
  119. /**
  120. * Printing debug.
  121. */
  122. public static boolean PRINT_DEBUG = false;
  123. /**
  124. * Create new search dialogs instead of reusing instances.
  125. */
  126. public static boolean DISABLE_SEARCH_DIALOG_POOL = false;
  127. }