org.eclipse.xtend.shared.ui.expression
Class XpandPluginExecutionContext.PluginResourceManager

java.lang.Object
  extended by org.eclipse.xtend.shared.ui.expression.XpandPluginExecutionContext.PluginResourceManager
All Implemented Interfaces:
ResourceManager
Enclosing class:
XpandPluginExecutionContext

public static class XpandPluginExecutionContext.PluginResourceManager
extends java.lang.Object
implements ResourceManager


Constructor Summary
XpandPluginExecutionContext.PluginResourceManager(IXtendXpandProject project)
           
 
Method Summary
 Resource loadResource(java.lang.String fullyQualifiedName, java.lang.String extension)
          Loads a resource.
 void registerParser(java.lang.String template_extension, ResourceParser parser)
          Registers a ResourceParser to the manager.
 void setFileEncoding(java.lang.String fileEncoding)
          Sets the encoding the ResourceManager should use to load resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XpandPluginExecutionContext.PluginResourceManager

public XpandPluginExecutionContext.PluginResourceManager(IXtendXpandProject project)
Method Detail

loadResource

public Resource loadResource(java.lang.String fullyQualifiedName,
                             java.lang.String extension)
Description copied from interface: ResourceManager
Loads a resource.

Specified by:
loadResource in interface ResourceManager
Parameters:
fullyQualifiedName - Resource path
extension - Valid Xpand extension (xpt,ext,chk)
Returns:
The loaded resource

setFileEncoding

public void setFileEncoding(java.lang.String fileEncoding)
Description copied from interface: ResourceManager
Sets the encoding the ResourceManager should use to load resources.

Specified by:
setFileEncoding in interface ResourceManager
Parameters:
fileEncoding - Valid file encoding

registerParser

public void registerParser(java.lang.String template_extension,
                           ResourceParser parser)
Description copied from interface: ResourceManager
Registers a ResourceParser to the manager.

Specified by:
registerParser in interface ResourceManager
Parameters:
template_extension - Xpand file extension (xpt,ext,chk)
parser - The parser for the resource type