org.eclipse.xtext.generator
Interface IGeneratorFragmentExtension

All Known Implementing Classes:
CompositeGeneratorFragment, Junit4Fragment, LanguageConfig

public interface IGeneratorFragmentExtension

Since:
2.3
Author:
Jan Koehnlein - Initial contribution and API

Method Summary
 void addToPluginXmlTests(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
          Used to add code to the plugin.xml of the tests bundle.
 java.lang.String[] getExportedPackagesTests(Grammar grammar)
          return the exported packages for the tests bundle
 java.lang.String[] getImportedPackagesTests(Grammar grammar)
          return the imported packages for the tests bundle
 java.lang.String[] getRequiredBundlesTests(Grammar grammar)
          return the bundles this fragment requires in tests
 

Method Detail

addToPluginXmlTests

void addToPluginXmlTests(Grammar grammar,
                         org.eclipse.xpand2.XpandExecutionContext ctx)
Used to add code to the plugin.xml of the tests bundle. The surrounding tags are added automatically

Parameters:
grammar -
ctx - - the execution context to use (the plugin.xml file is already opened)

getRequiredBundlesTests

java.lang.String[] getRequiredBundlesTests(Grammar grammar)
return the bundles this fragment requires in tests

Parameters:
grammar -

getExportedPackagesTests

java.lang.String[] getExportedPackagesTests(Grammar grammar)
return the exported packages for the tests bundle

Parameters:
grammar -

getImportedPackagesTests

java.lang.String[] getImportedPackagesTests(Grammar grammar)
return the imported packages for the tests bundle

Parameters:
grammar -