1 package net.sourceforge.phpdt.externaltools.variable;
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.resources.IResource;
15 * Expands a resource's project type variable into the desired result format.
17 * This class is not intended to be extended by clients.
20 public class ResourceProjectExpander extends ResourceExpander {
25 public ResourceProjectExpander() {
30 * (non-Javadoc) Method declared on ResourceExpander.
32 /* package */IResource expandUsingContext(ExpandVariableContext context) {
33 return context.getProject();
37 * (non-Javadoc) Method declared on ResourceExpander.
39 /* package */IResource expandToMember(String varValue) {
40 IResource member = super.expandToMember(varValue);
42 return member.getProject();