Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 377858 - Data model attribute should provide method to format raw value
Summary: Data model attribute should provide method to format raw value
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-27 02:25 EDT by Stephan Merkli CLA
Modified: 2021-08-19 11:06 EDT (History)
0 users

See Also:
andi.bur: juno+


Attachments
Patch proposal (10.26 KB, patch)
2012-04-27 10:50 EDT, Stephan Merkli CLA
andi.bur: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Merkli CLA 2012-04-27 02:25:10 EDT
Build Identifier: M20110210-1200

A data model attribute instance should be able to format a raw value by itself, thus providing a method String formatValue(Object rawValue) which will return the formatted value. The method should be overridable by a subclass in order to provide an own way of formatting the raw value.

Patch follows

Reproducible: Always
Comment 1 Stephan Merkli CLA 2012-04-27 10:50:22 EDT
Created attachment 214707 [details]
Patch proposal
Comment 2 Andi Bur CLA 2012-04-30 03:27:08 EDT
Stephan, thank you for your patch. Added additional support for different locales and minor bug fix for formatting smart values.
Comment 3 Matthias Zimmermann CLA 2012-07-09 06:50:20 EDT
ticket closed.
deliverd as part of eclipse scout 3.8.0 (juno release train)