[Pydev-cvs] org.python.pydev/src/org/python/pydev/plugin/nature PythonPathNature.java, 1.28, 1.29
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-06-15 17:39:12
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/plugin/nature In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29931/src/org/python/pydev/plugin/nature Modified Files: PythonPathNature.java Log Message: Minor Index: PythonPathNature.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/plugin/nature/PythonPathNature.java,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** PythonPathNature.java 15 Jun 2008 00:45:56 -0000 1.28 --- PythonPathNature.java 15 Jun 2008 17:39:16 -0000 1.29 *************** *** 171,187 **** * @throws CoreException */ private String getContributedSourcePath() throws CoreException { FastStringBuffer buff = new FastStringBuffer(); ! synchronized (buff) { ! List contributors = ExtensionHelper.getParticipants("org.python.pydev.pydev_pythonpath_contrib"); ! for (Object contribObj : contributors) { ! IPythonPathContributor contributor = (IPythonPathContributor) contribObj; ! String additionalPythonPath = contributor.getAdditionalPythonPath(project); ! if (additionalPythonPath != null && additionalPythonPath.trim().length() > 0) { ! if (buff.length() > 0){ ! buff.append("|"); ! } ! buff.append(additionalPythonPath.trim()); } } } --- 171,185 ---- * @throws CoreException */ + @SuppressWarnings("unchecked") private String getContributedSourcePath() throws CoreException { FastStringBuffer buff = new FastStringBuffer(); ! List<IPythonPathContributor> contributors = ExtensionHelper.getParticipants("org.python.pydev.pydev_pythonpath_contrib"); ! for (IPythonPathContributor contributor : contributors) { ! String additionalPythonPath = contributor.getAdditionalPythonPath(project); ! if (additionalPythonPath != null && additionalPythonPath.trim().length() > 0) { ! if (buff.length() > 0){ ! buff.append("|"); } + buff.append(additionalPythonPath.trim()); } } |