1 package net.sourceforge.phpdt.externaltools.internal.registry;
3 /**********************************************************************
4 Copyright (c) 2002 IBM Corp. and others. All rights reserved.
5 This file is made available under the terms of the Common Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/cpl-v10.html
10 **********************************************************************/
12 import org.eclipse.core.runtime.IConfigurationElement;
15 * Registry of all available path location variables.
17 public class PathLocationVariableRegistry extends ExternalToolVariableRegistry {
20 * Creates the registry and loads the variables.
22 public PathLocationVariableRegistry(String extensionPointId) {
23 super(extensionPointId);
27 * Returns the path location variable for the given tag or <code>null</code>
30 public PathLocationVariable getPathLocationVariable(String tag) {
31 return (PathLocationVariable) findVariable(tag);
35 * Returns the list of path location variables in the registry.
37 // public PathLocationVariable[] getPathLocationVariables() {
38 // PathLocationVariable[] results = new PathLocationVariable[getVariableCount()];
39 // copyVariables(results);
44 * (non-Javadoc) Method declared on ExternalToolVariableRegistry.
46 protected ExternalToolVariable newVariable(String tag, String description,
47 IConfigurationElement element) {
48 return new PathLocationVariable(tag, description, element);