|
1 /* |
|
2 * Copyright (c) 2007-2010 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 * Trace Configuration class |
|
17 * |
|
18 */ |
|
19 package com.nokia.traceviewer.engine; |
|
20 |
|
21 /** |
|
22 * Trace Configuration class |
|
23 * |
|
24 */ |
|
25 public class TraceConfiguration { |
|
26 |
|
27 /** |
|
28 * This trace is from scroller datareader. IMPORTANT: While scrolling, UI |
|
29 * thread is put to wait until the trace block is read. This means that you |
|
30 * cannot syncExec to the display when scrolled traces are coming. If you do |
|
31 * so, the UI will block forever! |
|
32 */ |
|
33 private boolean scrolledTrace; |
|
34 |
|
35 /** |
|
36 * This trace is filtered out -> don't show it. Can only be set true if |
|
37 * filtering is actually enabled and datareaders are reading the filtered |
|
38 * trace file. |
|
39 */ |
|
40 private boolean filteredOut; |
|
41 |
|
42 /** |
|
43 * Start trigger is not found yet -> don't show this trace in the view. Can |
|
44 * only be set true if triggering is actually enabled. |
|
45 */ |
|
46 private boolean triggeredOut; |
|
47 |
|
48 /** |
|
49 * Show this trace in the view. If set to false, trace won't be processed by |
|
50 * the view. However, if this is used as a filter, it will mess up the |
|
51 * scrolling in the view. This should be only used when processing data that |
|
52 * is already in the view |
|
53 */ |
|
54 private boolean showInView = true; |
|
55 |
|
56 /** |
|
57 * This trace is read from filter file. |
|
58 */ |
|
59 private boolean readFromFilterFile; |
|
60 |
|
61 /** |
|
62 * Gets scrolled trace status |
|
63 * |
|
64 * @return true if this trace is a scrolled trace |
|
65 */ |
|
66 public boolean isScrolledTrace() { |
|
67 return scrolledTrace; |
|
68 } |
|
69 |
|
70 /** |
|
71 * Sets scrolled trace status |
|
72 * |
|
73 * @param scrolledTrace |
|
74 */ |
|
75 public void setScrolledTrace(boolean scrolledTrace) { |
|
76 this.scrolledTrace = scrolledTrace; |
|
77 } |
|
78 |
|
79 /** |
|
80 * Gets filtered status |
|
81 * |
|
82 * @return filtering status |
|
83 */ |
|
84 public boolean isFilteredOut() { |
|
85 return filteredOut; |
|
86 } |
|
87 |
|
88 /** |
|
89 * Sets filtered status |
|
90 * |
|
91 * @param filtered |
|
92 * filtering status |
|
93 */ |
|
94 public void setFilteredOut(boolean filtered) { |
|
95 this.filteredOut = filtered; |
|
96 } |
|
97 |
|
98 /** |
|
99 * Gets triggered out status |
|
100 * |
|
101 * @return triggered out status |
|
102 */ |
|
103 public boolean isTriggeredOut() { |
|
104 return triggeredOut; |
|
105 } |
|
106 |
|
107 /** |
|
108 * Sets triggered status |
|
109 * |
|
110 * @param triggered |
|
111 * triggering status |
|
112 */ |
|
113 public void setTriggeredOut(boolean triggered) { |
|
114 this.triggeredOut = triggered; |
|
115 } |
|
116 |
|
117 /** |
|
118 * Gets readFromFilterFile status |
|
119 * |
|
120 * @return readFromFilterFile status |
|
121 */ |
|
122 public boolean isReadFromFilterFile() { |
|
123 return readFromFilterFile; |
|
124 } |
|
125 |
|
126 /** |
|
127 * Sets readFromFilterFile status |
|
128 * |
|
129 * @param readFromFilterFile |
|
130 * status |
|
131 */ |
|
132 public void setReadFromFilterFile(boolean readFromFilterFile) { |
|
133 this.readFromFilterFile = readFromFilterFile; |
|
134 } |
|
135 |
|
136 /** |
|
137 * Gets showInView status |
|
138 * |
|
139 * @return the showInView |
|
140 */ |
|
141 public boolean isShowInView() { |
|
142 return showInView; |
|
143 } |
|
144 |
|
145 /** |
|
146 * Sets showInView status |
|
147 * |
|
148 * @param showInView |
|
149 * the showInView to set |
|
150 */ |
|
151 public void setShowInView(boolean showInView) { |
|
152 this.showInView = showInView; |
|
153 } |
|
154 |
|
155 } |