當前位置: 首頁>>代碼示例>>Java>>正文


Java ContentAssistant.setProposalPopupOrientation方法代碼示例

本文整理匯總了Java中org.eclipse.jface.text.contentassist.ContentAssistant.setProposalPopupOrientation方法的典型用法代碼示例。如果您正苦於以下問題:Java ContentAssistant.setProposalPopupOrientation方法的具體用法?Java ContentAssistant.setProposalPopupOrientation怎麽用?Java ContentAssistant.setProposalPopupOrientation使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.jface.text.contentassist.ContentAssistant的用法示例。


在下文中一共展示了ContentAssistant.setProposalPopupOrientation方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
@Override
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {

	ContentAssistant assistant = new ContentAssistant();
	assistant.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
	assistant.setContentAssistProcessor(new FtcCompletionProcessor(sourceViewer), IDocument.DEFAULT_CONTENT_TYPE);

	
	assistant.enableAutoActivation(true);
	assistant.setAutoActivationDelay(300);
	assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
	assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
	assistant.setContextInformationPopupBackground(colorManager.getColor(new RGB(150, 150, 0)));

	return assistant;
}
 
開發者ID:curiosag,項目名稱:ftc,代碼行數:17,代碼來源:FtcSourceViewerConfiguration.java

示例2: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
    assistant = new ContentAssistant();
    assistant.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
    
    assistant.setContentAssistProcessor(new BibCompletionProcessor(this.editor.getDocumentModel()),
            BibPartitionScanner.BIB_ENTRY);
    assistant.setContentAssistProcessor(new BibCompletionProcessor(this.editor.getDocumentModel()),
            IDocument.DEFAULT_CONTENT_TYPE);

    assistant.enableAutoActivation(TexlipsePlugin.getDefault().getPreferenceStore().getBoolean(TexlipseProperties.BIB_COMPLETION));
    assistant.enableAutoInsert(true);
    assistant.setAutoActivationDelay(TexlipsePlugin.getDefault().getPreferenceStore().getInt(TexlipseProperties.BIB_COMPLETION_DELAY));
    assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
    assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
    assistant.setInformationControlCreator(getInformationControlCreator(sourceViewer));
    return assistant;
}
 
開發者ID:eclipse,項目名稱:texlipse,代碼行數:18,代碼來源:BibSourceViewerConfiguration.java

示例3: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
@Override public IContentAssistant getContentAssistant(final ISourceViewer sourceViewer)
{
	// Create content assistant
	final ContentAssistant assistant														= new ContentAssistant();

	assistant.enableAutoActivation(true);
	assistant.setAutoActivationDelay(500);
	assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
	assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
	assistant.setInformationControlCreator(this.getInformationControlCreator(sourceViewer));

	// Create content assistant processor
	final IContentAssistProcessor processor													= new DMContentAssistProcessor();

	// Set this processor for each supported content type
	assistant.setContentAssistProcessor(processor, IDocument.DEFAULT_CONTENT_TYPE);
	assistant.setContentAssistProcessor(processor, DMPartitionScanner.DM_STRING);

	// Return the content assistant
	return assistant;
}
 
開發者ID:nullquery,項目名稱:BYONDclipse,代碼行數:22,代碼來源:DMConfiguration.java

示例4: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
@Override
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
	ContentAssistant assistant = new ContentAssistant();
	assistant.setDocumentPartitioning(this.getConfiguredDocumentPartitioning(sourceViewer));
	CompletionProposalToggler toggler = new CompletionProposalToggler();
	assistant.setContentAssistProcessor(toggler, IDocument.DEFAULT_CONTENT_TYPE);
	assistant.setContentAssistProcessor(toggler, EditorConstants.PARTITION_TYPE_BRAINFUCK_CODE);
	assistant.addCompletionListener(toggler);		
	assistant.setStatusLineVisible(true);
	assistant.setRepeatedInvocationMode(true);
	assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
	assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
	assistant.setAutoActivationDelay(500);
	assistant.enableAutoActivation(false);
	
	assistant.setInformationControlCreator(new AbstractReusableInformationControlCreator() {
		
		@Override
		protected IInformationControl doCreateInformationControl(Shell parent) {
			return new DefaultInformationControl(parent);
		}
	});
	assistant.setContentAssistProcessor(null, EditorConstants.PARTITION_TYPE_MULTILINE_COMMENT);
	return assistant;
}
 
