comparison org.eclipse.draw2d/src/org/eclipse/draw2d/ActionEvent.d @ 12:bc29606a740c

Added dwt-addons in original directory structure of eclipse.org
author Frank Benoit <benoit@tionex.de>
date Sat, 14 Mar 2009 18:23:29 +0100
parents
children dbfb303e8fb0
comparison
equal deleted inserted replaced
11:43904fec5dca 12:bc29606a740c
1 /*******************************************************************************
2 * Copyright (c) 2000, 2005 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module org.eclipse.draw2d.ActionEvent;
14
15 import java.lang.all;
16
17 /**
18 * An event that occurs as a result of an action being performed.
19 */
20 public class ActionEvent
21 : /+java.util.+/EventObject
22 {
23
24 private String actionName;
25
26 /**
27 * Constructs a new ActionEvent with <i>source</i> as the source of the event.
28 *
29 * @param source The source of the event
30 */
31 public this(Object source) {
32 super(source);
33 }
34
35 /**
36 * Constructs a new ActionEvent with <i>source</i> as the source of the event and
37 * <i>name</i> as the name of the action that was performed.
38 *
39 * @param source The source of the event
40 * @param name The name of the action
41 */
42 public this(Object source, String name) {
43 super(source);
44 actionName = name;
45 }
46
47 /**
48 * Returns the name of the action that was performed.
49 *
50 * @return String The name of the action
51 */
52 public String getActionName() {
53 return actionName;
54 }
55
56 }