类org.eclipse.jface.text.source.SourceViewerConfiguration源码实例Demo

下面列出了怎么用org.eclipse.jface.text.source.SourceViewerConfiguration的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: xtext-eclipse   文件: DefaultMergeViewer.java
protected void configureSourceViewer(SourceViewer sourceViewer) {
	IEditorInput editorInput = getEditorInput(sourceViewer);
	SourceViewerConfiguration sourceViewerConfiguration = createSourceViewerConfiguration(sourceViewer, editorInput);
	sourceViewer.unconfigure();
	sourceViewer.configure(sourceViewerConfiguration);
	IXtextDocument xtextDocument = xtextDocumentUtil.getXtextDocument(sourceViewer);
	if (xtextDocument != null) {
		if (!xtextDocument.readOnly(TEST_EXISTING_XTEXT_RESOURCE)) {
			String[] configuredContentTypes = sourceViewerConfiguration.getConfiguredContentTypes(sourceViewer);
			for (String contentType : configuredContentTypes) {
				sourceViewer.removeTextHovers(contentType);
			}
			sourceViewer.setHyperlinkDetectors(null, sourceViewerConfiguration.getHyperlinkStateMask(sourceViewer));
		}
	}
}
 
源代码2 项目: xtext-eclipse   文件: DefaultMergeViewer.java
protected SourceViewerConfiguration createSourceViewerConfiguration(SourceViewer sourceViewer,
		IEditorInput editorInput) {
	SourceViewerConfiguration sourceViewerConfiguration = null;
	if (editorInput != null && getEditor(sourceViewer) != null) {
		DefaultMergeEditor mergeEditor = getEditor(sourceViewer);
		sourceViewerConfiguration = mergeEditor.getXtextSourceViewerConfiguration();
		try {
			mergeEditor.init((IEditorSite) mergeEditor.getSite(), editorInput);
			mergeEditor.createActions();
		} catch (PartInitException partInitException) {
			throw new WrappedException(partInitException);
		}
	} else {
		sourceViewerConfiguration = sourceViewerConfigurationProvider.get();
	}
	return sourceViewerConfiguration;
}
 
源代码3 项目: typescript.java   文件: TypeScriptEditor.java
@Override
protected void installTabsToSpacesConverter() {
	ISourceViewer sourceViewer = getSourceViewer();
	SourceViewerConfiguration config = getSourceViewerConfiguration();
	if (config != null && sourceViewer instanceof ITextViewerExtension7) {
		int tabWidth = config.getTabWidth(sourceViewer);
		TabsToSpacesConverter tabToSpacesConverter = new TabsToSpacesConverter();
		tabToSpacesConverter.setNumberOfSpacesPerTab(tabWidth);
		IDocumentProvider provider = getDocumentProvider();
		if (provider instanceof ICompilationUnitDocumentProvider) {
			ICompilationUnitDocumentProvider cup = (ICompilationUnitDocumentProvider) provider;
			tabToSpacesConverter.setLineTracker(cup.createLineTracker(getEditorInput()));
		} else
			tabToSpacesConverter.setLineTracker(new DefaultLineTracker());
		((ITextViewerExtension7) sourceViewer).setTabsToSpacesConverter(tabToSpacesConverter);
		updateIndentPrefixes();
	}
}
 
源代码4 项目: APICloud-Studio   文件: CommonProjectionViewer.java
@Override
public void configure(SourceViewerConfiguration configuration)
{
	super.configure(configuration);

	fSnippetContentAssistant = new SnippetsContentAssistant();
	fSnippetContentAssistant.install(this);
	fKeyListener = new ExpandSnippetVerifyKeyListener((ITextEditor) getAdapter(ITextEditor.class), this,
			fSnippetContentAssistant);
	// add listener to our viewer
	prependVerifyKeyListener(fKeyListener);

	fPreferenceStore = EclipseUtil.instanceScope().getNode(CommonEditorPlugin.PLUGIN_ID);
	if (fPreferenceStore != null)
	{
		fPreferenceStore.addPreferenceChangeListener(this);
		setSnippetProcessorEnablement();
	}
}
 
