[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/codecompletion PyCodeCompletionPreference
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2006-09-25 00:03:10
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14170/src/org/python/pydev/editor/codecompletion Modified Files: PyCodeCompletionPreferencesPage.java PyCodeCompletion.java Log Message: Added code-completion debugger option Index: PyCodeCompletionPreferencesPage.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion/PyCodeCompletionPreferencesPage.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** PyCodeCompletionPreferencesPage.java 1 Jul 2006 21:53:27 -0000 1.21 --- PyCodeCompletionPreferencesPage.java 25 Sep 2006 00:03:07 -0000 1.22 *************** *** 41,44 **** --- 41,47 ---- public static final boolean DEFAULT_AUTOCOMPLETE_ON_PAR = false; + public static final String DEBUG_CODE_COMPLETION = "DEBUG_CODE_COMPLETION"; + public static final boolean DEFAULT_DEBUG_CODE_COMPLETION = false; + /** */ *************** *** 74,78 **** --- 77,92 ---- AUTOCOMPLETE_ON_PAR, "Autocomplete on ','?", p)); + addField(new BooleanFieldEditor( + DEBUG_CODE_COMPLETION, "Debug code completion?.", p)); + } + + @Override + public boolean performOk() { + boolean ret = super.performOk(); + PyCodeCompletion.DEBUG_CODE_COMPLETION = isToDebugCodeCompletion(); + return ret; + } + /* *************** *** 108,111 **** --- 122,132 ---- return PydevPrefs.getPreferences().getBoolean(PyCodeCompletionPreferencesPage.USE_AUTOCOMPLETE); } + + public static boolean isToDebugCodeCompletion() { + if(PydevPlugin.getDefault() == null){ + return false; + } + return PydevPrefs.getPreferences().getBoolean(PyCodeCompletionPreferencesPage.DEBUG_CODE_COMPLETION); + } public static int getAutocompleteDelay() { Index: PyCodeCompletion.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion/PyCodeCompletion.java,v retrieving revision 1.83 retrieving revision 1.84 diff -C2 -d -r1.83 -r1.84 *** PyCodeCompletion.java 24 Sep 2006 01:03:16 -0000 1.83 --- PyCodeCompletion.java 25 Sep 2006 00:03:07 -0000 1.84 *************** *** 66,70 **** * for pydev in linux: https://sourceforge.net/tracker/index.php?func=detail&aid=1509582&group_id=85796&atid=577329) */ ! public static final boolean DEBUG_CODE_COMPLETION = false; /** --- 66,70 ---- * for pydev in linux: https://sourceforge.net/tracker/index.php?func=detail&aid=1509582&group_id=85796&atid=577329) */ ! public static boolean DEBUG_CODE_COMPLETION = PyCodeCompletionPreferencesPage.isToDebugCodeCompletion(); /** |