KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > editor > cheatsheet > simple > NewCommandKeyEvent


1 /*******************************************************************************
2  * Copyright (c) 2007 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.pde.internal.ui.editor.cheatsheet.simple;
13
14 import java.util.EventObject JavaDoc;
15
16 /**
17  * NewCommandKeyEvent
18  *
19  */

20 public class NewCommandKeyEvent extends EventObject JavaDoc {
21
22     private static final long serialVersionUID = 1L;
23
24     private String JavaDoc fKey;
25     
26     private String JavaDoc fValue;
27
28     /**
29      * @param source
30      * @param key
31      * @param value
32      */

33     public NewCommandKeyEvent(Object JavaDoc source, String JavaDoc key, String JavaDoc value) {
34         super(source);
35         fKey = key;
36         fValue = value;
37     }
38
39     /**
40      * @return the key
41      */

42     public String JavaDoc getKey() {
43         return fKey;
44     }
45
46     /**
47      * @return the value
48      */

49     public String JavaDoc getValue() {
50         return fValue;
51     }
52     
53 }
54
Popular Tags