tracesrv/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/TraceCompilerGlobals.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 * TraceCompilerGlobals global constants |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracecompiler; |
|
20 |
|
21 /** |
|
22 * TraceCompiler Global constants |
|
23 * |
|
24 */ |
|
25 public class TraceCompilerGlobals { |
|
26 |
|
27 /** |
|
28 * Verbose output. Verbose is usually checked to print Infos |
|
29 */ |
|
30 private static boolean VERBOSE = false; |
|
31 |
|
32 /** |
|
33 * KepGoing is used to decide whether we continue processing on errors |
|
34 */ |
|
35 private static boolean KEEPGOING = true; |
|
36 |
|
37 //disallow instances |
|
38 private TraceCompilerGlobals() { |
|
39 // singleton |
|
40 } |
|
41 |
|
42 /** |
|
43 * set verbose mode |
|
44 * @param verbose |
|
45 */ |
|
46 public static void setVerbose(boolean verbose) { |
|
47 VERBOSE = verbose; |
|
48 } |
|
49 |
|
50 /** |
|
51 * is vebose mode on/off |
|
52 * @return boolean |
|
53 */ |
|
54 public static boolean isVebose() { |
|
55 return VERBOSE; |
|
56 } |
|
57 |
|
58 /** |
|
59 * set keep going mode |
|
60 * @param keepgoing |
|
61 */ |
|
62 public static void setKeepGoing(boolean keepgoing) { |
|
63 KEEPGOING = keepgoing; |
|
64 } |
|
65 |
|
66 /** |
|
67 * is keepgoing mode on/off |
|
68 * @return boolean |
|
69 */ |
|
70 public static boolean keepGoing() { |
|
71 return KEEPGOING; |
|
72 } |
|
73 } |