blob: bf1e981c8a77d00b110c80fee5dae459820d7045 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.help.internal.context;
import java.util.HashMap;
import java.util.Map;
/**
* Holds mapping of short plugin Id to PluginContext
*/
class PluginsContexts {
private Map map = new HashMap();
public void put(String pluginId, PluginContexts contexts) {
map.put(pluginId, contexts);
}
public PluginContexts get(String pluginId) {
return (PluginContexts) map.get(pluginId);
}
public void remove(String pluginId) {
map.remove(pluginId);
}
}