]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/widgets/TrackedModifyEvent.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.utils.ui / src / org / simantics / utils / ui / widgets / TrackedModifyEvent.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.utils.ui.widgets;
13
14 import java.util.EventObject;
15
16 import org.eclipse.swt.widgets.Widget;
17
18 /**
19  * @author Tuukka Lehtonen
20  */
21 public class TrackedModifyEvent extends EventObject {
22
23     private static final long serialVersionUID = -1645464572481514311L;
24
25     private String text;
26     
27     public TrackedModifyEvent(Widget source, String text) {
28         super(source);
29         this.text = text;
30     }
31
32     public Widget getWidget() {
33         return (Widget) getSource();
34     }
35     
36     public String getText() {
37         return text;
38     }
39 }