| /******************************************************************************* |
| * Copyright (c) 2005, 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.preferences; |
| |
| import org.eclipse.dltk.core.IDLTKLanguageToolkit; |
| import org.eclipse.dltk.python.core.PythonLanguageToolkit; |
| import org.eclipse.dltk.ui.preferences.BuildPathsPropertyPage; |
| import org.eclipse.dltk.ui.util.BusyIndicatorRunnableContext; |
| import org.eclipse.dltk.ui.wizards.BuildpathsBlock; |
| import org.eclipse.ui.IWorkbenchPropertyPage; |
| import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer; |
| |
| public class PythonBuildPathPropertyPage extends BuildPathsPropertyPage |
| implements IWorkbenchPropertyPage { |
| public PythonBuildPathPropertyPage() { |
| } |
| |
| @Override |
| protected BuildpathsBlock createBuildPathBlock( |
| IWorkbenchPreferenceContainer pageContainer) { |
| return new PythonBuildPathsBlock(new BusyIndicatorRunnableContext(), |
| this, getSettings().getInt(INDEX), false, pageContainer); |
| } |
| |
| @Override |
| public IDLTKLanguageToolkit getLanguageToolkit() { |
| return PythonLanguageToolkit.getDefault(); |
| } |
| } |