testdev/ite/src/com.nokia.testfw.stf.scripteditor/src/com/nokia/testfw/stf/scripteditor/utils/OutlineViewLabelProvider.java
changeset 1 96906a986c3b
equal deleted inserted replaced
0:f1112f777ce9 1:96906a986c3b
       
     1 /*
       
     2 * Copyright (c) 2009 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 */
       
    17 
       
    18 
       
    19 package com.nokia.testfw.stf.scripteditor.utils;
       
    20 
       
    21 import org.eclipse.jface.viewers.LabelProvider;
       
    22 
       
    23 import com.nokia.testfw.stf.scripteditor.utils.TestCase;
       
    24 
       
    25 /**
       
    26  * Needed to display nodes in outline view
       
    27  */
       
    28 public class OutlineViewLabelProvider extends LabelProvider {
       
    29 	
       
    30 	@Override
       
    31 	public String getText(Object testOb) {
       
    32 		TestCase test = (TestCase)testOb;
       
    33 		return test.getName();
       
    34 	}
       
    35 }