/*******************************************************************************
* Copyright (c) 2010 Bruno Medeiros and other Contributors.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Bruno Medeiros - initial API and implementation
*******************************************************************************/
package melnorme.lang.ide.ui.text;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.ui.texteditor.ITextEditor;
import melnorme.lang.ide.core.text.ISourceBufferExt;
import melnorme.lang.ide.ui.text.completion.LangContentAssistProcessor.ContentAssistCategoriesBuilder;
import melnorme.lang.tooling.LANG_SPECIFIC;
import mmrnmhrm.ui.editor.codeassist.DeeCompletionProposalComputer;
@LANG_SPECIFIC
public class LangSourceViewerConfiguration extends AbstractLangSourceViewerConfiguration {
public LangSourceViewerConfiguration(IPreferenceStore preferenceStore, ISourceBufferExt sourceBuffer,
ITextEditor editor) {
super(preferenceStore, sourceBuffer, editor);
}
@Override
protected String getToggleCommentPrefix() {
return "//";
}
// ================ Content Assist
@Override
protected ContentAssistCategoriesBuilder getContentAssistCategoriesProvider() {
return new DeeContentAssistCategoriesBuilder();
}
public static class DeeContentAssistCategoriesBuilder extends ContentAssistCategoriesBuilder {
@Override
protected DeeCompletionProposalComputer createDefaultSymbolsProposalComputer() {
return new DeeCompletionProposalComputer();
}
}
}