Update of /cvsroot/pydev/org.python.pydev.debug/src/org/python/pydev/debug/ui/launching
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12190/src/org/python/pydev/debug/ui/launching
Modified Files:
PythonRunner.java
Log Message:
Backwards support for Eclipse 3.2.
Index: PythonRunner.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev.debug/src/org/python/pydev/debug/ui/launching/PythonRunner.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** PythonRunner.java 21 May 2008 01:38:15 -0000 1.36
--- PythonRunner.java 28 Jun 2008 12:35:43 -0000 1.37
***************
*** 20,23 ****
--- 20,24 ----
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.model.IProcess;
+ import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Display;
***************
*** 210,214 ****
*/
private static Process createProcess(ILaunch launch, String[] envp, String[] cmdLine, File workingDirectory) throws CoreException {
! String encoding = launch.getAttribute(DebugPlugin.ATTR_CONSOLE_ENCODING);
if(encoding != null && encoding.trim().length() > 0){
String[] s = new String[envp.length+1];
--- 211,216 ----
*/
private static Process createProcess(ILaunch launch, String[] envp, String[] cmdLine, File workingDirectory) throws CoreException {
! //Not using DebugPlugin.ATTR_CONSOLE_ENCODING to provide backward compatibility for eclipse 3.2
! String encoding = launch.getAttribute(IDebugUIConstants.ATTR_CONSOLE_ENCODING);
if(encoding != null && encoding.trim().length() > 0){
String[] s = new String[envp.length+1];
|