de.matthias_burbach.mosaique4eclipse.views
Class VrpEclipsePathFinder

java.lang.Object
  extended byde.matthias_burbach.mosaique4eclipse.views.VrpEclipsePathFinder
All Implemented Interfaces:
PathFinder

public class VrpEclipsePathFinder
extends java.lang.Object
implements PathFinder

Implements the special VRP logic to derive the correct absolute path from a relative path of a resource and from the Eclipse project context.

Author:
Matthias Burbach

Constructor Summary
VrpEclipsePathFinder(org.eclipse.core.resources.IFile strutsConfigIFile)
           
 
Method Summary
 java.lang.String findAbsolutePath(java.lang.String relativePath)
           A path is first looked up in the brand project that contains the given Struts config file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VrpEclipsePathFinder

public VrpEclipsePathFinder(org.eclipse.core.resources.IFile strutsConfigIFile)
Parameters:
strutsConfigIFile - The Struts config file to hook on the path finder logic for this instance.
Method Detail

findAbsolutePath

public java.lang.String findAbsolutePath(java.lang.String relativePath)
A path is first looked up in the brand project that contains the given Struts config file. If the path does not exist there, it tries to find it in a presentation component project. As a last resort, it tries to resolve the path against the local deploy directory.

Specified by:
findAbsolutePath in interface PathFinder
Parameters:
relativePath - The relative path to map to an absolute path.
Returns:
The absolute path.


Copyright © 2005-2006 . All Rights Reserved.