[Pydev-cvs] org.python.pydev/tests/org/python/pydev/plugin/nature SaveFileWithoutNatureTestWorkbenc
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-08-06 16:23:11
|
Update of /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/plugin/nature In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26629/tests/org/python/pydev/plugin/nature Modified Files: SaveFileWithoutNatureTestWorkbench.java Log Message: - Refactoring the source locator - Linxing working with compare editor both ways Index: SaveFileWithoutNatureTestWorkbench.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/plugin/nature/SaveFileWithoutNatureTestWorkbench.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SaveFileWithoutNatureTestWorkbench.java 31 Jul 2008 01:47:36 -0000 1.1 --- SaveFileWithoutNatureTestWorkbench.java 6 Aug 2008 16:23:19 -0000 1.2 *************** *** 10,14 **** import org.python.pydev.editor.PyEdit; import org.python.pydev.editor.codecompletion.revisited.javaintegration.AbstractJavaIntegrationTestWorkbench; ! import org.python.pydev.plugin.PydevPlugin; public class SaveFileWithoutNatureTestWorkbench extends AbstractJavaIntegrationTestWorkbench{ --- 10,14 ---- import org.python.pydev.editor.PyEdit; import org.python.pydev.editor.codecompletion.revisited.javaintegration.AbstractJavaIntegrationTestWorkbench; ! import org.python.pydev.editorinput.PyOpenEditor; public class SaveFileWithoutNatureTestWorkbench extends AbstractJavaIntegrationTestWorkbench{ *************** *** 32,36 **** project.refreshLocal(IResource.DEPTH_INFINITE, monitor); try { ! editor = (PyEdit) PydevPlugin.doOpenEditor(myFile, true); editor.getDocument().set(newContents); editor.doSave(monitor); --- 32,36 ---- project.refreshLocal(IResource.DEPTH_INFINITE, monitor); try { ! editor = (PyEdit) PyOpenEditor.doOpenEditor(myFile); editor.getDocument().set(newContents); editor.doSave(monitor); |