blob: 78b4bcca44e016c55df24c96f8103776b58c6d0a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corporation and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
*******************************************************************************/
package org.eclipse.dltk.python.internal.ui.editor;
import org.eclipse.core.filebuffers.IDocumentSetupParticipant;
import org.eclipse.dltk.python.internal.ui.PythonUI;
import org.eclipse.dltk.python.internal.ui.text.PythonTextTools;
import org.eclipse.dltk.python.ui.text.IPythonPartitions;
import org.eclipse.jface.text.IDocument;
/**
* The document setup participant for Python.
*/
public class PythonDocumentSetupParticipant implements
IDocumentSetupParticipant {
public PythonDocumentSetupParticipant() {
}
@Override
public void setup(IDocument document) {
PythonTextTools tools = PythonUI.getDefault().getTextTools();
tools.setupDocumentPartitioner(document,
IPythonPartitions.PYTHON_PARTITIONING);
}
}