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;
13 import net.sourceforge.phpdt.externaltools.model.IExternalToolConstants;
16 * Registry of all available argument variables.
18 public class ArgumentVariableRegistry extends ExternalToolVariableRegistry {
21 * Creates the registry and loads the variables.
23 public ArgumentVariableRegistry() {
24 super(IExternalToolConstants.EXTENSION_POINT_ARGUMENT_VARIABLES);
28 * Returns the argument variable for the given tag
29 * or <code>null</code> if none.
31 public ArgumentVariable getArgumentVariable(String tag) {
32 return (ArgumentVariable) findVariable(tag);
36 * Returns the list of argument variables in the registry.
38 public ArgumentVariable[] getArgumentVariables() {
39 ArgumentVariable[] results = new ArgumentVariable[getVariableCount()];
40 copyVariables(results);
45 * Method declared on ExternalToolVariableRegistry.
47 protected ExternalToolVariable newVariable(String tag, String description, IConfigurationElement element) {
48 return new ArgumentVariable(tag, description, element);