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 15:05
Martin Bayer is currently offline Martin Bayer
Messages: 24
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:Show Tree in TreeViewer
Goto Forum:
  


Current Time: Fri Apr 18 11:53:32 EDT 2014

Powered by FUDForum. Page generated in 0.01552 seconds