org.eclipse.xtext.ui.codetemplates.ui.preferences
Class TemplateResourceProvider

java.lang.Object
  extended by org.eclipse.xtext.ui.codetemplates.ui.preferences.TemplateResourceProvider
All Implemented Interfaces:
IEditedResourceProvider

public class TemplateResourceProvider
extends java.lang.Object
implements IEditedResourceProvider

Author:
Sebastian Zarnekow - Initial contribution and API

Field Summary
static java.lang.String SYNTHETIC_SCHEME
           
 
Constructor Summary
TemplateResourceProvider()
           
 
Method Summary
 XtextResource createResource()
          Create a new resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYNTHETIC_SCHEME

public static final java.lang.String SYNTHETIC_SCHEME
See Also:
Constant Field Values
Constructor Detail

TemplateResourceProvider

public TemplateResourceProvider()
Method Detail

createResource

public XtextResource createResource()
Description copied from interface: IEditedResourceProvider
Create a new resource. Implementors are free to decide whether the resource should be empty or whether its pre-populated with content. The resource has to be contained in a fully configured resource set.

Specified by:
createResource in interface IEditedResourceProvider
Returns:
a new resource that is contained in a resource set.