[Pydev-cvs] org.python.pydev/src/org/python/pydev/ui/wizards/files PythonPackageWizard.java, 1.6, 1
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-05-18 20:02:23
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/ui/wizards/files In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28475/src/org/python/pydev/ui/wizards/files Modified Files: PythonPackageWizard.java Log Message: Created structure to help dealing with imports in files, even if the file does not have a correct AST Refactor: Moved methods from FullRepIterable to StringUtils Index: PythonPackageWizard.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/ui/wizards/files/PythonPackageWizard.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** PythonPackageWizard.java 22 Oct 2007 00:28:51 -0000 1.6 --- PythonPackageWizard.java 18 May 2008 20:02:16 -0000 1.7 *************** *** 12,16 **** import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.Path; ! import org.python.pydev.core.FullRepIterable; import org.python.pydev.ui.filetypes.FileTypesPreferencesPage; --- 12,16 ---- import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.Path; ! import org.python.pydev.core.docutils.StringUtils; import org.python.pydev.ui.filetypes.FileTypesPreferencesPage; *************** *** 49,53 **** IContainer parent = validatedSourceFolder; String validatedName = filePage.getValidatedName(); ! String[] packageParts = FullRepIterable.dotSplit(validatedName); for (String packagePart : packageParts) { IFolder folder = parent.getFolder(new Path(packagePart)); --- 49,53 ---- IContainer parent = validatedSourceFolder; String validatedName = filePage.getValidatedName(); ! String[] packageParts = StringUtils.dotSplit(validatedName); for (String packagePart : packageParts) { IFolder folder = parent.getFolder(new Path(packagePart)); |