Placing an entity Instance Name in the caption of an StandardEditor form


I am unable to establish how to use the instance name (or any variable for that matter) in the Caption of an Editor form.

Any guidance will be much appreciated.

Set custon windows caption in AfterShow.

    public void onAfterShow(AfterShowEvent event) {
        this.getWindow().setCaption("My Custom Caption!");

Perfect, thank you!