blob: 48cffdf06825bc678c42dd113c5e4e50f85e07a6 [file] [log] [blame]
package org.eclipse.dltk.examples.python.internal.ui.editor;
import org.eclipse.dltk.examples.internal.python.core.ExamplePythonNature;
import org.eclipse.dltk.examples.internal.python.core.PythonCorePlugin;
import org.eclipse.dltk.ui.text.completion.CompletionProposalLabelProvider;
import org.eclipse.dltk.ui.text.completion.ScriptCompletionProcessor;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.text.contentassist.ContentAssistant;
import org.eclipse.ui.IEditorPart;
public class ExamplePythonCompletionProcessor extends ScriptCompletionProcessor {
public ExamplePythonCompletionProcessor(IEditorPart editor,
ContentAssistant assistant, String partition) {
super(editor, assistant, partition);
}
protected String getNatureId() {
return ExamplePythonNature.PYTHON_NATURE;
}
protected CompletionProposalLabelProvider getProposalLabelProvider() {
return new CompletionProposalLabelProvider();
}
protected IPreferenceStore getPreferenceStore() {
return PythonCorePlugin.getDefault().getPreferenceStore();
}
}