|
From: David C. <dc...@us...> - 2005-09-03 19:05:10
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27328/src/org/rubypeople/rdt/core Modified Files: RubyCore.java IRubyProject.java Log Message: * Added TaskList to views associated with Ruby Perspective * Be sure Ruby projects have a RubyBuilder when plugin is loaded. * 'test tool' for odd parser bug. Index: RubyCore.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyCore.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** RubyCore.java 29 Jul 2005 23:58:14 -0000 1.9 --- RubyCore.java 3 Sep 2005 19:05:02 -0000 1.10 *************** *** 189,192 **** --- 189,204 ---- } + public static boolean upgradeOldProjects() throws CoreException { + boolean projectUpgraded = false; + IProject[] projects = RubyCore.getRubyProjects(); + for (int i = 0; i < projects.length; i++) { + IRubyProject rubyProject = RubyModelManager.getRubyModelManager().getRubyModel().getRubyProject(projects[i]); + if (rubyProject.upgrade()) { + projectUpgraded = true; + } + } + return projectUpgraded; + } + /* * Initializes the default preferences settings for this plug-in. Index: IRubyProject.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/IRubyProject.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** IRubyProject.java 12 Mar 2005 15:30:03 -0000 1.3 --- IRubyProject.java 3 Sep 2005 19:05:02 -0000 1.4 *************** *** 72,74 **** --- 72,76 ---- IType findType(String fullyQualifiedName) throws RubyModelException; + public boolean upgrade() throws CoreException; + } \ No newline at end of file |