Lines 38-43
Link Here
|
38 |
private static LogSession currentSession; |
38 |
private static LogSession currentSession; |
39 |
|
39 |
|
40 |
public static void parseLogFile(File file, ArrayList sessions, IMemento memento) { |
40 |
public static void parseLogFile(File file, ArrayList sessions, IMemento memento) { |
|
|
41 |
if (memento.getString(LogView.P_USE_LIMIT).equals("true") //$NON-NLS-1$ |
42 |
&& memento.getInteger(LogView.P_LOG_LIMIT).intValue() == 0) |
43 |
return; |
44 |
|
41 |
ArrayList parents = new ArrayList(); |
45 |
ArrayList parents = new ArrayList(); |
42 |
LogEntry current = null; |
46 |
LogEntry current = null; |
43 |
LogSession session = null; |
47 |
LogSession session = null; |
Lines 157-162
Link Here
|
157 |
} |
161 |
} |
158 |
} |
162 |
} |
159 |
|
163 |
|
|
|
164 |
/** |
165 |
* Updates the {@link currentSession} to be the one that is not null or has most recent date. |
166 |
* @param session |
167 |
*/ |
160 |
private static void updateCurrentSession(LogSession session) { |
168 |
private static void updateCurrentSession(LogSession session) { |
161 |
if (currentSession == null) { |
169 |
if (currentSession == null) { |
162 |
currentSession = session; |
170 |
currentSession = session; |