Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/views
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10767/src/org/python/pydev/views
Modified Files:
PyRefactorView.java
Log Message:
Index: PyRefactorView.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/views/PyRefactorView.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PyRefactorView.java 20 Sep 2004 19:08:43 -0000 1.1
--- PyRefactorView.java 8 Oct 2004 16:37:41 -0000 1.2
***************
*** 103,106 ****
--- 103,110 ----
PyRefactoring.getPyRefactoring().addPropertyListener(this);
+
+ //now try to load the last results.
+ this.propertyChanged(PyRefactoring.getPyRefactoring().getLastRefactorResults(), PyRefactoring.REFACTOR_RESULT);
+ this.refresh();
}
***************
*** 134,138 ****
--- 138,151 ----
public void propertyChanged(Object source, int propId) {
+ if (source == null){
+ return;
+ }
+
Object[] sources = (Object[]) source;
+
+ if(sources[0]== null || sources[1]== null){
+ return;
+ }
+
if (sources[0] == PyRefactoring.getPyRefactoring()
&& propId == PyRefactoring.REFACTOR_RESULT) {
|