KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > core > DebugOptions


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.internal.core;
12
13 import org.eclipse.core.runtime.Platform;
14
15 /**
16  * Access to debug options.
17  *
18  * @since 3.3
19  */

20 public class DebugOptions {
21
22     // debug option flags
23
public static boolean DEBUG = false;
24     public static boolean DEBUG_COMMANDS = false;
25     public static boolean DEBUG_EVENTS = false;
26
27     public static void initDebugOptions() {
28         DEBUG = "true".equals(Platform.getDebugOption("org.eclipse.debug.core/debug")); //$NON-NLS-1$//$NON-NLS-2$
29
DEBUG_COMMANDS = DEBUG && "true".equals( //$NON-NLS-1$
30
Platform.getDebugOption("org.eclipse.debug.core/debug/commands")); //$NON-NLS-1$
31
DEBUG_EVENTS = DEBUG && "true".equals( //$NON-NLS-1$
32
Platform.getDebugOption("org.eclipse.debug.core/debug/events")); //$NON-NLS-1$
33
}
34 }
35
Popular Tags