@Override
protected void installTabsToSpacesConverter() {
	ISourceViewer sourceViewer= getSourceViewer();
	SourceViewerConfiguration config= getSourceViewerConfiguration();
	if (config != null && sourceViewer instanceof ITextViewerExtension7) {
		int tabWidth= config.getTabWidth(sourceViewer);
		TabsToSpacesConverter tabToSpacesConverter= new TabsToSpacesConverter();
		tabToSpacesConverter.setNumberOfSpacesPerTab(tabWidth);
		IDocumentProvider provider= getDocumentProvider();
		if (provider instanceof ICompilationUnitDocumentProvider) {
			ICompilationUnitDocumentProvider cup= (ICompilationUnitDocumentProvider) provider;
			tabToSpacesConverter.setLineTracker(cup.createLineTracker(getEditorInput()));
		} else
			tabToSpacesConverter.setLineTracker(new DefaultLineTracker());
		((ITextViewerExtension7)sourceViewer).setTabsToSpacesConverter(tabToSpacesConverter);
		updateIndentPrefixes();
	}
}
 
@Override
protected void setPreferenceStore(IPreferenceStore store) {
	super.setPreferenceStore(store);
	SourceViewerConfiguration sourceViewerConfiguration= getSourceViewerConfiguration();
	if (sourceViewerConfiguration == null || sourceViewerConfiguration instanceof JavaSourceViewerConfiguration) {
		JavaTextTools textTools= JavaPlugin.getDefault().getJavaTextTools();
		setSourceViewerConfiguration(new JavaSourceViewerConfiguration(textTools.getColorManager(), store, this, IJavaPartitions.JAVA_PARTITIONING));
	}

	if (getSourceViewer() instanceof JavaSourceViewer)
		((JavaSourceViewer)getSourceViewer()).setPreferenceStore(store);

	fMarkOccurrenceAnnotations= store.getBoolean(PreferenceConstants.EDITOR_MARK_OCCURRENCES);
	fStickyOccurrenceAnnotations= store.getBoolean(PreferenceConstants.EDITOR_STICKY_OCCURRENCES);
	fMarkTypeOccurrences= store.getBoolean(PreferenceConstants.EDITOR_MARK_TYPE_OCCURRENCES);
	fMarkMethodOccurrences= store.getBoolean(PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES);
	fMarkConstantOccurrences= store.getBoolean(PreferenceConstants.EDITOR_MARK_CONSTANT_OCCURRENCES);
	fMarkFieldOccurrences= store.getBoolean(PreferenceConstants.EDITOR_MARK_FIELD_OCCURRENCES);
	fMarkLocalVariableypeOccurrences= store.getBoolean(PreferenceConstants.EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES);
	fMarkExceptions= store.getBoolean(PreferenceConstants.EDITOR_MARK_EXCEPTION_OCCURRENCES);
	fMarkImplementors= store.getBoolean(PreferenceConstants.EDITOR_MARK_IMPLEMENTORS);
	fMarkMethodExitPoints= store.getBoolean(PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS);
	fMarkBreakContinueTargets= store.getBoolean(PreferenceConstants.EDITOR_MARK_BREAK_CONTINUE_TARGETS);
}
 
@Override
protected void configureTextViewer(TextViewer textViewer) {
	if (!(textViewer instanceof SourceViewer))
		return;

	if (fPreferenceStore == null) {
		fSourceViewerConfigurations= new ArrayList<SourceViewerConfiguration>(3);
		fPreferenceStore= JavaPlugin.getDefault().getCombinedPreferenceStore();
		fPreferenceChangeListener= new IPropertyChangeListener() {
			public void propertyChange(PropertyChangeEvent event) {
				Iterator<SourceViewerConfiguration> iter= fSourceViewerConfigurations.iterator();
				while (iter.hasNext())
					((PropertiesFileSourceViewerConfiguration)iter.next()).handlePropertyChangeEvent(event);
				invalidateTextPresentation();
			}
		};
		fPreferenceStore.addPropertyChangeListener(fPreferenceChangeListener);
	}

	SourceViewerConfiguration sourceViewerConfiguration= new PropertiesFileSourceViewerConfiguration(JavaPlugin.getDefault().getJavaTextTools().getColorManager(), fPreferenceStore, null,
			getDocumentPartitioning());

	fSourceViewerConfigurations.add(sourceViewerConfiguration);
	((SourceViewer)textViewer).configure(sourceViewerConfiguration);
}
 
