sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi/src/com/nokia/carbide/cpp/internal/pi/model/PiManagerEvent.java
changeset 2 b9ab3b238396
equal deleted inserted replaced
1:1050670c6980 2:b9ab3b238396
       
     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 the License "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 package com.nokia.carbide.cpp.internal.pi.model;
       
    19 
       
    20 import java.util.EventObject;
       
    21 
       
    22 import com.nokia.carbide.cpp.internal.pi.interfaces.IPiItem;
       
    23 
       
    24 
       
    25 public class PiManagerEvent extends EventObject
       
    26 {
       
    27 	private static final long serialVersionUID = 419533445045955384L;
       
    28 	private final IPiItem[] added;
       
    29 	private final IPiItem[] removed;
       
    30 
       
    31 	public PiManagerEvent(
       
    32 		PiManager source,
       
    33 		IPiItem[] itemsAdded,
       
    34 		IPiItem[] itemsRemoved) {
       
    35          
       
    36 		super(source);
       
    37 		added = itemsAdded;
       
    38 		removed = itemsRemoved;
       
    39 	}
       
    40    
       
    41 	public IPiItem[] getItemsAdded() {
       
    42 	   return added;
       
    43 	}
       
    44    
       
    45 	public IPiItem[] getItemsRemoved() {
       
    46 		return removed;
       
    47 	}
       
    48 }