Self-adaptive systems should autonomously adapt at run time to changes in their operational environment, guided by the goals assigned by their stakeholders. We present a tool that supports goal-oriented modelling and generation of code for goal-directed, selfadaptive systems, supporting Tropos4AS, an extension of the software engineering methodology Tropos.