| Summary: | TreeRidgetLabelProvider - Mechanism for setting default tree images | ||
|---|---|---|---|
| Product: | [RT] Riena | Reporter: | Elias Volanakis <elias> |
| Component: | ridget | Assignee: | Project Inbox <riena.core-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | 2.1.0.M1 | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| Whiteboard: | |||
Ressigning to default assignee. Not working on Riena right now. Reassigning to default assignee. Not working on Riena right now. |
As discussed on riena-dev: Instead I propose to use a setter to configure a trio of default images for open node, close node, leaf (strategy pattern). This would remove any navigation specific code from TRLP and simplify the logic a lot. The images are used when no image is given via a formatter or via the model. API would look like this: treeRidget.setDefaultImages(new NavigationTreeImages()); Riena would come with three strategies (the user can implement more): (a) NavigationTreeImages: set when configuring the navigation tree ridget in SWTModuleController - uses images from LnFKeyConstants SUB_MODULE_TREE_FOLDER_{OPEN, CLOSED}_ICON (b) WorkareaTreeImages: default strategy used when nothing else is provided - uses images from LnFKeyConstants.WORKAREA_TREE_FOLDER_{OPEN,CLOSED}_ICON (c) SnippetTreeImages: uses SharedImages - the Ridget would use this instead of WorkareaTreeImages when it detects no OSGi - needed for the Snippets