1 /*******************************************************************************
2 * Copyright (c) 2010, 2015 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Patrick Tasse - Initial API and implementation
11 * Bernd Hufmann - Add trace type id handling
12 *******************************************************************************/
14 package org
.eclipse
.tracecompass
.tmf
.core
.parsers
.custom
;
16 import java
.io
.ByteArrayInputStream
;
18 import java
.io
.IOException
;
19 import java
.io
.RandomAccessFile
;
20 import java
.nio
.ByteBuffer
;
22 import javax
.xml
.parsers
.DocumentBuilder
;
23 import javax
.xml
.parsers
.DocumentBuilderFactory
;
24 import javax
.xml
.parsers
.ParserConfigurationException
;
26 import org
.eclipse
.core
.resources
.IProject
;
27 import org
.eclipse
.core
.resources
.IResource
;
28 import org
.eclipse
.core
.runtime
.IStatus
;
29 import org
.eclipse
.core
.runtime
.Status
;
30 import org
.eclipse
.jdt
.annotation
.NonNull
;
31 import org
.eclipse
.tracecompass
.internal
.tmf
.core
.Activator
;
32 import org
.eclipse
.tracecompass
.internal
.tmf
.core
.parsers
.custom
.CustomEventAspects
;
33 import org
.eclipse
.tracecompass
.tmf
.core
.event
.ITmfEvent
;
34 import org
.eclipse
.tracecompass
.tmf
.core
.event
.aspect
.ITmfEventAspect
;
35 import org
.eclipse
.tracecompass
.tmf
.core
.exceptions
.TmfTraceException
;
36 import org
.eclipse
.tracecompass
.tmf
.core
.io
.BufferedRandomAccessFile
;
37 import org
.eclipse
.tracecompass
.tmf
.core
.signal
.TmfSignalHandler
;
38 import org
.eclipse
.tracecompass
.tmf
.core
.signal
.TmfTraceRangeUpdatedSignal
;
39 import org
.eclipse
.tracecompass
.tmf
.core
.timestamp
.TmfTimestamp
;
40 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfContext
;
41 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.TmfContext
;
42 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.TmfTrace
;
43 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.TmfTraceUtils
;
44 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.TraceValidationStatus
;
45 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.indexer
.ITmfPersistentlyIndexable
;
46 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.indexer
.ITmfTraceIndexer
;
47 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.indexer
.TmfBTreeTraceIndexer
;
48 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.indexer
.checkpoint
.ITmfCheckpoint
;
49 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.indexer
.checkpoint
.TmfCheckpoint
;
50 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.location
.ITmfLocation
;
51 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.location
.TmfLongLocation
;
52 import org
.w3c
.dom
.Document
;
53 import org
.w3c
.dom
.Element
;
54 import org
.w3c
.dom
.Node
;
55 import org
.w3c
.dom
.NodeList
;
56 import org
.xml
.sax
.EntityResolver
;
57 import org
.xml
.sax
.ErrorHandler
;
58 import org
.xml
.sax
.InputSource
;
59 import org
.xml
.sax
.SAXException
;
60 import org
.xml
.sax
.SAXParseException
;
63 * Trace object for custom XML trace parsers.
65 * @author Patrick Tassé
67 public class CustomXmlTrace
extends TmfTrace
implements ITmfPersistentlyIndexable
{
69 private static final TmfLongLocation NULL_LOCATION
= new TmfLongLocation(-1L);
70 private static final int DEFAULT_CACHE_SIZE
= 100;
71 private static final int MAX_LINES
= 100;
72 private static final int CONFIDENCE
= 100;
74 private final CustomXmlTraceDefinition fDefinition
;
75 private final CustomXmlEventType fEventType
;
76 private final CustomXmlInputElement fRecordInputElement
;
77 private BufferedRandomAccessFile fFile
;
78 private final String fTraceTypeId
;
80 private static final char SEPARATOR
= ':';
81 private static final String CUSTOM_XML_TRACE_TYPE_PREFIX
= "custom.xml.trace" + SEPARATOR
; //$NON-NLS-1$
82 private static final String LINUX_TOOLS_CUSTOM_XML_TRACE_TYPE_PREFIX
= "org.eclipse.linuxtools.tmf.core.parsers.custom.CustomXmlTrace" + SEPARATOR
; //$NON-NLS-1$
83 private static final String EARLY_TRACE_COMPASS_CUSTOM_XML_TRACE_TYPE_PREFIX
= "org.eclipse.tracecompass.tmf.core.parsers.custom.CustomXmlTrace" + SEPARATOR
; //$NON-NLS-1$
91 public CustomXmlTrace(final CustomXmlTraceDefinition definition
) {
92 fDefinition
= definition
;
93 fEventType
= new CustomXmlEventType(fDefinition
);
94 fRecordInputElement
= getRecordInputElement(fDefinition
.rootInputElement
);
95 fTraceTypeId
= buildTraceTypeId(definition
.categoryName
, definition
.definitionName
);
96 setCacheSize(DEFAULT_CACHE_SIZE
);
107 * Path to the trace/log file
110 * @throws TmfTraceException
111 * If the trace/log couldn't be opened
113 public CustomXmlTrace(final IResource resource
,
114 final CustomXmlTraceDefinition definition
, final String path
,
115 final int pageSize
) throws TmfTraceException
{
117 setCacheSize((pageSize
> 0) ? pageSize
: DEFAULT_CACHE_SIZE
);
118 initTrace(resource
, path
, CustomXmlEvent
.class);
122 public void initTrace(final IResource resource
, final String path
, final Class
<?
extends ITmfEvent
> eventType
) throws TmfTraceException
{
123 super.initTrace(resource
, path
, eventType
);
127 private void initFile() throws TmfTraceException
{
130 fFile
= new BufferedRandomAccessFile(getPath(), "r"); //$NON-NLS-1$
131 } catch (IOException e
) {
132 throw new TmfTraceException(e
.getMessage(), e
);
137 public synchronized void dispose() {
142 private void closeFile() {
146 } catch (IOException e
) {
154 public ITmfTraceIndexer
getIndexer() {
155 return super.getIndexer();
159 public Iterable
<ITmfEventAspect
> getEventAspects() {
160 return CustomEventAspects
.generateAspects(fDefinition
);
164 public synchronized TmfContext
seekEvent(final ITmfLocation location
) {
165 final CustomXmlTraceContext context
= new CustomXmlTraceContext(NULL_LOCATION
, ITmfContext
.UNKNOWN_RANK
);
166 if (NULL_LOCATION
.equals(location
) || fFile
== null) {
170 if (location
== null) {
172 } else if (location
.getLocationInfo() instanceof Long
) {
173 fFile
.seek((Long
) location
.getLocationInfo());
175 long rawPos
= fFile
.getFilePointer();
176 String line
= fFile
.getNextLine();
177 while (line
!= null) {
178 final int idx
= indexOfElement(fRecordInputElement
.getElementName(), line
, 0);
180 context
.setLocation(new TmfLongLocation(rawPos
+ idx
));
183 rawPos
= fFile
.getFilePointer();
184 line
= fFile
.getNextLine();
187 } catch (final IOException e
) {
188 Activator
.logError("Error seeking event. File: " + getPath(), e
); //$NON-NLS-1$
195 public synchronized TmfContext
seekEvent(final double ratio
) {
197 return new CustomTxtTraceContext(NULL_LOCATION
, ITmfContext
.UNKNOWN_RANK
);
200 long pos
= Math
.round(ratio
* fFile
.length());
203 if (fFile
.read() == '\n') {
208 final ITmfLocation location
= new TmfLongLocation(pos
);
209 final TmfContext context
= seekEvent(location
);
210 context
.setRank(ITmfContext
.UNKNOWN_RANK
);
212 } catch (final IOException e
) {
213 Activator
.logError("Error seeking event. File: " + getPath(), e
); //$NON-NLS-1$
214 return new CustomXmlTraceContext(NULL_LOCATION
, ITmfContext
.UNKNOWN_RANK
);
219 public synchronized double getLocationRatio(final ITmfLocation location
) {
224 if (location
.getLocationInfo() instanceof Long
) {
225 return ((Long
) location
.getLocationInfo()).doubleValue() / fFile
.length();
227 } catch (final IOException e
) {
228 Activator
.logError("Error getting location ration. File: " + getPath(), e
); //$NON-NLS-1$
234 public ITmfLocation
getCurrentLocation() {
235 // TODO Auto-generated method stub
240 public synchronized CustomXmlEvent
parseEvent(final ITmfContext tmfContext
) {
241 ITmfContext context
= seekEvent(tmfContext
.getLocation());
242 return parse(context
);
246 public synchronized CustomXmlEvent
getNext(final ITmfContext context
) {
247 final ITmfContext savedContext
= new TmfContext(context
.getLocation(), context
.getRank());
248 final CustomXmlEvent event
= parse(context
);
250 updateAttributes(savedContext
, event
);
251 context
.increaseRank();
256 private synchronized CustomXmlEvent
parse(final ITmfContext tmfContext
) {
260 if (!(tmfContext
instanceof CustomXmlTraceContext
)) {
264 final CustomXmlTraceContext context
= (CustomXmlTraceContext
) tmfContext
;
265 if (context
.getLocation() == null || !(context
.getLocation().getLocationInfo() instanceof Long
) || NULL_LOCATION
.equals(context
.getLocation())) {
269 CustomXmlEvent event
= null;
271 // Below +1 for the <
272 if (fFile
.getFilePointer() != (Long
) context
.getLocation().getLocationInfo() + 1) {
273 fFile
.seek((Long
) context
.getLocation().getLocationInfo() + 1);
275 final StringBuffer elementBuffer
= new StringBuffer("<"); //$NON-NLS-1$
276 readElement(elementBuffer
, fFile
);
277 final Element element
= parseElementBuffer(elementBuffer
);
279 event
= extractEvent(element
, fRecordInputElement
);
280 ((StringBuffer
) event
.getContent().getValue()).append(elementBuffer
);
282 long rawPos
= fFile
.getFilePointer();
283 String line
= fFile
.getNextLine();
284 while (line
!= null) {
285 final int idx
= indexOfElement(fRecordInputElement
.getElementName(), line
, 0);
287 context
.setLocation(new TmfLongLocation(rawPos
+ idx
));
290 rawPos
= fFile
.getFilePointer();
291 line
= fFile
.getNextLine();
293 } catch (final IOException e
) {
294 Activator
.logError("Error parsing event. File: " + getPath(), e
); //$NON-NLS-1$
297 context
.setLocation(NULL_LOCATION
);
301 private Element
parseElementBuffer(final StringBuffer elementBuffer
) {
303 final DocumentBuilderFactory dbf
= DocumentBuilderFactory
.newInstance();
304 final DocumentBuilder db
= dbf
.newDocumentBuilder();
306 // The following allows xml parsing without access to the dtd
307 final EntityResolver resolver
= new EntityResolver() {
309 public InputSource
resolveEntity(final String publicId
, final String systemId
) {
310 final String empty
= ""; //$NON-NLS-1$
311 final ByteArrayInputStream bais
= new ByteArrayInputStream(empty
.getBytes());
312 return new InputSource(bais
);
315 db
.setEntityResolver(resolver
);
317 // The following catches xml parsing exceptions
318 db
.setErrorHandler(new ErrorHandler() {
320 public void error(final SAXParseException saxparseexception
) throws SAXException
{
324 public void warning(final SAXParseException saxparseexception
) throws SAXException
{
328 public void fatalError(final SAXParseException saxparseexception
) throws SAXException
{
329 throw saxparseexception
;
333 final Document doc
= db
.parse(new ByteArrayInputStream(elementBuffer
.toString().getBytes()));
334 return doc
.getDocumentElement();
335 } catch (final ParserConfigurationException e
) {
336 Activator
.logError("Error parsing element buffer. File:" + getPath(), e
); //$NON-NLS-1$
337 } catch (final SAXException e
) {
338 Activator
.logError("Error parsing element buffer. File:" + getPath(), e
); //$NON-NLS-1$
339 } catch (final IOException e
) {
340 Activator
.logError("Error parsing element buffer. File: " + getPath(), e
); //$NON-NLS-1$
345 private static int indexOfElement(String elementName
, String line
, int fromIndex
) {
346 final String recordElementStart
= '<' + elementName
;
347 int index
= line
.indexOf(recordElementStart
, fromIndex
);
351 int nextCharIndex
= index
+ recordElementStart
.length();
352 if (nextCharIndex
< line
.length()) {
353 char c
= line
.charAt(nextCharIndex
);
354 // Check that the match is not just a substring of another element
355 if (Character
.isLetterOrDigit(c
)) {
356 return indexOfElement(elementName
, line
, nextCharIndex
);
362 private void readElement(final StringBuffer buffer
, final RandomAccessFile raFile
) {
365 boolean startTagClosed
= false;
367 while ((i
= raFile
.read()) != -1) {
369 final char c
= (char) i
;
372 readQuote(buffer
, raFile
, '"');
373 } else if (c
== '\'') {
374 readQuote(buffer
, raFile
, '\'');
375 } else if (c
== '<') {
376 readElement(buffer
, raFile
);
377 } else if (c
== '/' && numRead
== 1) {
379 } else if (c
== '-' && numRead
== 3 && buffer
.substring(buffer
.length() - 3, buffer
.length() - 1).equals("!-")) { //$NON-NLS-1$
380 readComment(buffer
, raFile
); // found "<!--"
381 } else if (i
== '>') {
382 if (buffer
.charAt(buffer
.length() - 2) == '/') {
384 } else if (startTagClosed
) {
385 break; // found "<...>...</...>"
388 startTagClosed
= true; // found "<...>"
393 } catch (final IOException e
) {
398 private static void readQuote(final StringBuffer buffer
,
399 final RandomAccessFile raFile
, final char eq
) {
402 while ((i
= raFile
.read()) != -1) {
403 final char c
= (char) i
;
407 break; // found matching end-quote
411 } catch (final IOException e
) {
416 private static void readComment(final StringBuffer buffer
,
417 final RandomAccessFile raFile
) {
421 while ((i
= raFile
.read()) != -1) {
423 final char c
= (char) i
;
425 if (c
== '>' && numRead
>= 2 && buffer
.substring(buffer
.length() - 3, buffer
.length() - 1).equals("--")) //$NON-NLS-1$
427 break; // found "-->"
431 } catch (final IOException e
) {
437 * Parse an XML element.
439 * @param parentElement
442 * The contents to parse
443 * @return The parsed content
445 public static StringBuffer
parseElement(final Element parentElement
, final StringBuffer buffer
) {
446 final NodeList nodeList
= parentElement
.getChildNodes();
447 String separator
= null;
448 for (int i
= 0; i
< nodeList
.getLength(); i
++) {
449 final Node node
= nodeList
.item(i
);
450 short nodeType
= node
.getNodeType();
451 if (nodeType
== Node
.ELEMENT_NODE
) {
452 if (separator
== null) {
453 separator
= " | "; //$NON-NLS-1$
455 buffer
.append(separator
);
457 final Element element
= (Element
) node
;
458 if (!element
.hasChildNodes()) {
459 buffer
.append(element
.getNodeName());
460 } else if (element
.getChildNodes().getLength() == 1 && element
.getFirstChild().getNodeType() == Node
.TEXT_NODE
) {
461 buffer
.append(element
.getNodeName());
463 buffer
.append(element
.getFirstChild().getNodeValue().trim());
465 buffer
.append(element
.getNodeName());
466 buffer
.append(" [ "); //$NON-NLS-1$
467 parseElement(element
, buffer
);
468 buffer
.append(" ]"); //$NON-NLS-1$
470 } else if ((nodeType
== Node
.TEXT_NODE
) && (!node
.getNodeValue().trim().isEmpty())) {
471 buffer
.append(node
.getNodeValue().trim());
478 * Get an input element if it is a valid record input. If not, we will look
479 * into its children for valid inputs.
481 * @param inputElement
482 * The main element to check for.
483 * @return The record element
485 public CustomXmlInputElement
getRecordInputElement(final CustomXmlInputElement inputElement
) {
486 if (inputElement
.isLogEntry()) {
488 } else if (inputElement
.getChildElements() != null) {
489 for (final CustomXmlInputElement childInputElement
: inputElement
.getChildElements()) {
490 final CustomXmlInputElement recordInputElement
= getRecordInputElement(childInputElement
);
491 if (recordInputElement
!= null) {
492 return recordInputElement
;
500 * Extract a trace event from an XML element.
504 * @param inputElement
506 * @return The extracted event
508 public CustomXmlEvent
extractEvent(final Element element
, final CustomXmlInputElement inputElement
) {
509 final CustomXmlEvent event
= new CustomXmlEvent(fDefinition
, this, TmfTimestamp
.ZERO
, fEventType
);
510 event
.setContent(new CustomEventContent(event
, new StringBuffer()));
511 parseElement(element
, event
, inputElement
);
515 private void parseElement(final Element element
, final CustomXmlEvent event
, final CustomXmlInputElement inputElement
) {
516 if (inputElement
.getInputName() != null && !inputElement
.getInputName().equals(CustomXmlTraceDefinition
.TAG_IGNORE
)) {
517 event
.parseInput(parseElement(element
, new StringBuffer()).toString(), inputElement
.getInputName(), inputElement
.getInputAction(), inputElement
.getInputFormat());
519 if (inputElement
.getAttributes() != null) {
520 for (final CustomXmlInputAttribute attribute
: inputElement
.getAttributes()) {
521 event
.parseInput(element
.getAttribute(attribute
.getAttributeName()), attribute
.getInputName(), attribute
.getInputAction(), attribute
.getInputFormat());
524 final NodeList childNodes
= element
.getChildNodes();
525 if (inputElement
.getChildElements() != null) {
526 for (int i
= 0; i
< childNodes
.getLength(); i
++) {
527 final Node node
= childNodes
.item(i
);
528 if (node
instanceof Element
) {
529 for (final CustomXmlInputElement child
: inputElement
.getChildElements()) {
530 if (node
.getNodeName().equals(child
.getElementName())) {
531 parseElement((Element
) node
, event
, child
);
542 * Retrieve the trace definition.
544 * @return The trace definition
546 public CustomTraceDefinition
getDefinition() {
553 * The default implementation sets the confidence to 100 if any of the first
554 * 100 lines of the file contains a valid record input element, and 0
558 public IStatus
validate(IProject project
, String path
) {
559 File file
= new File(path
);
560 if (!file
.exists() || !file
.isFile() || !file
.canRead()) {
561 return new Status(IStatus
.ERROR
, Activator
.PLUGIN_ID
, Messages
.CustomTrace_FileNotFound
+ ": " + path
); //$NON-NLS-1$
564 if (!TmfTraceUtils
.isText(file
)) {
565 return new TraceValidationStatus(0, Activator
.PLUGIN_ID
);
567 } catch (IOException e
) {
568 Activator
.logError("Error validating file: " + path
, e
); //$NON-NLS-1$
569 return new Status(IStatus
.ERROR
, Activator
.PLUGIN_ID
, "IOException validating file: " + path
, e
); //$NON-NLS-1$
571 try (BufferedRandomAccessFile rafile
= new BufferedRandomAccessFile(path
, "r")) { //$NON-NLS-1$
574 String line
= rafile
.getNextLine();
575 while ((line
!= null) && (lineCount
++ < MAX_LINES
)) {
576 final int idx
= indexOfElement(fRecordInputElement
.getElementName(), line
, 0);
578 rafile
.seek(rawPos
+ idx
+ 1); // +1 is for the <
579 final StringBuffer elementBuffer
= new StringBuffer("<"); //$NON-NLS-1$
580 readElement(elementBuffer
, rafile
);
581 final Element element
= parseElementBuffer(elementBuffer
);
582 if (element
!= null) {
584 return new TraceValidationStatus(CONFIDENCE
, Activator
.PLUGIN_ID
);
587 rawPos
= rafile
.getFilePointer();
588 line
= rafile
.getNextLine();
590 } catch (IOException e
) {
591 return new Status(IStatus
.ERROR
, Activator
.PLUGIN_ID
, "IOException validating file: " + path
, e
); //$NON-NLS-1$
593 return new TraceValidationStatus(0, Activator
.PLUGIN_ID
);
596 private static int fCheckpointSize
= -1;
599 public synchronized int getCheckpointSize() {
600 if (fCheckpointSize
== -1) {
601 TmfCheckpoint c
= new TmfCheckpoint(TmfTimestamp
.ZERO
, new TmfLongLocation(0L), 0);
602 ByteBuffer b
= ByteBuffer
.allocate(ITmfCheckpoint
.MAX_SERIALIZE_SIZE
);
605 fCheckpointSize
= b
.position();
608 return fCheckpointSize
;
612 public ITmfLocation
restoreLocation(ByteBuffer bufferIn
) {
613 return new TmfLongLocation(bufferIn
);
617 protected ITmfTraceIndexer
createIndexer(int interval
) {
618 return new TmfBTreeTraceIndexer(this, interval
);
622 public String
getTraceTypeId() {
627 * Build the trace type id for a custom XML trace
631 * @param definitionName
632 * the definition name
633 * @return the trace type id
635 public static @NonNull String
buildTraceTypeId(String category
, String definitionName
) {
636 return CUSTOM_XML_TRACE_TYPE_PREFIX
+ category
+ SEPARATOR
+ definitionName
;
640 * Checks whether the given trace type ID is a custom XML trace type ID
643 * the trace type ID to check
644 * @return <code>true</code> if it's a custom text trace type ID else <code>false</code>
646 public static boolean isCustomTraceTypeId(@NonNull String traceTypeId
) {
647 return traceTypeId
.startsWith(CUSTOM_XML_TRACE_TYPE_PREFIX
);
651 * This methods builds a trace type ID from a given ID taking into
652 * consideration any format changes that were done for the IDs of custom
653 * XML traces. For example, such format change took place when moving to
654 * Trace Compass. Trace type IDs that are part of the plug-in extension for
655 * trace types won't be changed.
657 * This method is useful for IDs that were persisted in the workspace before
658 * the format changes (e.g. in the persistent properties of a trace
661 * It ensures backwards compatibility of the workspace for custom XML
665 * the legacy trace type ID
666 * @return the trace type id in Trace Compass format
668 public static @NonNull String
buildCompatibilityTraceTypeId(@NonNull String traceTypeId
) {
669 // Handle early Trace Compass custom XML trace type IDs
670 if (traceTypeId
.startsWith(EARLY_TRACE_COMPASS_CUSTOM_XML_TRACE_TYPE_PREFIX
)) {
671 return CUSTOM_XML_TRACE_TYPE_PREFIX
+ traceTypeId
.substring(EARLY_TRACE_COMPASS_CUSTOM_XML_TRACE_TYPE_PREFIX
.length());
674 // Handle Linux Tools custom XML trace type IDs (with and without category)
675 int index
= traceTypeId
.lastIndexOf(SEPARATOR
);
676 if ((index
!= -1) && (traceTypeId
.startsWith(LINUX_TOOLS_CUSTOM_XML_TRACE_TYPE_PREFIX
))) {
677 String definitionName
= index
< traceTypeId
.length() ? traceTypeId
.substring(index
+ 1) : ""; //$NON-NLS-1$
678 if (traceTypeId
.contains(CustomXmlTrace
.class.getSimpleName() + SEPARATOR
) && traceTypeId
.indexOf(SEPARATOR
) == index
) {
679 return buildTraceTypeId(CustomXmlTraceDefinition
.CUSTOM_XML_CATEGORY
, definitionName
);
681 return CUSTOM_XML_TRACE_TYPE_PREFIX
+ traceTypeId
.substring(LINUX_TOOLS_CUSTOM_XML_TRACE_TYPE_PREFIX
.length());
688 public void traceRangeUpdated(TmfTraceRangeUpdatedSignal signal
) {
689 if (signal
.getTrace() == this) {
691 synchronized (this) {
692 // Reset the file handle in case it has reached the end of the
693 // file already. Otherwise, it will not be able to read new data
694 // pass the previous end.
697 } catch (TmfTraceException e
) {
698 Activator
.logError(e
.getLocalizedMessage(), e
);
701 super.traceRangeUpdated(signal
);