blob: 5b126464cf2d9d3883f271166ac598232991a7e3 [file] [log] [blame]
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.RemoteLaunchConfigurationTab;
import org.eclipse.dltk.python.core.PythonNature;
import org.eclipse.dltk.python.internal.debug.PythonDebugPlugin;
/**
* 'Connect' launch configuration tab for remote python scripts
*/
public class PythonRemoteLaunchConfigurationTab extends
RemoteLaunchConfigurationTab {
public PythonRemoteLaunchConfigurationTab(String mode) {
super(mode);
}
@Override
protected boolean breakOnFirstLinePrefEnabled(
PreferencesLookupDelegate delegate) {
return delegate.getBoolean(PythonDebugPlugin.PLUGIN_ID,
DLTKDebugPreferenceConstants.PREF_DBGP_BREAK_ON_FIRST_LINE);
}
@Override
protected boolean dbpgLoggingPrefEnabled(PreferencesLookupDelegate delegate) {
return delegate.getBoolean(PythonDebugPlugin.PLUGIN_ID,
DLTKDebugPreferenceConstants.PREF_DBGP_ENABLE_LOGGING);
}
@Override
protected String getNatureID() {
return PythonNature.NATURE_ID;
}
}