Package org.eclipse.jface.text.contentassist

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


            assistant.setContentAssistProcessor(
                new PerlCompletionProcessor(editor), contentTypes[i]);
        }

        assistant.enableAutoActivation(true);
        assistant.enableAutoInsert(true);
        assistant.setAutoActivationDelay(prefs.getInt(CodeAssistPreferences.AUTO_ACTIVATION_DELAY));
        assistant.setProposalPopupOrientation(ContentAssistant.PROPOSAL_OVERLAY);
        assistant.setContextInformationPopupOrientation(ContentAssistant.CONTEXT_INFO_ABOVE);
        assistant.setContextInformationPopupBackground(
            PerlEditorPlugin.getDefault().getColor(new RGB(0, 0, 0)));
View Full Code Here


                IDocument.DEFAULT_CONTENT_TYPE);
        contentAssistant.setContentAssistProcessor(contentAssistProcessor,
                IErlangPartitions.ERLANG_QATOM);
        contentAssistant.setContentAssistProcessor(contentAssistProcessorForStrings,
                IErlangPartitions.ERLANG_STRING);
        contentAssistant.enableAutoInsert(true);
        contentAssistant.enablePrefixCompletion(false);
        contentAssistant.setDocumentPartitioning(IErlangPartitions.ERLANG_PARTITIONING);

        contentAssistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
        contentAssistant
View Full Code Here

//
//    // display Django filters
//    assistant.setContentAssistProcessor(new DjangoCompletionProcessor(IDjangoPartitions.DJANGO_VARIABLE),
//        IDjangoPartitions.DJANGO_VARIABLE);

    assistant.enableAutoInsert(true);
    assistant.enableAutoActivation(true);
    assistant.setAutoActivationDelay(100);
    assistant.setProposalPopupOrientation(IContentAssistant.CONTEXT_INFO_BELOW);
    assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_BELOW);
    assistant.setContextInformationPopupBackground(colorProvider.getColor(new RGB(0, 0, 0)));
View Full Code Here

//
//    // display Django filters
//    assistant.setContentAssistProcessor(new DjangoCompletionProcessor(IDjangoPartitions.DJANGO_VARIABLE),
//                      IDjangoPartitions.DJANGO_VARIABLE);

    assistant.enableAutoInsert(true);
    assistant.enableAutoActivation(true);
    assistant.setAutoActivationDelay(100);
    //assistant.enableColoredLabels(true);
    //assistant.setProposalPopupOrientation(IContentAssistant.CONTEXT_INFO_BELOW);
    //assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_BELOW);
View Full Code Here

      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

        assistant.enableAutoActivation(true);
        assistant.setAutoActivationDelay(500); // half a second?
        assistant.setProposalPopupOrientation(
            ContentAssistant.CONTEXT_INFO_BELOW);
        assistant.enableAutoInsert(true);

        return assistant;
    }

}
View Full Code Here

      CSSPartitionScanner.CSS_COMMENT};
  }
 
  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

    return assistProcessor;
  }
 
  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

      }

      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

        }

        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

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.