KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > ActionSetsEvent


1 /*******************************************************************************
2  * Copyright (c) 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  ******************************************************************************/

11
12 package org.eclipse.ui.internal;
13
14 import org.eclipse.ui.internal.registry.IActionSetDescriptor;
15
16 /**
17  * <p>
18  * An event indicating changes to the action sets in a particular workbench
19  * window.
20  * </p>
21  * <p>
22  * This class is only intended for internal use within
23  * <code>org.eclipse.ui.workbench</code>.
24  * </p>
25  * <p>
26  * <strong>PROVISIONAL</strong>. This class or interface has been added as part
27  * of a work in progress. There is a guarantee neither that this API will work
28  * nor that it will remain the same. Please do not use this API without
29  * consulting with the Platform/UI team.
30  * </p>
31  * <p>
32  * This class is eventually intended to exist in
33  * <code>org.eclipse.jface.menus</code>.
34  * </p>
35  *
36  * @since 3.2
37  */

38 public final class ActionSetsEvent {
39
40     /**
41      * The array of action sets that are now active. This value may be
42      * <code>null</code>.
43      */

44     private final IActionSetDescriptor[] newActionSets;
45
46     /**
47      * Constructs a new instance of {@link ActionSetsEvent}.
48      *
49      * @param newActionSets
50      * The action sets that are now active; may be <code>null</code>.
51      */

52     ActionSetsEvent(final IActionSetDescriptor[] newActionSets) {
53         this.newActionSets = newActionSets;
54     }
55
56     /**
57      * Returns the currently active action sets.
58      *
59      * @return The action sets that are now active; may be <code>null</code>.
60      */

61     public final IActionSetDescriptor[] getNewActionSets() {
62         return newActionSets;
63     }
64 }
65
Popular Tags