Examples of enableAutoActivation()


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

            assistant.setContentAssistProcessor(apexCompletionProcessor, IDocument.DEFAULT_CONTENT_TYPE);
            apexCompletionProcessor.setContentAssistant(assistant);
        }

        assistant.setContentAssistProcessor(new ApexDocCompletionProcessor(), ApexPartitionScanner.APEX_DOC);
        assistant.enableAutoActivation(true);
        assistant.setAutoActivationDelay(500);
        assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_STACKED);
        assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_BELOW);
        assistant.setShowEmptyList(true); // display no proposal when code assist is triggered by ctrl+space, but display nothing when triggered by auto-activation
View Full Code Here

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

    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;
      }
View Full Code Here

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

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

          ContentAssistant assistant = new ContentAssistant();
          assistant.enableAutoActivation(true);
          assistant.enableAutoInsert(true);
          assistant.setContentAssistProcessor(getTemplateProcessor(),
              IDocument.DEFAULT_CONTENT_TYPE);
          assistant.setProposalSelectorBackground(Display
              .getCurrent().getSystemColor(
View Full Code Here

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

  }
 
  @Override
  public IContentAssistant getContentAssistant(ISourceViewer sv) {
    final ContentAssistant ca = new ContentAssistant();
    ca.enableAutoActivation(true);
    ca.setAutoActivationDelay(100);

    ca.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
    ca.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
    ca.setContextInformationPopupBackground(colorManager.getColor(new RGB(150, 150, 0)));
View Full Code Here

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

        ContentAssistant assistant = new DialogContentAssistant();
        IContentAssistProcessor aciContentAssistProcessor = new ACIContentAssistProcessor();

        assistant.setContentAssistProcessor( aciContentAssistProcessor, IDocument.DEFAULT_CONTENT_TYPE );
        assistant.setDocumentPartitioning( "org.apache.directory.ldapstudio.aci" );
        assistant.enableAutoActivation( true );
        assistant.setAutoActivationDelay( 500 );
        assistant.setProposalPopupOrientation( IContentAssistant.PROPOSAL_STACKED );
        assistant.setContextInformationPopupOrientation( IContentAssistant.CONTEXT_INFO_ABOVE );

        return assistant;
View Full Code Here

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

      if (editor!=null) {
        IJavaProject jp = EditorUtility.getJavaProject(editor.getEditorInput());
        if (jp!=null) {
          ContentAssistant a = new ContentAssistant();
          a.setContentAssistProcessor(new SpringPropertiesProposalProcessor(jp), IDocument.DEFAULT_CONTENT_TYPE);
          a.enableAutoActivation(true);
          return a;
        }
      }
    } catch (Exception e) {
      SpringPropertiesEditorPlugin.log(e);
View Full Code Here

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

    ContentAssistant assistant= new ContentAssistant();
    assistant.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
    assistant.setContentAssistProcessor(new ProcessingCompletionProcessor(), IDocument.DEFAULT_CONTENT_TYPE);
   
    assistant.enableAutoActivation(true);
    assistant.setAutoActivationDelay(500);
    assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
    assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
    assistant.setContextInformationPopupBackground(ProcessingPlugin.getDefault().getProcessingColorProvider().getColor(new RGB(150, 150, 0)));
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.contentassist.StructuredContentAssistant.enableAutoActivation()

              StructuredContentAssistant contentAssistant = (StructuredContentAssistant) configuration
                  .getPHPContentAssistant(sourceViewer);

              IPreferencesService preferencesService = Platform
                  .getPreferencesService();
              contentAssistant
                  .enableAutoActivation(preferencesService
                      .getBoolean(
                          PHPCorePlugin.ID,
                          PHPCoreConstants.CODEASSIST_AUTOACTIVATION,
                          false, null));
View Full Code Here

Examples of org.python.pydev.editor.codecompletion.PyContentAssistant.enableAutoActivation()

    protected SourceViewerConfiguration createSourceViewerConfiguration() {
        PyContentAssistant contentAssist = new PyContentAssistant();
        IContentAssistProcessor processor = createConsoleCompletionProcessor(contentAssist);
        contentAssist.setContentAssistProcessor(processor, PydevScriptConsoleSourceViewerConfiguration.PARTITION_TYPE);

        contentAssist.enableAutoActivation(true);
        contentAssist.enableAutoInsert(false);
        contentAssist.setAutoActivationDelay(PyCodeCompletionPreferencesPage.getAutocompleteDelay());

        PyCorrectionAssistant quickAssist = new PyCorrectionAssistant();
        // next create a content assistant processor to populate the completions window
View Full Code Here

Examples of org.python.pydev.editor.codecompletion.PyContentAssistant.enableAutoActivation()

    protected SourceViewerConfiguration createSourceViewerConfiguration() {
        PyContentAssistant contentAssist = new PyContentAssistant();
        IContentAssistProcessor processor = createConsoleCompletionProcessor(contentAssist);
        contentAssist.setContentAssistProcessor(processor, JSScriptConsoleSourceViewerConfiguration.PARTITION_TYPE);

        contentAssist.enableAutoActivation(true);
        contentAssist.enableAutoInsert(false);
        contentAssist.setAutoActivationDelay(PyCodeCompletionPreferencesPage.getAutocompleteDelay());

        PyCorrectionAssistant quickAssist = new PyCorrectionAssistant();
        // next create a content assistant processor to populate the completions window
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.