KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > help > internal > context > PluginsContexts


1 /*******************************************************************************
2  * Copyright (c) 2000, 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.help.internal.context;
12 import java.util.HashMap JavaDoc;
13 import java.util.Map JavaDoc;
14 /**
15  * Holds mapping of short plugin Id to PluginContext
16  */

17 class PluginsContexts {
18     private Map JavaDoc map = new HashMap JavaDoc();
19     public void put(String JavaDoc pluginId, PluginContexts contexts) {
20         map.put(pluginId, contexts);
21     }
22     public PluginContexts get(String JavaDoc pluginId) {
23         return (PluginContexts) map.get(pluginId);
24     }
25     public void remove(String JavaDoc pluginId) {
26         map.remove(pluginId);
27     }
28 }
29
Popular Tags