Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321176 - TreeRidgetLabelProvider - Mechanism for setting default tree images
Summary: TreeRidgetLabelProvider - Mechanism for setting default tree images
Status: NEW
Alias: None
Product: Riena
Classification: RT
Component: ridget (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 2.1.0.M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-28 16:23 EDT by Elias Volanakis CLA
Modified: 2011-08-03 14:35 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.