Bug 322337

Summary: [Forms] FormText should provide getter for text
Product: [Eclipse Project] Platform Reporter: Daniel Krügler <daniel.kruegler>
Component: UIAssignee: platform-ua-inbox <platform-ua-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: cgold, mistria
Version: 3.5.2Keywords: api
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/112211
Whiteboard:

Description Daniel Krügler CLA 2010-08-11 06:45:55 EDT
Build Identifier: 20100218-1602

FormText does provide a setter for the text (void setText(String text, boolean parseTags, boolean expandURLs)) and several getters for text selections (getSelectionText(), getSelectedLinkText(), getSelectedLinkHref()). The lack of a getter for the text without considering the selection does make it hard to define a proper data binding for this component. If different answers to this questions exist, different getters could be provided (e.g. getText(), getLinkText(), ..)

Reproducible: Always
Comment 1 Chris Goldthorpe CLA 2010-11-11 13:38:29 EST
Although this seems useful we don't have any resources available to develop the feature. If someone were to contribute the code we could probably add it to Eclipse.
Comment 2 Eclipse Genie CLA 2017-11-23 16:41:54 EST
New Gerrit change created: https://git.eclipse.org/r/112211
Comment 3 Daniel Krügler CLA 2017-11-23 16:43:49 EST
(In reply to Chris Goldthorpe from comment #1)
> Although this seems useful we don't have any resources available to develop
> the feature. If someone were to contribute the code we could probably add it
> to Eclipse.

OK, I finally accepted the challenge and provided a patch suggestion - a review would be very much appreciated!