Package org.eclipse.jface.text.source

Examples of org.eclipse.jface.text.source.ContentAssistantFacade


          public void selectionChanged(ICompletionProposal proposal, boolean smartToggle) {
          }
         
        };
        ContentAssistantFacade facade = ((StructuredTextViewer) viewer).getContentAssistFacade();
        if (facade != null)
          facade.addCompletionListener(fCompletionListener);
      }
    }
View Full Code Here


     * Perform cleanup on the character pair inserters
     */
    void dispose() {
      ISourceViewer viewer = getSourceViewer();
      if (viewer instanceof StructuredTextViewer) {
        ContentAssistantFacade facade = ((StructuredTextViewer) viewer).getContentAssistFacade();
        if (facade != null)
          facade.removeCompletionListener(fCompletionListener);
      }

      for (int i = 0; i < fInserters.length; i++) {
        final AbstractCharacterPairInserter inserter = fInserters[i].inserter;
        SafeRunner.run(new ISafeRunnable() {
View Full Code Here

     * Perform cleanup on the character pair inserters
     */
    void dispose() {
      ISourceViewer viewer = getSourceViewer();
      if (viewer instanceof StructuredTextViewer) {
        ContentAssistantFacade facade = ((StructuredTextViewer) viewer).getContentAssistFacade();
        if (facade != null)
          facade.removeCompletionListener(fCompletionListener);
      }

      for (int i = 0; i < fInserters.length; i++) {
        final AbstractCharacterPairInserter inserter = fInserters[i].inserter;
        SafeRunner.run(new ISafeRunnable() {
View Full Code Here

      fContentAssistant = newAssistant;

      if (fContentAssistant != null) {
        fContentAssistant.install(this);
        if (fContentAssistant instanceof IContentAssistantExtension2 && fContentAssistant instanceof IContentAssistantExtension4)
          fContentAssistantFacade= new ContentAssistantFacade(fContentAssistant);
        fContentAssistantInstalled = true;
      }
      else {
        // 248036
        // disable the content assist operation if no content
View Full Code Here

          public void selectionChanged(ICompletionProposal proposal, boolean smartToggle) {
          }
         
        };
        ContentAssistantFacade facade = ((StructuredTextViewer) viewer).getContentAssistFacade();
        if (facade != null)
          facade.addCompletionListener(fCompletionListener);
      }
    }
View Full Code Here

      fContentAssistant = newAssistant;

      if (fContentAssistant != null) {
        fContentAssistant.install(this);
        if (fContentAssistant instanceof IContentAssistantExtension2 && fContentAssistant instanceof IContentAssistantExtension4)
          fContentAssistantFacade= new ContentAssistantFacade(fContentAssistant);
        fContentAssistantInstalled = true;
      }
      else {
        // 248036
        // disable the content assist operation if no content
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.source.ContentAssistantFacade

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.