Re-structure LTTng sub-project as per the Linux Tools guidelines
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / parsers / custom / CustomXmlTraceContext.java
CommitLineData
c3c5c786
FC
1/*******************************************************************************\r
2 * Copyright (c) 2010 Ericsson\r
3 * \r
4 * All rights reserved. This program and the accompanying materials are\r
5 * made available under the terms of the Eclipse Public License v1.0 which\r
6 * accompanies this distribution, and is available at\r
7 * http://www.eclipse.org/legal/epl-v10.html\r
8 * \r
9 * Contributors:\r
10 * Patrick Tasse - Initial API and implementation\r
11 *******************************************************************************/\r
12\r
13package org.eclipse.linuxtools.tmf.ui.parsers.custom;\r
14\r
948b0607
FC
15import java.io.IOException;\r
16\r
6c13869b
FC
17import org.eclipse.linuxtools.tmf.core.io.BufferedRandomAccessFile;\r
18import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;\r
19import org.eclipse.linuxtools.tmf.core.trace.TmfContext;\r
c3c5c786
FC
20\r
21public class CustomXmlTraceContext extends TmfContext {\r
d7fcacc9 22 public BufferedRandomAccessFile raFile;\r
c3c5c786
FC
23\r
24 public CustomXmlTraceContext(ITmfLocation<?> location, long rank) {\r
25 super(location, rank);\r
26 }\r
948b0607
FC
27\r
28 @Override\r
29 public void dispose() {\r
30 if (raFile != null) {\r
31 try {\r
32 raFile.close();\r
33 } catch (IOException e) {\r
34 }\r
35 }\r
36 super.dispose();\r
37 }\r
38\r
c3c5c786 39}
This page took 0.027603 seconds and 5 git commands to generate.