trace/traceviewer/com.nokia.traceviewer/src/com/nokia/traceviewer/dialog/treeitem/LineCountTreeComponentItem.java
changeset 11 5b9d4d8641ce
equal deleted inserted replaced
10:ed1c9f64298a 11:5b9d4d8641ce
       
     1 /*
       
     2  * Copyright (c) 2007-2010 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  * LineCount Tree Component Item
       
    17  *
       
    18  */
       
    19 package com.nokia.traceviewer.dialog.treeitem;
       
    20 
       
    21 /**
       
    22  * LineCount Tree Component Item
       
    23  */
       
    24 public class LineCountTreeComponentItem extends LineCountTreeBaseItem {
       
    25 
       
    26 	/**
       
    27 	 * Component ID of this item
       
    28 	 */
       
    29 	private final int componentId;
       
    30 
       
    31 	/**
       
    32 	 * Group ID of this item
       
    33 	 */
       
    34 	private final int groupId;
       
    35 
       
    36 	/**
       
    37 	 * @param listener
       
    38 	 *            TreeItemListener
       
    39 	 * @param parent
       
    40 	 *            parent object
       
    41 	 * @param name
       
    42 	 *            name of the item
       
    43 	 * @param rule
       
    44 	 *            rule of the item
       
    45 	 * @param componentId
       
    46 	 *            component ID
       
    47 	 * @param groupId
       
    48 	 *            group ID
       
    49 	 */
       
    50 	public LineCountTreeComponentItem(TreeItemListener listener, Object parent,
       
    51 			String name, Rule rule, int componentId, int groupId) {
       
    52 		super(listener, parent, name, rule);
       
    53 		this.componentId = componentId;
       
    54 		this.groupId = groupId;
       
    55 	}
       
    56 
       
    57 	/**
       
    58 	 * Gets component ID
       
    59 	 * 
       
    60 	 * @return the componentId
       
    61 	 */
       
    62 	public int getComponentId() {
       
    63 		return componentId;
       
    64 	}
       
    65 
       
    66 	/**
       
    67 	 * Gets group ID
       
    68 	 * 
       
    69 	 * @return the groupId
       
    70 	 */
       
    71 	public int getGroupId() {
       
    72 		return groupId;
       
    73 	}
       
    74 }