PageRenderTime 97ms CodeModel.GetById 91ms app.highlight 4ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/org/gjt/sp/jedit/Debug.java

#
Java | 170 lines | 28 code | 26 blank | 116 comment | 0 complexity | 33baeaa9ca9a0b29a3601aad99cc9265 MD5 | raw file
  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
 23package org.gjt.sp.jedit;
 24
 25/**
 26 * This class contains various debugging flags mainly useful for core
 27 * development.
 28 * @since jEdit 4.2pre1
 29 * @author Slava Pestov
 30 * @version $Id: Debug.java 5480 2006-06-23 00:13:50Z mediumnet $
 31 */
 32public class Debug
 33{
 34	/**
 35	 * Print messages when the gap moves, and other offset manager state
 36	 * changes.
 37	 */
 38	public static boolean OFFSET_DEBUG = false;
 39
 40	/**
 41	 * Print messages when text area and display manager perform scroll
 42	 * updates.
 43	 */
 44	public static boolean SCROLL_DEBUG = false;
 45
 46	/**
 47	 * Print messages when text area tries to make the caret visible.
 48	 */
 49	public static boolean SCROLL_TO_DEBUG = false;
 50
 51	/**
 52	 * Display an error if the scrolling code detects an inconsistency.
 53	 * This kills performance!
 54	 */
 55	public static boolean SCROLL_VERIFY = false;
 56
 57	/**
 58	 * Print messages when screen line counts change.
 59	 */
 60	public static boolean SCREEN_LINES_DEBUG = false;
 61
 62	/**
 63	 * For checking context, etc.
 64	 */
 65	public static boolean TOKEN_MARKER_DEBUG = false;
 66
 67	/**
 68	 * For checking fold level invalidation, etc.
 69	 */
 70	public static boolean FOLD_DEBUG = false;
 71
 72	/**
 73	 * For checking the line visibility structure..
 74	 */
 75	public static boolean FOLD_VIS_DEBUG = false;
 76
 77	/**
 78	 * For checking invalidation, etc.
 79	 */
 80	public static boolean CHUNK_CACHE_DEBUG = false;
 81
 82	/**
 83	 * Paints boxes around chunks.
 84	 */
 85	public static boolean CHUNK_PAINT_DEBUG = false;
 86
 87	/**
 88	 * Show time taken to repaint text area painter.
 89	 */
 90	public static boolean PAINT_TIMER = false;
 91
 92	/**
 93	 * Show time taken for each EBComponent.
 94	 */
 95	public static boolean EB_TIMER = false;
 96
 97	/**
 98	 * Paint strings instead of glyph vectors.
 99	 */
100	public static boolean DISABLE_GLYPH_VECTOR = false;
101
102	/**
103	 * Logs messages when BeanShell code is evaluated.
104	 */
105	public static boolean BEANSHELL_DEBUG = false;
106
107	/**
108	 * If true, an alternative dispatcher using key typed events will be
109	 * used to handle a modifier key press in conjunction with an alphabet
110	 * key. <b>On by default on MacOS.</b>
111	 */
112	public static boolean ALTERNATIVE_DISPATCHER = OperatingSystem.isMacOS();
113
114	/**
115	 * If true, A+ shortcuts are disabled. If you use this, you should also
116	 * remap the the modifiers so that A+ is actually something else.
117	 * <b>On by default on MacOS.</b>
118	 */
119	public static boolean ALT_KEY_PRESSED_DISABLED = OperatingSystem.isMacOS();
120
121	
122	public static boolean SIMPLIFIED_KEY_HANDLING	= jEdit.getBooleanProperty("newkeyhandling");
123	
124	/**
125	 * Old key handling (SIMPLIFIED_KEY_HANDLING==false) and
126	 * new key handling (SIMPLIFIED_KEY_HANDLING==true) react on different
127	 * key events. Old key handling primarily reacts on "key pressed" events,
128	 * while new key handling primarily reacts on "key typed" events.
129	 * The feature of enabled shortcuts when dockables are docked and have
130	 * focus was only implemented for the case of reaction on "key pressed"
131	 * evets. This switch enables such handling for "key typed" events, too.
132	 * With this switch on, global shortcuts for docked dockables also work
133	 * with the new key handling.
134	 *
135	 * See also: jEdit bug 1493185 ( https://sourceforge.net/tracker/?func=detail&aid=1493185&group_id=588&atid=100588 ).
136	 */
137	public static boolean GLOBAL_SHORTCUTS_FOR_DOCKED_DOCKABLES = true;
138	
139	/**
140	 * Geometry workaround for X11.
141	 */
142	public static boolean GEOMETRY_WORKAROUND = false;
143
144	/**
145	 * Dump key events received by text area?
146	 */
147	public static boolean DUMP_KEY_EVENTS = false;
148
149	/**
150	 * Indent debug.
151	 */
152	public static boolean INDENT_DEBUG = false;
153
154	/**
155	 * Printing debug.
156	 */
157	public static boolean PRINT_DEBUG = false;
158
159	/**
160	 * Create new search dialogs instead of reusing instances.
161	 */
162	public static boolean DISABLE_SEARCH_DIALOG_POOL = false;
163	
164	/**
165	 * Disable multihead support, since it can cause window positioning
166	 * problems with some Java versions.
167	 * @since jEdit 4.3pre1
168	 */
169	public static boolean DISABLE_MULTIHEAD = false;
170}