return proposals.toArray(new IContentProposal[proposals.size()]);
}
};
try {
KeyStroke keyStroke = KeyStroke.getInstance("Ctrl+Space");
ContentProposalAdapter contentProposalAdapter = new ContentProposalAdapter(profilesText, new TextContentAdapter(), proposalProvider, keyStroke, null);
contentProposalAdapter.addContentProposalListener(new IContentProposalListener() {
public void proposalAccepted(IContentProposal proposal) {
if (proposal instanceof ProfileContentProposal) {
ProfileContentProposal profileProposal = (ProfileContentProposal) proposal;