源代码8 项目: Pydev   文件: PydevConsole.java
@Override
public SourceViewerConfiguration createSourceViewerConfiguration() {
    PyContentAssistant contentAssist = new PyContentAssistant();
    IContentAssistProcessor processor = createConsoleCompletionProcessor(contentAssist);
    contentAssist.setContentAssistProcessor(processor, PydevScriptConsoleSourceViewerConfiguration.PARTITION_TYPE);

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

    PyCorrectionAssistant quickAssist = new PyCorrectionAssistant();
    // next create a content assistant processor to populate the completions window
    IQuickAssistProcessor quickAssistProcessor = createConsoleQuickAssistProcessor(quickAssist);

    // Correction assist works on all
    quickAssist.setQuickAssistProcessor(quickAssistProcessor);

    SourceViewerConfiguration cfg = new PydevScriptConsoleSourceViewerConfiguration(createHover(), contentAssist,
            quickAssist);
    return cfg;
}
 
源代码9 项目: goclipse   文件: LangTemplatePreferencePage.java
@Override
protected SourceViewer createViewer(Composite parent) {
	LangSourceViewer viewer = new LangSourceViewer(parent, null, null, false,
		SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
	
	final IContentAssistProcessor templateProcessor = getTemplateProcessor();
	
	IDocument document = new Document();
	LangDocumentPartitionerSetup.getInstance().setup(document);
	
	IPreferenceStore store = LangUIPlugin.getDefault().getCombinedPreferenceStore();
	SourceViewerConfiguration configuration = EditorSettings_Actual
			.createTemplateEditorSourceViewerConfiguration(store, templateProcessor);
	viewer.configure(configuration);
	viewer.setEditable(true);
	viewer.setDocument(document);
	
	return viewer;
}
 
源代码10 项目: n4js   文件: ContentAssistantFactory.java
@Override
protected void setContentAssistProcessor(ContentAssistant assistant, SourceViewerConfiguration configuration,
		ISourceViewer sourceViewer) {
	super.setContentAssistProcessor(assistant, configuration, sourceViewer);
	assistant.setContentAssistProcessor(jsDocContentAssistProcessor, TokenTypeToPartitionMapper.JS_DOC_PARTITION);
	assistant.setContentAssistProcessor(null, TokenTypeToPartitionMapper.REG_EX_PARTITION);
	assistant.setContentAssistProcessor(null, TokenTypeToPartitionMapper.TEMPLATE_LITERAL_PARTITION);
	assistant.setContentAssistProcessor(null, TerminalsTokenTypeToPartitionMapper.SL_COMMENT_PARTITION);
	assistant.setContentAssistProcessor(null, TerminalsTokenTypeToPartitionMapper.COMMENT_PARTITION);
}
 
@Override
public IContentAssistant createConfiguredAssistant(SourceViewerConfiguration configuration,
		ISourceViewer sourceViewer) {
	ContentAssistant assistant = createAssistant();
	configureContentAssistant(assistant, configuration, sourceViewer);
	return assistant;
}
 
private void configureDefaults(ContentAssistant assistant, SourceViewerConfiguration configuration, ISourceViewer sourceViewer) {
	setAutoInsert(assistant);
	setAutoActivation(assistant);
	setContentAssistProcessor(assistant, configuration, sourceViewer);
	setInformationControlCreator(assistant, configuration, sourceViewer);
	setDialogSettings(assistant);
	setColoredLabels(assistant);
}
 
protected void setContentAssistProcessor(ContentAssistant assistant, SourceViewerConfiguration configuration, ISourceViewer sourceViewer) {
	if (contentAssistProcessor != null) {
		for(String contentType: configuration.getConfiguredContentTypes(sourceViewer)) {
			assistant.setContentAssistProcessor(contentAssistProcessor, contentType);
		}
		if (contentAssistProcessor instanceof ICompletionListener) {
			assistant.setRepeatedInvocationMode(true);
			assistant.setStatusLineVisible(true);
			assistant.addCompletionListener((ICompletionListener) contentAssistProcessor);
		}
	}
}
 
源代码14 项目: xtext-eclipse   文件: ToggleSLCommentAction.java
public void configure(ISourceViewer sourceViewer, SourceViewerConfiguration configuration) {
	fPrefixesMap= null;

	String[] types= configuration.getConfiguredContentTypes(sourceViewer);
	Map<String, String[]> prefixesMap= new HashMap<String, String[]>(types.length);
	for (int i= 0; i < types.length; i++) {
		String type= types[i];
		String[] prefixes= configuration.getDefaultPrefixes(sourceViewer, type);
		if (prefixes != null && prefixes.length > 0) {
			int emptyPrefixes= 0;
			for (int j= 0; j < prefixes.length; j++)
				if (prefixes[j].length() == 0)
					emptyPrefixes++;

			if (emptyPrefixes > 0) {
				String[] nonemptyPrefixes= new String[prefixes.length - emptyPrefixes];
				for (int j= 0, k= 0; j < prefixes.length; j++) {
					String prefix= prefixes[j];
					if (prefix.length() != 0) {
						nonemptyPrefixes[k]= prefix;
						k++;
					}
				}
				prefixes= nonemptyPrefixes;
			}

			prefixesMap.put(type, prefixes);
		}
	}
	fDocumentPartitioning= configuration.getConfiguredDocumentPartitioning(sourceViewer);
	fPrefixesMap= prefixesMap;
}
 
源代码15 项目: xtext-xtend   文件: XtendContentAssistFactory.java
@Override
protected void setContentAssistProcessor(ContentAssistant assistant, SourceViewerConfiguration configuration,
		ISourceViewer sourceViewer) {
	super.setContentAssistProcessor(assistant, configuration, sourceViewer);
	assistant.setContentAssistProcessor(javaDocContentAssistProcessor,TokenTypeToPartitionMapper.JAVA_DOC_PARTITION);
	assistant.setContentAssistProcessor(null, TerminalsTokenTypeToPartitionMapper.SL_COMMENT_PARTITION);
	assistant.setContentAssistProcessor(null, TerminalsTokenTypeToPartitionMapper.COMMENT_PARTITION);
}
 
源代码16 项目: tlaplus   文件: ToggleCommentAction.java
/**
 * Configures the action
 * @param sourceViewer
 * @param configuration
 */
public void configure(ISourceViewer sourceViewer, SourceViewerConfiguration configuration)
{
    fPrefixesMap = null;

    String[] types = configuration.getConfiguredContentTypes(sourceViewer);
    Map prefixesMap = new HashMap(types.length);
    for (int i = 0; i < types.length; i++)
    {
        String type = types[i];
        String[] prefixes = configuration.getDefaultPrefixes(sourceViewer, type);
        if (prefixes != null && prefixes.length > 0)
        {
            int emptyPrefixes = 0;
            for (int j = 0; j < prefixes.length; j++)
                if (prefixes[j].length() == 0)
                    emptyPrefixes++;

            if (emptyPrefixes > 0)
            {
                String[] nonemptyPrefixes = new String[prefixes.length - emptyPrefixes];
                for (int j = 0, k = 0; j < prefixes.length; j++)
                {
                    String prefix = prefixes[j];
                    if (prefix.length() != 0)
                    {
                        nonemptyPrefixes[k] = prefix;
                        k++;
                    }
                }
                prefixes = nonemptyPrefixes;
            }

            prefixesMap.put(type, prefixes);
        }
    }
    fDocumentPartitioning = configuration.getConfiguredDocumentPartitioning(sourceViewer);
    fPrefixesMap = prefixesMap;
}
 
源代码17 项目: tlaplus   文件: FormHelper.java
public static SourceViewer createFormsSourceViewer(FormToolkit toolkit, Composite parent, int flags, SourceViewerConfiguration config)
{
    SourceViewer sourceViewer = createSourceViewer(parent, flags, config);
    sourceViewer.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TREE_BORDER);

    sourceViewer.getTextWidget().setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    toolkit.adapt(sourceViewer.getTextWidget(), true, true);

    return sourceViewer;
}
 
