[Data Binding] Re: Widget [org.eclipse.swt.custom.StyledText] is not supported. [message #331339] |
Tue, 02 September 2008 15:15 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Francis ANDRE wrote:
> Hello
>
> got this exception
>
> Exception in thread "main" java.lang.IllegalArgumentException: Widget
> [org.eclipse.swt.custom.Styled
> Text] is not supported.
> at
> org.eclipse.jface.databinding.swt.SWTObservables.observeText (SWTObservables.java:217)
>
> at databinding.view.View.createShell(View.java:76)
> at databinding.driver.IBM3270$1.run(IBM3270.java:23)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>
> at databinding.driver.IBM3270.main(IBM3270.java:20)
>
>
> Why StyledText is not supported while Text is?? (May be it is a stupid
> question but I am a little perplex since a StyledText is somewhat a Text
> too)
I'm copying this to the eclipse.platform newsgroup where Data Binding
questions are usually directed.
Have you looked for or entered a feature request in Bugzilla for that?
It looks like TextObservableValue (which is what
SWTObservables.observeText() delegates to) only relies on
addVerifyListener(), getText(), and setText(), so on the surface it
seems that StyledText support should be doable.
You could always write your own StyledTextObservableValue, of course and
contribute that to the project.
If you enter a feature request into Bugzilla, please post the link here.
Eric
|
|
|
|
Powered by
FUDForum. Page generated in 0.03910 seconds