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
1 /*******************************************************************************
2 * Copyright (c) 2010 Ericsson
3 *
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
8 *
9 * Contributors:
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.ui.parsers.custom;
14
15 import java.io.IOException;
16
17 import org.eclipse.linuxtools.tmf.core.io.BufferedRandomAccessFile;
18 import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
19 import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
20
21 public class CustomXmlTraceContext extends TmfContext {
22 public BufferedRandomAccessFile raFile;
23
24 public CustomXmlTraceContext(ITmfLocation<?> location, long rank) {
25 super(location, rank);
26 }
27
28 @Override
29 public void dispose() {
30 if (raFile != null) {
31 try {
32 raFile.close();
33 } catch (IOException e) {
34 }
35 }
36 super.dispose();
37 }
38
39 }
This page took 0.034186 seconds and 6 git commands to generate.