源代码18 项目: tlaplus   文件: FormHelper.java
/**
 * Creates the source viewer
 * @param parent
 * @param flags
 * @return
 */
public static SourceViewer createOutputViewer(Composite parent, int flags)
{
    SourceViewer sourceViewer = new SourceViewer(parent, null, null, false, flags);
    SourceViewerConfiguration configuration = new SourceViewerConfiguration();
    sourceViewer.configure(configuration);
    sourceViewer.setTabsToSpacesConverter(getTabToSpacesConverter());

    StyledText control = sourceViewer.getTextWidget();
    control.setFont(TLCUIActivator.getDefault().getOutputFont());
    control.setEditable(false);
    return sourceViewer;
}
 
源代码19 项目: tlaplus   文件: FormHelper.java
public static SourceViewer createSourceViewer(Composite parent, int flags, SourceViewerConfiguration config)
{
    SourceViewer sourceViewer = new SourceViewer(parent, null, null, false, flags);
    sourceViewer.configure(config);
    sourceViewer.setTabsToSpacesConverter(getTabToSpacesConverter());

    StyledText control = sourceViewer.getTextWidget();
    control.setWordWrap(true);
    control.setFont(TLCUIActivator.getDefault().getCourierFont());
    control.setEditable(true);
    return sourceViewer;
}
 
