|
From: David C. <dc...@us...> - 2005-09-03 19:05:10
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27328/src/org/rubypeople/rdt/internal/core Modified Files: RubyProject.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: RubyProject.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyProject.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** RubyProject.java 12 Mar 2005 15:30:03 -0000 1.11 --- RubyProject.java 3 Sep 2005 19:05:02 -0000 1.12 *************** *** 69,81 **** } /** * Adds a builder to the build spec for the given project. */ ! protected void addToBuildSpec(String builderID) throws CoreException { IProjectDescription description = this.project.getDescription(); ! int javaCommandIndex = getRubyCommandIndex(description.getBuildSpec()); ! if (javaCommandIndex == -1) { // Add a Java command to the build spec --- 69,84 ---- } + public boolean upgrade() throws CoreException { + return addToBuildSpec(RubyCore.BUILDER_ID); + } /** * Adds a builder to the build spec for the given project. */ ! protected boolean addToBuildSpec(String builderID) throws CoreException { IProjectDescription description = this.project.getDescription(); ! int commandIndex = getRubyCommandIndex(description.getBuildSpec()); ! if (commandIndex == -1) { // Add a Java command to the build spec *************** *** 83,87 **** --- 86,92 ---- command.setBuilderName(builderID); setRubyCommand(description, command); + return true; } + return false; } |