[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/refactoring PyRefactoring.java,1.5,1.6
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2004-10-08 16:39:24
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/refactoring In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11038/src/org/python/pydev/editor/refactoring Modified Files: PyRefactoring.java Log Message: Index: PyRefactoring.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/refactoring/PyRefactoring.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PyRefactoring.java 20 Sep 2004 19:08:43 -0000 1.5 --- PyRefactoring.java 8 Oct 2004 16:38:43 -0000 1.6 *************** *** 48,51 **** --- 48,53 ---- public static final int REFACTOR_RESULT = 1; + private Object lastRefactorResults; + public synchronized static PyRefactoring getPyRefactoring(){ *************** *** 207,216 **** List l = refactorResultAsList(string); ! for (Iterator iter = this.propChangeListeners.iterator(); iter.hasNext();) { IPropertyListener element = (IPropertyListener) iter.next(); ! element.propertyChanged(new Object[]{this, l}, REFACTOR_RESULT); } } --- 209,227 ---- List l = refactorResultAsList(string); ! ! Object o=null; ! for (Iterator iter = this.propChangeListeners.iterator(); iter.hasNext();) { IPropertyListener element = (IPropertyListener) iter.next(); ! o = new Object[]{this, l}; ! element.propertyChanged(o, REFACTOR_RESULT); } + + this.lastRefactorResults = o; } + + + + *************** *** 247,249 **** --- 258,274 ---- } + /** + * @param lastRefactorResults The lastRefactorResults to set. + */ + public void setLastRefactorResults(Object lastRefactorResults) { + this.lastRefactorResults = lastRefactorResults; + } + + /** + * @return Returns the lastRefactorResults. + */ + public Object getLastRefactorResults() { + return lastRefactorResults; + } + } |