[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor PythonCompletionProcessor.java,1.9,1.10
Brought to you by:
fabioz
From: Dana M. <dan...@us...> - 2004-08-10 01:37:08
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4612/src/org/python/pydev/editor Modified Files: PythonCompletionProcessor.java Log Message: reomved all debug System.out.printlna Index: PythonCompletionProcessor.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/PythonCompletionProcessor.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** PythonCompletionProcessor.java 9 Aug 2004 22:30:58 -0000 1.9 --- PythonCompletionProcessor.java 10 Aug 2004 01:36:59 -0000 1.10 *************** *** 65,69 **** List propList = new ArrayList(); IDocument doc = viewer.getDocument(); ! // System.out.println("The document:"+doc.get()); Point selectedRange = viewer.getSelectedRange(); // there may not be a selected range --- 65,69 ---- List propList = new ArrayList(); IDocument doc = viewer.getDocument(); ! //System.out.println("The document:"+doc.get()); Point selectedRange = viewer.getSelectedRange(); // there may not be a selected range *************** *** 72,84 **** String activationToken = this .getActivationToken(theDoc, documentOffset); ! System.out.println("DBG:theActivationToken: " + activationToken); theDoc = partialDocument(theDoc, documentOffset); java.lang.String qualifier = getQualifier(doc, documentOffset); int qlen = qualifier.length(); theDoc += "\n"+activationToken; ! System.out.println("Interpreted doc: " + theDoc); ! // System.out.println("activationToken: " + activationToken); Vector theList = autoComplete(theDoc, activationToken); ! System.out.println("DBG:vector:" + theList); for (Iterator iter = theList.iterator(); iter.hasNext();) { --- 72,84 ---- String activationToken = this .getActivationToken(theDoc, documentOffset); ! //System.out.println("DBG:theActivationToken: " + activationToken); theDoc = partialDocument(theDoc, documentOffset); java.lang.String qualifier = getQualifier(doc, documentOffset); int qlen = qualifier.length(); theDoc += "\n"+activationToken; ! //System.out.println("Interpreted doc: " + theDoc); ! //System.out.println("activationToken: " + activationToken); Vector theList = autoComplete(theDoc, activationToken); ! //System.out.println("DBG:vector:" + theList); for (Iterator iter = theList.iterator(); iter.hasNext();) { *************** *** 104,114 **** String s = new String(); File tmp = null; ! System.out.println("DBG:autoComplete"); try { // get the inspect.py file from the package: s = getAutoCompleteScript(); ! System.out.println("DBG:getAutoCompleteScript() returns" + s); } catch (CoreException e) { ! System.out.println("DBG:getAutoCompleteScript() fails " + e); e.printStackTrace(); } --- 104,114 ---- String s = new String(); File tmp = null; ! //System.out.println("DBG:autoComplete"); try { // get the inspect.py file from the package: s = getAutoCompleteScript(); ! //System.out.println("DBG:getAutoCompleteScript() returns" + s); } catch (CoreException e) { ! //System.out.println("DBG:getAutoCompleteScript() fails " + e); e.printStackTrace(); } *************** *** 124,128 **** String ss = new String("python " + s + " " + tmp.getAbsolutePath()); ! System.out.println("DBG:exec string " + ss); Process p = Runtime.getRuntime().exec(ss); BufferedReader in = new BufferedReader(new InputStreamReader(p --- 124,128 ---- String ss = new String("python " + s + " " + tmp.getAbsolutePath()); ! //System.out.println("DBG:exec string " + ss); Process p = Runtime.getRuntime().exec(ss); BufferedReader in = new BufferedReader(new InputStreamReader(p *************** *** 132,136 **** if(!str.startsWith("tip: ")) continue; str = str.substring(5); ! System.out.println("DBG:autoComplete:output: " + str); theList.add(str); } --- 132,136 ---- if(!str.startsWith("tip: ")) continue; str = str.substring(5); ! //System.out.println("DBG:autoComplete:output: " + str); theList.add(str); } *************** *** 141,145 **** while ((str = eIn.readLine()) != null) { ! System.out.println("error output: " + str); } p.waitFor(); --- 141,145 ---- while ((str = eIn.readLine()) != null) { ! //System.out.println("error output: " + str); } p.waitFor(); *************** *** 149,153 **** } catch (InterruptedException e) { // TODO Auto-generated catch block ! System.out.println("Interrupted call: error output: "); e.printStackTrace(); } --- 149,153 ---- } catch (InterruptedException e) { // TODO Auto-generated catch block ! //System.out.println("Interrupted call: error output: "); e.printStackTrace(); } *************** *** 179,188 **** public static String getAutoCompleteScript() throws CoreException { String targetExec = "tipper.py"; ! System.out.println("DBG:getAutoCompleteScript();"); IPath relative = new Path("PySrc").addTrailingSeparator().append( targetExec); ! System.out.println("DBG:getAutoCompleteScript(); relative " + relative); Bundle bundle = PydevPlugin.getDefault().getBundle(); ! System.out.println("DBG:getAutoCompleteScript(); bundle " + bundle); URL bundleURL = Platform.find(bundle, relative); URL fileURL; --- 179,188 ---- public static String getAutoCompleteScript() throws CoreException { String targetExec = "tipper.py"; ! //System.out.println("DBG:getAutoCompleteScript();"); IPath relative = new Path("PySrc").addTrailingSeparator().append( targetExec); ! //System.out.println("DBG:getAutoCompleteScript(); relative " + relative); Bundle bundle = PydevPlugin.getDefault().getBundle(); ! //System.out.println("DBG:getAutoCompleteScript(); bundle " + bundle); URL bundleURL = Platform.find(bundle, relative); URL fileURL; *************** *** 190,195 **** fileURL = Platform.asLocalURL(bundleURL); String filePath = new File(fileURL.getPath()).getAbsolutePath(); ! System.out.println("DBG:getAutoCompleteScript();filePath " ! + filePath); return filePath; } catch (IOException e) { --- 190,194 ---- fileURL = Platform.asLocalURL(bundleURL); String filePath = new File(fileURL.getPath()).getAbsolutePath(); ! //System.out.println("DBG:getAutoCompleteScript();filePath " + filePath); return filePath; } catch (IOException e) { |