Mercurial > projects > dwt2
comparison org.eclipse.core.commands/src/org/eclipse/core/commands/ParameterTypeEvent.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 |
comparison
equal
deleted
inserted
replaced
11:43904fec5dca | 12:bc29606a740c |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2005, 2006 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.core.commands.ParameterTypeEvent; | |
14 | |
15 import org.eclipse.core.commands.common.AbstractHandleObjectEvent; | |
16 import org.eclipse.core.commands.ParameterType; | |
17 | |
18 import java.lang.all; | |
19 | |
20 /** | |
21 * An instance of this class describes changes to an instance of | |
22 * {@link ParameterType}. | |
23 * <p> | |
24 * This class is not intended to be extended by clients. | |
25 * </p> | |
26 * | |
27 * @see IParameterTypeListener#parameterTypeChanged(ParameterTypeEvent) | |
28 * @since 3.2 | |
29 */ | |
30 public final class ParameterTypeEvent : AbstractHandleObjectEvent { | |
31 | |
32 /** | |
33 * The parameter type that has changed. This value is never | |
34 * <code>null</code>. | |
35 */ | |
36 private final ParameterType parameterType; | |
37 | |
38 /** | |
39 * Constructs a new instance. | |
40 * | |
41 * @param parameterType | |
42 * The parameter type that changed; must not be <code>null</code>. | |
43 * @param definedChanged | |
44 * <code>true</code>, iff the defined property changed. | |
45 */ | |
46 this(ParameterType parameterType, | |
47 bool definedChanged) { | |
48 | |
49 super(definedChanged); | |
50 | |
51 if (parameterType is null) { | |
52 throw new NullPointerException(); | |
53 } | |
54 | |
55 this.parameterType = parameterType; | |
56 } | |
57 | |
58 /** | |
59 * Returns the instance of the parameter type that changed. | |
60 * | |
61 * @return the instance of the parameter type that changed. Guaranteed not | |
62 * to be <code>null</code>. | |
63 */ | |
64 public final ParameterType getParameterType() { | |
65 return parameterType; | |
66 } | |
67 | |
68 } |