diff options
Diffstat (limited to 'org.eclipse.help/src/org/eclipse/help/internal/context/ContextManager.java')
-rw-r--r-- | org.eclipse.help/src/org/eclipse/help/internal/context/ContextManager.java | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/context/ContextManager.java b/org.eclipse.help/src/org/eclipse/help/internal/context/ContextManager.java index dfd3a4550..312e7d09f 100644 --- a/org.eclipse.help/src/org/eclipse/help/internal/context/ContextManager.java +++ b/org.eclipse.help/src/org/eclipse/help/internal/context/ContextManager.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2007 IBM Corporation and others. + * Copyright (c) 2000, 2009 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 @@ -35,28 +35,6 @@ public class ContextManager { private Map providersByPluginId; private List globalProviders; - - private Map contextsById = new HashMap(); - private Map idsByContext = new HashMap(); - private int idCounter = 0; - - /* - * Adds the given dynamically generated IContext to the system, and - * generates a unique ID for it. - */ - public String addContext(IContext context) { - String plugin = HelpPlugin.PLUGIN_ID; - String id = (String)idsByContext.get(context); - if (id != null) { - // context already registered - } else { - // generate ID and register the context - id = "ID" + idCounter++; //$NON-NLS-1$ - idsByContext.put(context, id); - contextsById.put(id, context); - } - return plugin + "." + id; //$NON-NLS-1$ - } /* * Returns the Context for the given id and locale. @@ -65,14 +43,6 @@ public class ContextManager { if (HelpPlugin.DEBUG_CONTEXT && contextId != null) { System.out.println("ContextManager.getContext(\"" + contextId + "\")"); //$NON-NLS-1$ //$NON-NLS-2$ } - // first check for dynamic context definitions - Context dynamicContext = (Context)contextsById.get(contextId); - if (dynamicContext != null) { - if (HelpPlugin.DEBUG_CONTEXT) { - System.out.println("ContextManager.getContext found dynamic context"); //$NON-NLS-1$ - } - return dynamicContext; - } // ask the providers int index = contextId.lastIndexOf('.'); |