Update of /cvsroot/pydev/org.python.pydev.debug/src_console/org/python/pydev/debug/newconsole/prefs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8125/src_console/org/python/pydev/debug/newconsole/prefs
Modified Files:
InteractiveConsolePrefs.java
Log Message:
Maximum number of attempts to connect to the shell initially raised (and can now be configured).
Index: InteractiveConsolePrefs.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev.debug/src_console/org/python/pydev/debug/newconsole/prefs/InteractiveConsolePrefs.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** InteractiveConsolePrefs.java 15 Jun 2008 01:25:35 -0000 1.3
--- InteractiveConsolePrefs.java 15 Jun 2008 19:01:32 -0000 1.4
***************
*** 3,6 ****
--- 3,7 ----
import org.eclipse.jface.preference.ColorFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
+ import org.eclipse.jface.preference.IntegerFieldEditor;
import org.eclipse.jface.preference.StringFieldEditor;
import org.eclipse.swt.widgets.Composite;
***************
*** 39,42 ****
--- 40,46 ----
addField(new StringFieldEditor(PydevConsoleConstants.INTERACTIVE_CONSOLE_VM_ARGS,
"Vm Args for jython\n(used only on external\nprocess option):", p));
+
+ addField(new IntegerFieldEditor(PydevConsoleConstants.INTERACTIVE_CONSOLE_MAXIMUM_CONNECTION_ATTEMPTS,
+ "Maximum connection attempts\nfor initial communication:", p));
}
***************
*** 46,48 ****
--- 50,61 ----
}
+ public static int getMaximumAttempts() {
+ PydevDebugPlugin plugin = PydevDebugPlugin.getDefault();
+ if(plugin != null){
+ return plugin.getPreferenceStore().getInt(PydevConsoleConstants.INTERACTIVE_CONSOLE_MAXIMUM_CONNECTION_ATTEMPTS);
+ }else{
+ return PydevConsoleConstants.DEFAULT_INTERACTIVE_CONSOLE_MAXIMUM_CONNECTION_ATTEMPTS;
+ }
+ }
+
}
|