tracefw/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/engine/propertyfile/TracePropertyFile.java
changeset 56 aa2539c91954
parent 54 a151135b0cf9
child 60 e54443a6878c
child 62 1c2bb2fc7c87
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 * Trace property file properties
       
    17 *
       
    18 */
       
    19 package com.nokia.tracecompiler.engine.propertyfile;
       
    20 
       
    21 import org.w3c.dom.Document;
       
    22 
       
    23 import com.nokia.tracecompiler.project.TraceProjectFile;
       
    24 
       
    25 /**
       
    26  * Trace property file properties
       
    27  * 
       
    28  */
       
    29 final class TracePropertyFile extends TraceProjectFile {
       
    30 
       
    31 	/**
       
    32 	 * Title shown in UI
       
    33 	 */
       
    34 	private static final String PROPERTY_FILE = Messages
       
    35 			.getString("TracePropertyFile.Title"); //$NON-NLS-1$
       
    36 
       
    37 	/**
       
    38 	 * Creates a new property file
       
    39 	 * 
       
    40 	 * @param filePath
       
    41 	 *            path to the file
       
    42 	 * @param document
       
    43 	 *            the document representing the property file
       
    44 	 */
       
    45 	TracePropertyFile(String filePath, Document document) {
       
    46 		super(filePath, ""); //$NON-NLS-1$
       
    47 	}
       
    48 
       
    49 	/*
       
    50 	 * (non-Javadoc)
       
    51 	 * 
       
    52 	 * @see com.nokia.tracecompiler.project.TraceProjectFile#getFileExtension()
       
    53 	 */
       
    54 	@Override
       
    55 	protected String getFileExtension() {
       
    56 		return PropertyFileConstants.PROPERTY_FILE_NAME;
       
    57 	}
       
    58 
       
    59 	/*
       
    60 	 * (non-Javadoc)
       
    61 	 * 
       
    62 	 * @see com.nokia.tracecompiler.project.TraceProjectFile#getTitle()
       
    63 	 */
       
    64 	@Override
       
    65 	public String getTitle() {
       
    66 		return PROPERTY_FILE;
       
    67 	}
       
    68 }