Mercurial > projects > dwt-linux
annotate dwt/events/ShellEvent.d @ 238:380bad9f6852
reverted char[] to String
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:42:55 +0200 |
parents | f2e04420fd6c |
children | c0d810de7093 |
rev | line source |
---|---|
72 | 1 /******************************************************************************* |
1 | 2 * Copyright (c) 2000, 2004 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 | |
72 | 10 * Port to the D programming language: |
11 * Frank Benoit <benoit@tionex.de> | |
1 | 12 *******************************************************************************/ |
10
63c023465156
moved from org.eclipse.swt to dwt
Frank Benoit <benoit@tionex.de>
parents:
9
diff
changeset
|
13 module dwt.events.ShellEvent; |
1 | 14 |
238 | 15 import dwt.dwthelper.utils; |
16 | |
1 | 17 |
10
63c023465156
moved from org.eclipse.swt to dwt
Frank Benoit <benoit@tionex.de>
parents:
9
diff
changeset
|
18 import dwt.widgets.Event; |
63c023465156
moved from org.eclipse.swt to dwt
Frank Benoit <benoit@tionex.de>
parents:
9
diff
changeset
|
19 import dwt.events.TypedEvent; |
1 | 20 |
21 import tango.text.convert.Format; | |
22 | |
23 /** | |
24 * Instances of this class are sent as a result of | |
25 * operations being performed on shells. | |
26 * | |
27 * @see ShellListener | |
28 */ | |
29 | |
30 public final class ShellEvent : TypedEvent { | |
31 | |
59
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
10
diff
changeset
|
32 /** |
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
10
diff
changeset
|
33 * A flag indicating whether the operation should be allowed. |
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
10
diff
changeset
|
34 * Setting this field to <code>false</code> will cancel the operation. |
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
10
diff
changeset
|
35 */ |
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
10
diff
changeset
|
36 public bool doit; |
1 | 37 |
59
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
10
diff
changeset
|
38 //static final long serialVersionUID = 3257569490479888441L; |
1 | 39 |
40 /** | |
41 * Constructs a new instance of this class based on the | |
42 * information in the given untyped event. | |
43 * | |
44 * @param e the untyped event containing the information | |
45 */ | |
46 public this(Event e) { | |
59
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
10
diff
changeset
|
47 super(e); |
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
10
diff
changeset
|
48 this.doit = e.doit; |
1 | 49 } |
50 | |
51 /** | |
52 * Returns a string containing a concise, human-readable | |
53 * description of the receiver. | |
54 * | |
55 * @return a string representation of the event | |
56 */ | |
238 | 57 public override String toString() { |
1 | 58 return Format( "{} doit={}}", super.toString[ 0 .. $-2 ], doit ); |
59 } | |
60 } | |
61 |