1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
4 * All rights reserved. This program and the accompanying materials are made
5 * 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
9 * Contributors: Matthew Khouzam - Initial API and implementation
10 *******************************************************************************/
11 package org
.eclipse
.linuxtools
.tmf
.core
.ctfadaptor
;
13 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfEventField
;
14 import org
.eclipse
.linuxtools
.tmf
.core
.event
.TmfEventField
;
17 * CtfTmfcontent is a wrapper to allow pretty printing of the fields in a CtfTmfEvent
19 public class CtfTmfContent
extends TmfEventField
{
22 * Constructor for CtfTmfContent.
24 * @param fields ITmfEventField[]
26 public CtfTmfContent(String name
, ITmfEventField
[] fields
) {
33 * @see java.lang.Object#toString()
36 public String
toString() {
37 StringBuilder retVal
= new StringBuilder();
38 for( int i
=0; i
< getFields().length
;i
++){
39 ITmfEventField field
= getFields()[i
];
41 retVal
.append(", ");//$NON-NLS-1$
43 retVal
.append(field
.toString());
45 return retVal
.toString();
This page took 0.030223 seconds and 5 git commands to generate.