Examples of enableAutoInsert()


Examples of org.eclipse.jface.text.contentassist.ContentAssistant.enableAutoInsert()

      }

      public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
        ContentAssistant assistant = new ContentAssistant();
        assistant.enableAutoActivation(true);
        assistant.enableAutoInsert(true);
        assistant.setContentAssistProcessor(getTemplateProcessor(), IDocument.DEFAULT_CONTENT_TYPE);
        return assistant;
      }
    };
    return doCreateViewer(parent, sourceViewerConfiguration);
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.ContentAssistant.enableAutoInsert()

        }

        public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
          ContentAssistant assistant = new ContentAssistant();
          assistant.enableAutoActivation(true);
          assistant.enableAutoInsert(true);
          assistant.setContentAssistProcessor(getTemplateProcessor(), IDocument.DEFAULT_CONTENT_TYPE);
          return assistant;
        }
      };
      return doCreateViewer(parent, sourceViewerConfiguration);
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.ContentAssistant.enableAutoInsert()

    IFile file = (IFile) sourceModule.getResource();
    editor = CommonDeeUITest.openDeeEditorForFile(file);
    sourceModule.discardWorkingCopy(); // XXX: In the future this might not be necessary
   
    ContentAssistant ca = ContentAssistUI_CommonTest.getContentAssistant(editor);
    ca.enableAutoInsert(false);
    ca.enablePrefixCompletion(false);
    SWTTestUtils.________________clearEventQueue________________();
  }
 
  @Override
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.ContentAssistant.enableAutoInsert()

  }
 
  @Override
  public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
    ContentAssistant assistant = new ContentAssistant();
    assistant.enableAutoInsert(true);
    assistant.setContentAssistProcessor(getAssistProcessor(),IDocument.DEFAULT_CONTENT_TYPE);
    assistant.install(sourceViewer);
   
    return assistant;
  }
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.ContentAssistant.enableAutoInsert()

  }

  @Override
  public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
    ContentAssistant assistant = new ContentAssistant();
    assistant.enableAutoInsert(true);
    CSSAssistProcessor processor = new CSSAssistProcessor();
    assistant.setContentAssistProcessor(processor, IDocument.DEFAULT_CONTENT_TYPE);
    assistant.install(sourceViewer);

    //    IPreferenceStore store = HTMLPlugin.getDefault().getPreferenceStore();
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.ContentAssistant.enableAutoInsert()

      assistant.setContentAssistProcessor(completionProcessor, partitionType.name());
    }
    //FIXME: Add back XML content assist some day
//    assistant.setContentAssistProcessor(completionProcessor, PartitionScanner.XML_COMMENT);
//    assistant.setContentAssistProcessor(completionProcessor, PartitionScanner.XML_TAG);
    assistant.enableAutoInsert(true);
    assistant.enableAutoActivation(true);
    return assistant;
  }

  @Override
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.ContentAssistant.enableAutoInsert()

      SourceViewerConfiguration configuration= new SourceViewerConfiguration() {
        public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {

          ContentAssistant assistant= new ContentAssistant();
          assistant.enableAutoActivation(true);
          assistant.enableAutoInsert(true);
          assistant.setContentAssistProcessor(fTemplateProcessor, IDocument.DEFAULT_CONTENT_TYPE);
          return assistant;
        }
      };
      viewer.configure(configuration);
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.ContentAssistant.enableAutoInsert()

        + " project holding this file to activate the code completion"
        + " feature.");
    assistant.setStatusLineVisible(true);
    assistant.setStatusMessage("no current status message");

    assistant.enableAutoInsert(true);
    assistant.setAutoActivationDelay(0);
    assistant
        .setProposalPopupOrientation(IContentAssistant.PROPOSAL_STACKED);
    assistant
        .setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_BELOW);
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.ContentAssistant.enableAutoInsert()

    super(parent, initialText, styles);
  }

  protected IContentAssistant createContentAssistant(ISourceViewer viewer) {
    ContentAssistant assistant = new ContentAssistant();
    assistant.enableAutoInsert(true);
    final CommitProposalProcessor processor = getCommitProposalProcessor();
    getTextWidget().addDisposeListener(new DisposeListener() {

      public void widgetDisposed(DisposeEvent e) {
        processor.dispose();
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.ContentAssistant.enableAutoInsert()

      public IContentAssistant getContentAssistant(
          ISourceViewer sourceViewer) {

        ContentAssistant assistant = new ContentAssistant();
        assistant.enableAutoActivation(true);
        assistant.enableAutoInsert(true);
        assistant.setContentAssistProcessor(fTemplateProcessor,
            IDocument.DEFAULT_CONTENT_TYPE);
        return assistant;
      }
    };
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.