but,Sometimes I have some pre-defined perspective.
Of course, I can use createEmptyPerspective().but,I do not want to use programmatically.
I hope I can layout on the screen.then,save XMLFile,for example:HHHPerspective.xml,YYYPerspective.xml…
When the system boots,control.readXML(),if control has not HHHPerspective,YYYPerspective, so HHHPerspective.xml,YYYPerspective.xml add control.if control has been,so do nothing.
The framework does not support saving layouts in different files. It’s all or nothing and there is no way for a client to change this. I may add some “export/import layout” functionality in the future, but not in the current version.
You could however split and merge the xml file. The format did not change since years and probably won’t change in the future either.
Maybe I think CPerspective support fromXML(…) and toXML(…) is the most convenient.
Another solution is :
CPerspective cp = control.readPerspectiveXML(…)
control.writePerspectiveXML(Perspective,File)
Because if do not support Perspective serialization to the file,so if there is a predefined perspective,Had to hand code generation.
Usually program provides pre-defined perspective,then Users can re-layout the Perspective,Users can also create new perspective.
These are some of my thoughts?However, must express very bad. Because My English is very bad.