Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » How to bind Document to TextViewer input(SWT/JFace Data Binding)
How to bind Document to TextViewer input [message #677276] Wed, 08 June 2011 01:45 Go to next message
Jim Mayer is currently offline Jim Mayer
Messages: 18
Registered: July 2009
Junior Member
Is there any way to bind the input of a TextViewer to, say, a "Document" valued bean property? The documentation seems to suggest that it's possible, but the implementation (0.9.0.r36x201105061245) seems to only allow binding to things that implement IObservableList (as if it was binding for a table, not a TextViewer).

Manually generating a binding to "input" works fine (though WindowBuilder doesn't parse it).

Is this something that should be possible?

Thanks.

-- Jim

Re: How to bind Document to TextViewer input [message #684844 is a reply to message #677276] Thu, 16 June 2011 10:41 Go to previous message
Andrey Sablin is currently offline Andrey Sablin
Messages: 12
Registered: March 2011
Junior Member
TextViewer has setter setDocument(IDocument) that sets the given document as the text viewer's model. It's task for property manipulation, and not beans bindings.
PS WB actually work only with simple property types (IDocument type not supported).
Previous Topic:Deploy WindowBuilder application
Next Topic:Additional binding types for XWT
Goto Forum:
  


Current Time: Sat Oct 25 05:49:01 GMT 2014

Powered by FUDForum. Page generated in 0.03096 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software