源代码20 项目: typescript.java   文件: TypeScriptEditor.java
/**
 * Configures the toggle comment action
 *
 * 
 */
private void configureToggleCommentAction() {
	IAction action = getAction("ToggleComment"); //$NON-NLS-1$
	if (action instanceof ToggleCommentAction) {
		ISourceViewer sourceViewer = getSourceViewer();
		SourceViewerConfiguration configuration = getSourceViewerConfiguration();
		((ToggleCommentAction) action).configure(sourceViewer, configuration);
	}
}
 
源代码21 项目: typescript.java   文件: TypeScriptSourceViewer.java
@Override
public void configure(SourceViewerConfiguration configuration) {
	super.configure(configuration);
	if (configuration instanceof TypeScriptSourceViewerConfiguration) {
		TypeScriptSourceViewerConfiguration tsConfiguration = (TypeScriptSourceViewerConfiguration) configuration;
		implementationPresenter = tsConfiguration.getImplementationPresenter(this);
		if (implementationPresenter != null)
			implementationPresenter.install(this);
	}
}
 
源代码22 项目: statecharts   文件: XtextSourceViewerEx.java
@Override
public void configure(SourceViewerConfiguration configuration) {
	// We have to set the preference store via reflection here because Xtext
	// uses package visibility for the setter
	Field declaredField;
	try {
		declaredField = TextSourceViewerConfiguration.class
				.getDeclaredField("fPreferenceStore");
		declaredField.setAccessible(true);
		declaredField.set(configuration, this.preferenceStore);
	} catch (Exception e) {
		e.printStackTrace();
	}
	super.configure(configuration);
}
 
public KaizenTemplatePreferences(SourceViewerConfiguration sourceViewerConfiguration,
        IPreferenceStore preferenceStore, TemplateStore templateStore, ContextTypeRegistry contextTypeRegistry) {
    this.sourceViewerConfiguration = sourceViewerConfiguration;
    setPreferenceStore(preferenceStore);
    setTemplateStore(templateStore);
    setContextTypeRegistry(contextTypeRegistry);
}
 
/**
 * @param composite
 */
public SourceViewer createSourcePreview(Composite composite, IScriptFormatterFactory factory)
{
	IPreferenceStore generalTextStore = EditorsUI.getPreferenceStore();
	// TODO - Note that we pass the factory's preferences store and not calling to this.getPrefereceStore.
	// In case we decide to unify the preferences into the this plugin, we might need to change this.
	IPreferenceStore store = new ChainedPreferenceStore(new IPreferenceStore[] { factory.getPreferenceStore(),
			generalTextStore });
	SourceViewer fPreviewViewer = createPreviewViewer(composite, null, null, false, SWT.V_SCROLL | SWT.H_SCROLL
			| SWT.BORDER, store);
	if (fPreviewViewer == null)
	{
		return null;
	}
	SourceViewerConfiguration configuration = (SourceViewerConfiguration) factory
			.createSimpleSourceViewerConfiguration(fColorManager, store, null, false);
	fPreviewViewer.configure(configuration);
	if (fPreviewViewer.getTextWidget().getTabs() == 0)
	{
		fPreviewViewer.getTextWidget().setTabs(4);
	}
	new ScriptSourcePreviewerUpdater(fPreviewViewer, configuration, store);
	fPreviewViewer.setEditable(false);
	IDocument document = new Document();
	fPreviewViewer.setDocument(document);
	IPartitioningConfiguration partitioningConfiguration = (IPartitioningConfiguration) factory
			.getPartitioningConfiguration();
	CompositePartitionScanner partitionScanner = new CompositePartitionScanner(
			partitioningConfiguration.createSubPartitionScanner(), new NullSubPartitionScanner(),
			new NullPartitionerSwitchStrategy());
	IDocumentPartitioner partitioner = new ExtendedFastPartitioner(partitionScanner,
			partitioningConfiguration.getContentTypes());
	partitionScanner.setPartitioner((IExtendedPartitioner) partitioner);
	partitioner.connect(document);
	document.setDocumentPartitioner(partitioner);
	return fPreviewViewer;
}
 
