Is there a way to rename a DefaultSingleCDockable so the new name can be saved

Currently on rename I do the usual .setTitleText( name ); and this works fine for renaming the dockable title, the issue is when I save this out to an xml file with:

control.getResources().writeXML( element );
XIO.writeUTF( element, new FileOutputStream( file ) );```

only the original id gets saved out, so that on restore (reading in the xml file) I lose the custom dockable title. It doesn't seem like there is any native way to save out the custom tab name.

Saving the content of a SingleCDockable is the responsibility of the application, the framework does not touch the content. And the title-text is considered part of the content (the icon as well).

You’ll need your own service that saves and loads the title.