Package org.eclipse.jface.fieldassist

Examples of org.eclipse.jface.fieldassist.ContentProposalAdapter


  public static void attachContentAssist(Text text, Object[] elements) {
    try {
      char[] autoActivationCharacters = new char[0];
      KeyStroke keyStroke = KeyStroke.getInstance("Ctrl+Space");
      new ContentProposalAdapter(text, new TextContentAdapter(),
          new SimpleContentProposalProvider(elements), keyStroke,
          autoActivationCharacters);
    }
    catch (ParseException e1) {
    }
View Full Code Here


        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;
            Set<IBeansConfig> configs = getDefiningConfigForProfile(profileProposal.getProfile());
View Full Code Here

TOP

Related Classes of org.eclipse.jface.fieldassist.ContentProposalAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.