Skip to main content


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 BayerFriend
Messages: 32
Registered: December 2012
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:TitleAreaDialog - An exception with no message.
Goto Forum:
  


Current Time: Fri Apr 26 16:12:57 GMT 2024

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

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

Back to the top