Commit | Line | Data |
---|---|---|
fb5cad3d PT |
1 | /*******************************************************************************\r |
2 | * Copyright (c) 2012 Ericsson\r | |
013a5f1c | 3 | *\r |
fb5cad3d PT |
4 | * All rights reserved. This program and the accompanying materials are\r |
5 | * made available under the terms of the Eclipse Public License v1.0 which\r | |
6 | * accompanies this distribution, and is available at\r | |
7 | * http://www.eclipse.org/legal/epl-v10.html\r | |
013a5f1c | 8 | *\r |
fb5cad3d PT |
9 | * Contributors:\r |
10 | * Patrick Tasse - Initial API and implementation\r | |
11 | *******************************************************************************/\r | |
12 | \r | |
13 | package org.eclipse.linuxtools.tmf.ui.widgets.timegraph;\r | |
14 | \r | |
15 | import java.util.EventObject;\r | |
16 | \r | |
17 | import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeGraphEntry;\r | |
18 | \r | |
013a5f1c AM |
19 | /**\r |
20 | * Notifier for the time graph view that a tree has been expanded.\r | |
21 | *\r | |
22 | * @version 1.0\r | |
23 | * @author Patrick Tasse\r | |
24 | */\r | |
fb5cad3d PT |
25 | public class TimeGraphTreeExpansionEvent extends EventObject {\r |
26 | \r | |
27 | /**\r | |
28 | * Default serial version UID for this class.\r | |
29 | * @since 1.0\r | |
30 | */\r | |
31 | private static final long serialVersionUID = 1L;\r | |
32 | \r | |
33 | /**\r | |
34 | * The entry that was expanded or collapsed.\r | |
35 | */\r | |
013a5f1c | 36 | private final ITimeGraphEntry fEntry;\r |
fb5cad3d PT |
37 | \r |
38 | /**\r | |
39 | * Creates a new event for the given source and entry.\r | |
40 | *\r | |
41 | * @param source the tree viewer\r | |
42 | * @param entry the entry\r | |
43 | */\r | |
44 | public TimeGraphTreeExpansionEvent(Object source, ITimeGraphEntry entry) {\r | |
45 | super(source);\r | |
46 | fEntry = entry;\r | |
47 | }\r | |
48 | \r | |
49 | /**\r | |
50 | * Returns the entry that got expanded or collapsed.\r | |
51 | *\r | |
52 | * @return the entry\r | |
53 | */\r | |
54 | public ITimeGraphEntry getEntry() {\r | |
55 | return fEntry;\r | |
56 | }\r | |
57 | }\r |