開發者ID:RichardBirenheide,項目名稱:brainfuck,代碼行數:26,代碼來源:BfSourceViewerConfiguration.java

示例5: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
@Override
public IContentAssistant getContentAssistant(@Nullable ISourceViewer sourceViewer) {
	ContentAssistant a = assistant;
	if (a == null) {
		assistant = a = new ContentAssistant();
		a.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
		a.setContentAssistProcessor(new RustContentAssistant(editor), IDocument.DEFAULT_CONTENT_TYPE);
		
		a.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
		a.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
//		assistant.setContextInformationPopupBackground(...);
		a.setInformationControlCreator(getInformationControlCreator(sourceViewer));
		a.enableAutoInsert(true);
	}
	if (RustPrefs.get().autocompleteEnabled()) {
		a.enableAutoActivation(true);
		a.setAutoActivationDelay((int) (1000*RustPrefs.get().autocompleteDelay()));
	} else {
		a.enableAutoActivation(false);
	}
	return a;
}
 
開發者ID:peq,項目名稱:rustyeclipse,代碼行數:23,代碼來源:RustEditorConfig.java

示例6: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
public IContentAssistant getContentAssistant( ISourceViewer sourceViewer )
{
	if ( !enableCodeAssist )
	{
		return null;
	}
	ContentAssistant assistant = new ContentAssistant( );
	JdbcSQLContentAssistProcessor contentAssist = new JdbcSQLContentAssistProcessor( timeout );
	contentAssist.setDataSourceHandle( dsd );
	assistant.setContentAssistProcessor( contentAssist,
			IDocument.DEFAULT_CONTENT_TYPE );
	assistant.enableAutoActivation( true );
	assistant.setAutoActivationDelay( 500 );
	assistant.setProposalPopupOrientation( IContentAssistant.PROPOSAL_OVERLAY );
	return assistant;
}
 
開發者ID:eclipse,項目名稱:birt,代碼行數:17,代碼來源:SQLSourceViewerConfiguration.java

示例7: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
@Override
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
    if (editor == null) {
        return null;
    }
    ContentAssistant assistant= new ContentAssistant();
    assistant.setContentAssistProcessor(new SQLEditorCompletionProcessor(editor), SQLEditorCommonDocumentProvider.SQL_CODE);
    assistant.enableAutoActivation(true);
    assistant.enableAutoInsert(true);
    assistant.setAutoActivationDelay(500);
    assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
    assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
    return assistant;
}
 
開發者ID:pgcodekeeper,項目名稱:pgcodekeeper,代碼行數:15,代碼來源:SQLEditorSourceViewerConfiguration.java

示例8: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
/**
 * Create and set some specifications of content assistant. We define our completion processor
 * as @CodeCompletionProcessor.
 */
@Override
public IContentAssistant getContentAssistant(final ISourceViewer sourceViewer) {
  final ContentAssistant assistant = new ContentAssistant();
  assistant.setContentAssistProcessor(new CodeCompletionProcessor(),
      IDocument.DEFAULT_CONTENT_TYPE);
  assistant.setAutoActivationDelay(500);
  assistant.enableAutoActivation(true);
  assistant.enableAutoInsert(true);
  assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
  assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);

  return assistant;
}
 
開發者ID:ModelWriter,項目名稱:Tarski,代碼行數:18,代碼來源:RelationModelEditorSourceViewerConfiguration.java

示例9: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
@Override
public IContentAssistant getContentAssistant(final ISourceViewer sourceViewer) {
  final ContentAssistant assistant = new ContentAssistant();
  assistant.setContentAssistProcessor(new DefaultCompletionProcessor(),
      IDocument.DEFAULT_CONTENT_TYPE);
  assistant.setAutoActivationDelay(500);
  assistant.enableAutoActivation(true);
  assistant.enableAutoInsert(true);
  assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
  assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);

  return assistant;
}
 
開發者ID:ModelWriter,項目名稱:Tarski,代碼行數:14,代碼來源:ValidationConfiguration.java

示例10: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
@Override
public IContentAssistant getContentAssistant(final ISourceViewer sourceViewer) {
	final ContentAssistant assistant = new ContentAssistant();
	assistant.setContentAssistProcessor(new CodeCompletionProcessor(), IDocument.DEFAULT_CONTENT_TYPE);
	assistant.setAutoActivationDelay(1);
	assistant.enableAutoActivation(true);
	assistant.enableAutoInsert(true);
	assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
	assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);

	return assistant;
}
 
