Mercurial > projects > dwt2
comparison org.eclipse.core.commands/src/org/eclipse/core/commands/CategoryEvent.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) 2004, 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.CategoryEvent; | |
14 | |
15 import org.eclipse.core.commands.common.AbstractNamedHandleEvent; | |
16 import org.eclipse.core.commands.Category; | |
17 | |
18 import java.lang.all; | |
19 | |
20 /** | |
21 * An instance of this class describes changes to an instance of | |
22 * <code>Category</code>. | |
23 * <p> | |
24 * This class is not intended to be extended by clients. | |
25 * </p> | |
26 * | |
27 * @since 3.1 | |
28 * @see ICategoryListener#categoryChanged(CategoryEvent) | |
29 */ | |
30 public final class CategoryEvent : AbstractNamedHandleEvent { | |
31 | |
32 /** | |
33 * The category that has changed; this value is never <code>null</code>. | |
34 */ | |
35 private final Category category; | |
36 | |
37 /** | |
38 * Creates a new instance of this class. | |
39 * | |
40 * @param category | |
41 * the instance of the interface that changed. | |
42 * @param definedChanged | |
43 * true, iff the defined property changed. | |
44 * @param descriptionChanged | |
45 * true, iff the description property changed. | |
46 * @param nameChanged | |
47 * true, iff the name property changed. | |
48 */ | |
49 public this(Category category, bool definedChanged, | |
50 bool descriptionChanged, bool nameChanged) { | |
51 super(definedChanged, descriptionChanged, nameChanged); | |
52 | |
53 if (category is null) { | |
54 throw new NullPointerException(); | |
55 } | |
56 this.category = category; | |
57 } | |
58 | |
59 /** | |
60 * Returns the instance of the interface that changed. | |
61 * | |
62 * @return the instance of the interface that changed. Guaranteed not to be | |
63 * <code>null</code>. | |
64 */ | |
65 public final Category getCategory() { | |
66 return category; | |
67 } | |
68 } |