KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > cheatsheets > views > CheatSheetEvent


1 /*******************************************************************************
2  * Copyright (c) 2002, 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 package org.eclipse.ui.internal.cheatsheets.views;
12
13 import org.eclipse.ui.cheatsheets.ICheatSheetEvent;
14 import org.eclipse.ui.cheatsheets.ICheatSheetManager;
15
16 public class CheatSheetEvent implements ICheatSheetEvent {
17     int type;
18     String JavaDoc cheatsheetID;
19     ICheatSheetManager csm;
20
21
22     public CheatSheetEvent(int eventType, String JavaDoc id, ICheatSheetManager csm) {
23         super();
24         this.csm = csm;
25         this.type = eventType;
26         this.cheatsheetID = id;
27     }
28
29     /**
30      * @return
31      */

32     public int getEventType() {
33         return type;
34     }
35
36     /**
37      * @return
38      */

39     public String JavaDoc getCheatSheetID() {
40         return cheatsheetID;
41     }
42
43     /* (non-Javadoc)
44      * @see org.eclipse.ui.cheatsheets.events.ICheatSheetEvent#getCheatSheetManager()
45      */

46     public ICheatSheetManager getCheatSheetManager() {
47         return csm;
48     }
49
50 }
51
Popular Tags