org.eclipse.xtext.ui.generator.contentAssist
Class JavaBasedContentAssistFragment

java.lang.Object
  extended by org.eclipse.xtext.generator.DefaultGeneratorFragment
      extended by org.eclipse.xtext.generator.AbstractGeneratorFragment
          extended by org.eclipse.xtext.ui.generator.contentAssist.JavaBasedContentAssistFragment
All Implemented Interfaces:
IGeneratorFragment, NamingAware

public class JavaBasedContentAssistFragment
extends AbstractGeneratorFragment

A IGeneratorFragment to generate a java-based content assist for an Xtext language.

Author:
Jan Koehnlein

Constructor Summary
JavaBasedContentAssistFragment()
           
 
Method Summary
 void generate(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
          can be used to generate whatever necessary
 java.util.Set<Binding> getGuiceBindingsUi(Grammar grammar)
          return a map containing the contributed guice bindings for the ui part created in this generator fragment
 java.lang.String[] getImportedPackagesUi(Grammar grammar)
          return the imported packages for the ui bundle
protected  java.util.List<java.lang.Object> getParameters(Grammar grammar)
           
 java.lang.String[] getRequiredBundlesUi(Grammar grammar)
          return the bundles this fragment requires in ui
 boolean isInherit()
           
 void setInherit(boolean inherit)
          Decide whether to inherit content assist from the super language.
 
Methods inherited from class org.eclipse.xtext.generator.AbstractGeneratorFragment
addToPluginXmlRt, addToPluginXmlUi, addToStandaloneSetup, getExportedPackagesRt, getExportedPackagesUi, getGuiceBindingsRt, getNaming, getRequiredBundlesRt, getTemplate, registerNaming
 
Methods inherited from class org.eclipse.xtext.generator.DefaultGeneratorFragment
checkConfiguration, getImportedPackagesRt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaBasedContentAssistFragment

public JavaBasedContentAssistFragment()
Method Detail

getGuiceBindingsUi

public java.util.Set<Binding> getGuiceBindingsUi(Grammar grammar)
Description copied from interface: IGeneratorFragment
return a map containing the contributed guice bindings for the ui part created in this generator fragment

Specified by:
getGuiceBindingsUi in interface IGeneratorFragment
Overrides:
getGuiceBindingsUi in class AbstractGeneratorFragment

getRequiredBundlesUi

public java.lang.String[] getRequiredBundlesUi(Grammar grammar)
Description copied from interface: IGeneratorFragment
return the bundles this fragment requires in ui

Specified by:
getRequiredBundlesUi in interface IGeneratorFragment
Overrides:
getRequiredBundlesUi in class AbstractGeneratorFragment

getImportedPackagesUi

public java.lang.String[] getImportedPackagesUi(Grammar grammar)
Description copied from interface: IGeneratorFragment
return the imported packages for the ui bundle

Specified by:
getImportedPackagesUi in interface IGeneratorFragment
Overrides:
getImportedPackagesUi in class DefaultGeneratorFragment

getParameters

protected java.util.List<java.lang.Object> getParameters(Grammar grammar)
Overrides:
getParameters in class AbstractGeneratorFragment

setInherit

public void setInherit(boolean inherit)
Decide whether to inherit content assist from the super language.

Parameters:
inherit -

isInherit

public boolean isInherit()

generate

public void generate(Grammar grammar,
                     org.eclipse.xpand2.XpandExecutionContext ctx)
Description copied from interface: IGeneratorFragment
can be used to generate whatever necessary

Specified by:
generate in interface IGeneratorFragment
Overrides:
generate in class AbstractGeneratorFragment
ctx - - the execution context to use