開發者ID:ModelWriter,項目名稱:Tarski,代碼行數:13,代碼來源:RelationModelEditorSourceViewerConfiguration.java

示例11: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
/**
 * Create and set some specifications of content assistant. We define our completion processor
 * as @CodeCompletionProcessor.
 */
@Override
public IContentAssistant getContentAssistant(final ISourceViewer sourceViewer) {
  final ContentAssistant assistant = new ContentAssistant();
  assistant.setContentAssistProcessor(new DefaultCompletionProcessor(),
      IDocument.DEFAULT_CONTENT_TYPE);
  assistant.setContentAssistProcessor(new ReasonCompletionProcessor(),
      MetaModelPartitionScanner.META_MODEL_REASON);
  assistant.setContentAssistProcessor(new LocateCompletionProcessor(),
      MetaModelPartitionScanner.META_MODEL_LOCATE);
  assistant.setContentAssistProcessor(new LoadCompletionProcessor(),
      MetaModelPartitionScanner.META_MODEL_LOADMODEL);
  assistant.setContentAssistProcessor(new LoadCompletionProcessor(),
      MetaModelPartitionScanner.META_MODEL_LOADINSTANCE);
  assistant.setContentAssistProcessor(new SigCompletionProcessor(),
      MetaModelPartitionScanner.META_MODEL_SIG);
  assistant.setContentAssistProcessor(new FactCompletionProcessor(),
      MetaModelPartitionScanner.META_MODEL_FACT);
  assistant.setContentAssistProcessor(new DiscoverCompletionProcessor(),
      MetaModelPartitionScanner.META_MODEL_DISCOVER);
  assistant.setContentAssistProcessor(new TraceCompletionProcessor(),
      MetaModelPartitionScanner.META_MODEL_TRACE);
  assistant.setAutoActivationDelay(500);
  assistant.enableAutoActivation(true);
  assistant.enableAutoInsert(true);
  assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
  assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);

  return assistant;
}
 
開發者ID:ModelWriter,項目名稱:Tarski,代碼行數:34,代碼來源:MetaModelEditorViewerConfiguration.java

示例12: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
	
	ContentAssistant assistant = new ContentAssistant();
	assistant.setContentAssistProcessor(new de.darwinspl.preferences.resource.dwprofile.ui.DwprofileCompletionProcessor(resourceProvider), IDocument.DEFAULT_CONTENT_TYPE);
	assistant.enableAutoActivation(true);
	assistant.setAutoActivationDelay(500);
	assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
	assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
	
	return assistant;
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:12,代碼來源:DwprofileSourceViewerConfiguration.java

示例13: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
	
	ContentAssistant assistant = new ContentAssistant();
	assistant.setContentAssistProcessor(new eu.hyvar.feature.expression.resource.hyexpression.ui.HyexpressionCompletionProcessor(resourceProvider), IDocument.DEFAULT_CONTENT_TYPE);
	assistant.enableAutoActivation(true);
	assistant.setAutoActivationDelay(500);
	assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
	assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
	
	return assistant;
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:12,代碼來源:HyexpressionSourceViewerConfiguration.java

示例14: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
	
	ContentAssistant assistant = new ContentAssistant();
	assistant.setContentAssistProcessor(new eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaCompletionProcessor(resourceProvider), IDocument.DEFAULT_CONTENT_TYPE);
	assistant.enableAutoActivation(true);
	assistant.setAutoActivationDelay(500);
	assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
	assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
	
	return assistant;
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:12,代碼來源:HyvalidityformulaSourceViewerConfiguration.java

示例15: getContentAssistant

import org.eclipse.jface.text.contentassist.ContentAssistant; //導入方法依賴的package包/類
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
	
	ContentAssistant assistant = new ContentAssistant();
	assistant.setContentAssistProcessor(new eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueCompletionProcessor(resourceProvider), IDocument.DEFAULT_CONTENT_TYPE);
	assistant.enableAutoActivation(true);
	assistant.setAutoActivationDelay(500);
	assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
	assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
	
	return assistant;
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:12,代碼來源:HydatavalueSourceViewerConfiguration.java


注:本文中的org.eclipse.jface.text.contentassist.ContentAssistant.setProposalPopupOrientation方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。