Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2009-11-24 21:58:27 +0000
committerChris Goldthorpe2009-11-24 21:58:27 +0000
commit83d8dca1e7e24d879fd4a56b966fab14b6bbdac3 (patch)
tree4c314b6612a9397f61a36cee73d937ed8c73cfb8 /org.eclipse.help
parentbe6d2e16bb6364da1bfedec9b4db875860b0b96b (diff)
downloadeclipse.platform.ua-83d8dca1e7e24d879fd4a56b966fab14b6bbdac3.tar.gz
eclipse.platform.ua-83d8dca1e7e24d879fd4a56b966fab14b6bbdac3.tar.xz
eclipse.platform.ua-83d8dca1e7e24d879fd4a56b966fab14b6bbdac3.zip
Bug 291639 – [Help][Context] Dead code in ContextManager:
Diffstat (limited to 'org.eclipse.help')
-rw-r--r--org.eclipse.help/src/org/eclipse/help/internal/context/ContextManager.java32
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('.');

Back to the top