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

Bug 337336

Summary: Consider providing extendable String wrapper as a base for displayable text
Product: [Eclipse Project] e4 Reporter: Oleg Besedin <ob1.eclipse>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: remy.suen
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Oleg Besedin CLA 2011-02-16 11:54:45 EST
The Java's String is a final class. We can't extend it to store information needed to provide extended bi-directional information or information needed for dynamic translation.

This causes information and code that truly needs to be associated with String to be scattered around the code base. This causes catch-22 between adoption and development of enhanced string processing.

The basic proposal here it to consider creating something like UIText class to be used for the text to be displayed in applications to the end user.

There is a cost associated with creating such a wrapper. Most immediate concern will be the extra memory required by the wrappers. Then we need to make sure that we don't interfere with VM's optimization of String processing.
Comment 1 Lars Vogel CLA 2019-09-04 03:11:06 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it and remove the stalebug whiteboard tag. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--