源代码25 项目: APICloud-Studio   文件: CommonAutoIndentStrategy.java
protected CommonAutoIndentStrategy(String contentType, SourceViewerConfiguration configuration,
		ISourceViewer sourceViewer, IPreferenceStore prefStore)
{
	fContentType = contentType;
	fViewerConfiguration = configuration;
	fSourceViewer = sourceViewer;
	fPrefStore = prefStore;
}
 
源代码26 项目: APICloud-Studio   文件: AbstractThemeableEditor.java
/**
 * Added so we can set TM_TAB_SIZE for scripting.
 * 
 * @return
 */
public int getTabSize()
{
	SourceViewerConfiguration config = getSourceViewerConfiguration();
	if (config != null)
	{
		return config.getTabWidth(getSourceViewer());
	}
	return 4;
}
 
/**
 * Configures the toggle comment action.
 *
 * @since 3.4
 */
private void configureToggleCommentAction() {
	IAction action= getAction(IJavaEditorActionDefinitionIds.TOGGLE_COMMENT);
	if (action instanceof ToggleCommentAction) {
		ISourceViewer sourceViewer= getSourceViewer();
		SourceViewerConfiguration configuration= getSourceViewerConfiguration();
		((ToggleCommentAction)action).configure(sourceViewer, configuration);
	}
}
 
/**
 * Configures the toggle comment action
 *
 * @since 3.0
 */
private void configureToggleCommentAction() {
	IAction action= getAction("ToggleComment"); //$NON-NLS-1$
	if (action instanceof ToggleCommentAction) {
		ISourceViewer sourceViewer= getSourceViewer();
		SourceViewerConfiguration configuration= getSourceViewerConfiguration();
		((ToggleCommentAction)action).configure(sourceViewer, configuration);
	}
}
 
public void configure(ISourceViewer sourceViewer, SourceViewerConfiguration configuration) {
	fPrefixesMap= null;

	String[] types= configuration.getConfiguredContentTypes(sourceViewer);
	Map<String, String[]> prefixesMap= new HashMap<String, String[]>(types.length);
	for (int i= 0; i < types.length; i++) {
		String type= types[i];
		String[] prefixes= configuration.getDefaultPrefixes(sourceViewer, type);
		if (prefixes != null && prefixes.length > 0) {
			int emptyPrefixes= 0;
			for (int j= 0; j < prefixes.length; j++)
				if (prefixes[j].length() == 0)
					emptyPrefixes++;

			if (emptyPrefixes > 0) {
				String[] nonemptyPrefixes= new String[prefixes.length - emptyPrefixes];
				for (int j= 0, k= 0; j < prefixes.length; j++) {
					String prefix= prefixes[j];
					if (prefix.length() != 0) {
						nonemptyPrefixes[k]= prefix;
						k++;
					}
				}
				prefixes= nonemptyPrefixes;
			}

			prefixesMap.put(type, prefixes);
		}
	}
	fDocumentPartitioning= configuration.getConfiguredDocumentPartitioning(sourceViewer);
	fPrefixesMap= prefixesMap;
}
 
源代码30 项目: sarl   文件: SARLContentAssistFactory.java
@Override
protected void setContentAssistProcessor(ContentAssistant assistant, SourceViewerConfiguration configuration,
		ISourceViewer sourceViewer) {
	super.setContentAssistProcessor(assistant, configuration, sourceViewer);
	assistant.setContentAssistProcessor(this.javaDocContentAssistProcessor, TokenTypeToPartitionMapper.JAVA_DOC_PARTITION);
	assistant.setContentAssistProcessor(null, TerminalsTokenTypeToPartitionMapper.SL_COMMENT_PARTITION);
	assistant.setContentAssistProcessor(null, TerminalsTokenTypeToPartitionMapper.COMMENT_PARTITION);
}
 
 类所在包
 同包方法