I have an Xtext project fro my DSL and the code generator made with Xtend2. Usually code generation starts at the saving event, instead I want a toolbar bottom in my plugin from which I start the generation.
I made the bottom, but I don't know how get the Resource from active editor to start doGenerate(Resource, IFileSystemAccess).