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