tracesrv/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/TraceCompilerGlobals.java
changeset 56 aa2539c91954
parent 41 838cdffd57ce
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tracesrv/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/TraceCompilerGlobals.java	Fri Oct 08 14:56:39 2010 +0300
@@ -0,0 +1,73 @@
+/*
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:
+ *
+ * TraceCompilerGlobals global constants
+ *
+ */
+package com.nokia.tracecompiler;
+
+/**
+ * TraceCompiler Global constants
+ *
+ */
+public class TraceCompilerGlobals {
+
+	/**
+	 * Verbose output. Verbose is usually checked to print Infos
+	 */
+	private static boolean VERBOSE = false;
+	
+	/**
+	 * KepGoing is used to decide whether we continue processing on errors
+	 */
+	private static boolean KEEPGOING =  true;
+	
+	//disallow instances
+	private TraceCompilerGlobals() {
+		// singleton
+	}
+
+	/**
+	 * set verbose mode
+	 * @param verbose
+	 */
+	public static void setVerbose(boolean verbose) {
+		VERBOSE = verbose;
+	}
+	
+	/**
+	 * is vebose mode on/off
+	 * @return boolean
+	 */
+	public static boolean isVebose() {
+		return VERBOSE;
+	}
+	
+	/**
+	 * set keep going mode
+	 * @param keepgoing
+	 */
+	public static void setKeepGoing(boolean keepgoing) {
+		KEEPGOING = keepgoing;
+	}
+	
+	/**
+	 * is keepgoing mode on/off
+	 * @return boolean
+	 */
+	public static boolean keepGoing() {
+		return KEEPGOING;
+	}
+}