Skip to main content



      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] Tue, 07 June 2011 21:45 Go to next message
Eclipse UserFriend
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 06:41 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 21:47:54 EDT 2025

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

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

Back to the top