fr.obeo.acceleo.gen.template.scripts.imports.services
Class ResourceServices

java.lang.Object
  extended by fr.obeo.acceleo.gen.template.scripts.imports.services.ResourceServices

public class ResourceServices
extends java.lang.Object

Eclipse resource services.

Author:
www.obeo.fr

Constructor Summary
ResourceServices()
           
 
Method Summary
 java.lang.String getFileContent(fr.obeo.acceleo.gen.template.eval.ENode node, java.lang.String path)
          Returns the content of the given file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceServices

public ResourceServices()
Method Detail

getFileContent

public java.lang.String getFileContent(fr.obeo.acceleo.gen.template.eval.ENode node,
                                       java.lang.String path)
Returns the content of the given file.

Parameters:
node - is the current node
path - is the path of the file in the workspace
Returns:
the content of the file, or an empty buffer if the file doesn't exist