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

Bug 369028

Summary: Text decorations for master-details outline nodes
Product: z_Archived Reporter: Roded Bahat <rodedb>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: danny.ju, konstantin, rodedb
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Roded Bahat CLA 2012-01-19 03:04:14 EST
Build Identifier: 

It would be nice to have the possibility to show this information (for example, number of child elements) alongside the label but in a more subtle way as to not steal the user's attention from the label itself (different color?).


Reproducible: Always
Comment 1 Konstantin Komissarchik CLA 2014-03-18 17:10:49 EDT
Will take a look at this for Sapphire 8. My current plan is to allow syntax like the following under the node definition:

<text-decoration>
   <text>${ ... }</text>
   <color>${ ... }</text>
</text-decoration>

Both text and color will support EL.
Color will default to the standard decorations color.
Multiple decorations can be specified.
Decoration text can evaluate to null in order for the decoration to not be shown.
Comment 3 Konstantin Komissarchik CLA 2014-03-19 17:27:30 EDT
This feature is demonstrated in the catalog sample.
Comment 4 Konstantin Komissarchik CLA 2014-03-21 12:25:52 EDT
History has been re-written. New commit references are as follows:

8 : http://git.eclipse.org/c/sapphire/org.eclipse.sapphire.git/commit/?id=acdf4fc773209ebbd8fe373e5668bd3cc0b1a9f8
Comment 5 Danny Ju CLA 2014-06-06 17:25:15 EDT
Verified with Sapphire 8.0 Build #107 with catalog.xml.
Also was able to customize with the color decoration 

text-decoration>
  <text>${ ( Items.Size == 0 ? null : Concat( &quot;(&quot;, Items.Size, &quot;)&quot; ) ) }</text>
  <color>#00ffff</color>
</text-decoration>
Comment 6 Konstantin Komissarchik CLA 2014-06-06 17:28:13 EDT
Thanks. Closing.