[Pydev-cvs] org.python.pydev/tests/org/python/pydev/ui InterpreterEditorTest.java,1.9,1.10
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2005-08-23 18:22:47
|
Update of /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11860/tests/org/python/pydev/ui Modified Files: InterpreterEditorTest.java Log Message: Index: InterpreterEditorTest.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/ui/InterpreterEditorTest.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** InterpreterEditorTest.java 9 Aug 2005 01:22:27 -0000 1.9 --- InterpreterEditorTest.java 23 Aug 2005 18:22:38 -0000 1.10 *************** *** 13,18 **** --- 13,21 ---- import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; + import org.python.pydev.editor.codecompletion.revisited.TestDependent; import org.python.pydev.plugin.BundleInfo; + import org.python.pydev.ui.interpreters.PythonInterpreterManager; import org.python.pydev.ui.pythonpathconf.AbstractInterpreterEditor; + import org.python.pydev.ui.pythonpathconf.PythonInterpreterEditor; /** *************** *** 37,46 **** protected void setUp() throws Exception { super.setUp(); BundleInfo.setBundleInfo(new BundleInfoStub()); try { ! display = new Display(); ! createSShell(); } catch (UnsatisfiedLinkError e) { //ok, ignore it. } } --- 40,53 ---- protected void setUp() throws Exception { super.setUp(); + AbstractInterpreterEditor.USE_ICONS = false; BundleInfo.setBundleInfo(new BundleInfoStub()); try { ! if(TestDependent.HAS_SWT_ON_PATH){ ! display = new Display(); ! createSShell(); ! } } catch (UnsatisfiedLinkError e) { //ok, ignore it. + e.printStackTrace(); } } *************** *** 51,54 **** --- 58,62 ---- protected void tearDown() throws Exception { super.tearDown(); + AbstractInterpreterEditor.USE_ICONS = true; BundleInfo.setBundleInfo(null); } *************** *** 58,65 **** */ protected void goToManual(Display display) { ! // while (!shell.isDisposed()) { ! // if (!display.readAndDispatch()) ! // display.sleep(); ! // } System.out.println("finishing..."); display.dispose(); --- 66,73 ---- */ protected void goToManual(Display display) { ! while (!shell.isDisposed()) { ! if (!display.readAndDispatch()) ! display.sleep(); ! } System.out.println("finishing..."); display.dispose(); *************** *** 72,81 **** public void testIt() throws MalformedURLException { if(display != null){ ! shell.open(); ! ! // InterpreterEditor editor = new InterpreterEditor("label", shell, new InterpreterManager(new Preferences())); shell.pack(); shell.setSize(new org.eclipse.swt.graphics.Point(300, 300)); ! goToManual(display); } } --- 80,88 ---- public void testIt() throws MalformedURLException { if(display != null){ ! PythonInterpreterEditor editor = new PythonInterpreterEditor("label", shell, new PythonInterpreterManager(new Preferences())); shell.pack(); shell.setSize(new org.eclipse.swt.graphics.Point(300, 300)); ! shell.open(); ! //goToManual(display); } } |