public GeneratorConfig2 install ( final ResourceSet resourceSet , GeneratorConfig2 config ) { GeneratorConfigAdapter adapter = GeneratorConfigAdapter . findInEmfObject ( resourceSet ) ; if ( adapter == null ) { adapter = new GeneratorConfigAdapter ( ) ; } adapter . attachToEmfObject ( resourceSet ) ; return adapter . getLanguage2GeneratorConfig ( ) . put ( this . languageId , config ) ; }
Install the given configuration in the resource set .