| Summary: | Manage the property loading/setting order | ||
|---|---|---|---|
| Product: | [Technology] XWT | Reporter: | Yves YANG <yves.yang> |
| Component: | Core | Assignee: | Project Inbox <e4.xwt-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Konstantin.Scheglov |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 307509 | ||
|
Description
Yves YANG
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. |