blob: 1969e79fabe481ad2ab3b5d24ce5889196ebcec8 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2007 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.debug.ui.launchConfigurations;
import org.eclipse.dltk.core.PreferencesLookupDelegate;
import org.eclipse.dltk.debug.core.DLTKDebugPreferenceConstants;
import org.eclipse.dltk.debug.ui.launchConfigurations.MainLaunchConfigurationTab;
import org.eclipse.dltk.python.core.PythonNature;
import org.eclipse.dltk.python.internal.debug.PythonDebugPlugin;
/**
* Main launch configuration tab for python scripts
*/
public class PythonMainLaunchConfigurationTab extends
MainLaunchConfigurationTab {
public PythonMainLaunchConfigurationTab(String mode) {
super(mode);
}
/*
* @see org.eclipse.dltk.debug.ui.launchConfigurations.ScriptLaunchConfigurationTab#breakOnFirstLinePrefEnabled(org.eclipse.dltk.core.PreferencesLookupDelegate)
*/
@Override
protected boolean breakOnFirstLinePrefEnabled(
PreferencesLookupDelegate delegate) {
return delegate.getBoolean(PythonDebugPlugin.PLUGIN_ID,
DLTKDebugPreferenceConstants.PREF_DBGP_BREAK_ON_FIRST_LINE);
}
/*
* @see org.eclipse.dltk.debug.ui.launchConfigurations.ScriptLaunchConfigurationTab#dbpgLoggingPrefEnabled(org.eclipse.dltk.core.PreferencesLookupDelegate)
*/
@Override
protected boolean dbpgLoggingPrefEnabled(PreferencesLookupDelegate delegate) {
return delegate.getBoolean(PythonDebugPlugin.PLUGIN_ID,
DLTKDebugPreferenceConstants.PREF_DBGP_ENABLE_LOGGING);
}
/**
* @since 2.0
*/
@Override
public String getNatureID() {
return PythonNature.NATURE_ID;
}
}