01: /*******************************************************************************
02: * Copyright (c) 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: ******************************************************************************/package org.eclipse.ui.internal;
11:
12: import org.eclipse.ui.internal.registry.IActionSetDescriptor;
13:
14: /**
15: * <p>
16: * An event indicating changes to the action sets in a particular workbench
17: * window.
18: * </p>
19: * <p>
20: * This class is only intended for internal use within
21: * <code>org.eclipse.ui.workbench</code>.
22: * </p>
23: * <p>
24: * <strong>PROVISIONAL</strong>. This class or interface has been added as part
25: * of a work in progress. There is a guarantee neither that this API will work
26: * nor that it will remain the same. Please do not use this API without
27: * consulting with the Platform/UI team.
28: * </p>
29: * <p>
30: * This class is eventually intended to exist in
31: * <code>org.eclipse.jface.menus</code>.
32: * </p>
33: *
34: * @since 3.2
35: */
36: public final class ActionSetsEvent {
37:
38: /**
39: * The array of action sets that are now active. This value may be
40: * <code>null</code>.
41: */
42: private final IActionSetDescriptor[] newActionSets;
43:
44: /**
45: * Constructs a new instance of {@link ActionSetsEvent}.
46: *
47: * @param newActionSets
48: * The action sets that are now active; may be <code>null</code>.
49: */
50: ActionSetsEvent(final IActionSetDescriptor[] newActionSets) {
51: this .newActionSets = newActionSets;
52: }
53:
54: /**
55: * Returns the currently active action sets.
56: *
57: * @return The action sets that are now active; may be <code>null</code>.
58: */
59: public final IActionSetDescriptor[] getNewActionSets() {
60: return newActionSets;
61: }
62: }
|