trace/traceviewer/com.nokia.traceviewer/src/com/nokia/traceviewer/dialog/treeitem/LineCountTreeComponentItem.java
/*
* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
* LineCount Tree Component Item
*
*/
package com.nokia.traceviewer.dialog.treeitem;
/**
* LineCount Tree Component Item
*/
public class LineCountTreeComponentItem extends LineCountTreeBaseItem {
/**
* Component ID of this item
*/
private final int componentId;
/**
* Group ID of this item
*/
private final int groupId;
/**
* @param listener
* TreeItemListener
* @param parent
* parent object
* @param name
* name of the item
* @param rule
* rule of the item
* @param componentId
* component ID
* @param groupId
* group ID
*/
public LineCountTreeComponentItem(TreeItemListener listener, Object parent,
String name, Rule rule, int componentId, int groupId) {
super(listener, parent, name, rule);
this.componentId = componentId;
this.groupId = groupId;
}
/**
* Gets component ID
*
* @return the componentId
*/
public int getComponentId() {
return componentId;
}
/**
* Gets group ID
*
* @return the groupId
*/
public int getGroupId() {
return groupId;
}
}