KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > commands > CommandRegistryEvent


1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.ui.internal.commands;
13
14 final class CommandRegistryEvent {
15
16     private ICommandRegistry commandRegistry;
17
18     CommandRegistryEvent(ICommandRegistry commandRegistry) {
19         if (commandRegistry == null)
20             throw new NullPointerException JavaDoc();
21
22         this.commandRegistry = commandRegistry;
23     }
24
25     public ICommandRegistry getCommandRegistry() {
26         return commandRegistry;
27     }
28 }
29
Popular Tags