Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » ContentProposalAdapter binding(Is it possible to bind an object selected via ContentProposalAdapter on Text widget?)
ContentProposalAdapter binding [message #1091616] Wed, 21 August 2013 19:05
Martin Bayer is currently offline Martin Bayer
Messages: 26
Registered: December 2012
Junior Member
Hi all,
I'd like to know if it is possible to bind an object selected in the Text widget via ContentProposalAdapter to the object in model. I have the following:
offerPresentedByText = new Text(container, SWT.BORDER | SWT.MULTI);
offerPresentedByText.setLayoutData(gridData);
a1 = new ContentProposalAdapter(offerPresentedByText,
	new TextContentAdapter(), new ContactContentProposalProvider(
	ContactAccess.getInstance().getContacts()), null, null);
a1.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_REPLACE);



Object of type Contact is selected to the offerPresentedByText Text widget and I need to bind it to another object's property which is available in the class.

Thank you
Martin
Previous Topic:TableViewer not preserved sorting
Next Topic:Set Selection on Tree Viewer
Goto Forum:
  


Current Time: Tue Sep 16 00:59:25 GMT 2014

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

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