Issue with fileEditor

I’m creating a plugin to add an UI when you open an XML file, also I have added a custom structure view, but when I change from default text editor to my new UI editor, the structure view dissapear, I would like maintain the structure view when I’m using text editor.

I’m using this extension points:

xmlStructureViewBuilderProvider
xmlStructureViewElementProvider