Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321176

Summary: TreeRidgetLabelProvider - Mechanism for setting default tree images
Product: [RT] Riena Reporter: Elias Volanakis <elias>
Component: ridgetAssignee: 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:

Description Elias Volanakis CLA 2010-07-28 16:23:51 EDT
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
Comment 1 Elias Volanakis CLA 2011-08-03 14:35:08 EDT
Ressigning to default assignee. Not working on Riena right now.
Comment 2 Elias Volanakis CLA 2011-08-03 14:35:15 EDT
Reassigning to default assignee. Not working on Riena right now.