`setDocumentTitle` and `EVENT_METADATACHANGED` do not seem to belong together.
I would propose that abstractly spoken the Editor class gets a new property `documentTitle`, which can be
* set -> `setDocumentTitle`
* queried -> `getDocumentTitle`
* and listened for changes on -> `EVENT_DOCUMENTTITLECHANGED`
That should make the API easy to use.