|
From: Christopher W. <caw...@us...> - 2005-11-29 19:38:12
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4508/src/org/rubypeople/rdt/internal/core Modified Files: RubyScript.java Log Message: define and implement a getTypes method Index: RubyScript.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyScript.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** RubyScript.java 1 Oct 2005 23:01:01 -0000 1.16 --- RubyScript.java 29 Nov 2005 19:38:00 -0000 1.17 *************** *** 29,32 **** --- 29,33 ---- import java.io.IOException; import java.io.InputStreamReader; + import java.util.ArrayList; import java.util.Map; *************** *** 580,582 **** --- 581,593 ---- return new ImportContainer(this); } + + /** + * @see ICompilationUnit#getTypes() + */ + public IType[] getTypes() throws RubyModelException { + ArrayList list = getChildrenOfType(TYPE); + IType[] array= new IType[list.size()]; + list.toArray(array); + return array; + } } \ No newline at end of file |