Community
Participate
Working Groups
When we create an UI element, the order of the property loading/setting is mandatory. For example, when we load a TableViewer, the "input" must be done after contentProvider and labelProvider. And the simpleSelection property can be set after "input". We need a generic solution to manage the property dependency.
See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=307509 Some properties should be applied after creating children.
We should add this information in IProperty to indicate when and in which order the property should be set. The design is proposed as following: enum SettingType { /** * Set property just after Widget creation. It is the default value. */ Normal, /** * Set property just after the complete initialization * before the creation of children */ PostInitialization, /** * Set property just after the creation of children */ PostChildren; } interface ILoadingType { SettingType getSettingType(); IProperty[] getDependencies(); } interface IProperty { .... ILoadingType getLoadingType(); }
SettingType is named as IValueLoading. The fixed is done and committed in CVS.