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 * A wrapper to allow pretty printing of the CtfTmfEvent fields
20 * @author Matthew Khouzam
22 public class CtfTmfContent
extends TmfEventField
{
25 * Constructor for CtfTmfContent.
27 * @param fields ITmfEventField[]
29 public CtfTmfContent(String name
, ITmfEventField
[] fields
) {
36 * @see java.lang.Object#toString()
39 public String
toString() {
40 StringBuilder retVal
= new StringBuilder();
41 for( int i
=0; i
< getFields().length
;i
++){
42 ITmfEventField field
= getFields()[i
];
44 retVal
.append(", ");//$NON-NLS-1$
46 retVal
.append(field
.toString());
48 return retVal
.toString();
This page took 0.030879 seconds and 5 git commands to generate.