| /******************************************************************************* |
| * Copyright (c) 2005, 2007 IBM Corporation and others. |
| * 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 |
| * |
| |
| *******************************************************************************/ |
| package org.eclipse.dltk.javascript.internal.ui.preferences; |
| |
| import org.eclipse.dltk.core.IDLTKLanguageToolkit; |
| import org.eclipse.dltk.javascript.core.JavaScriptLanguageToolkit; |
| 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 JavaScriptBuildPathPropertyPage extends BuildPathsPropertyPage |
| implements IWorkbenchPropertyPage { |
| public JavaScriptBuildPathPropertyPage() { |
| } |
| |
| protected BuildpathsBlock createBuildPathBlock( |
| IWorkbenchPreferenceContainer pageContainer) { |
| return new JavascriptBuildPathsBlock( |
| new BusyIndicatorRunnableContext(), this, getSettings().getInt( |
| INDEX), false, pageContainer); |
| } |
| |
| public IDLTKLanguageToolkit getLanguageToolkit() { |
| return JavaScriptLanguageToolkit.getDefault(); |
| } |
| } |