|
From: Christopher W. <caw...@us...> - 2006-03-29 22:45:27
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29746a/src/org/rubypeople/rdt/core Modified Files: RubyCore.java Log Message: use single source of record for ruby like files Index: RubyCore.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyCore.java,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** RubyCore.java 25 Mar 2006 02:27:36 -0000 1.31 --- RubyCore.java 29 Mar 2006 22:45:23 -0000 1.32 *************** *** 51,54 **** --- 51,55 ---- import org.rubypeople.rdt.internal.core.symbols.ISymbolFinder; import org.rubypeople.rdt.internal.core.symbols.SymbolIndex; + import org.rubypeople.rdt.internal.core.util.Util; public class RubyCore extends Plugin { *************** *** 365,375 **** project = create(file.getProject()); } ! // FIXME Use the associations to determine if we should create the file! ! for (int i = 0; i < IRubyScript.EXTENSIONS.length; i++) { ! if (IRubyScript.EXTENSIONS[i].equalsIgnoreCase(file.getFileExtension())) { ! RubyScript script = new RubyScript((RubyProject) project, file, file.getName(), ! DefaultWorkingCopyOwner.PRIMARY); ! return script; ! } } return null; --- 366,372 ---- project = create(file.getProject()); } ! if(isRubyLikeFileName(file.getName())) { ! return new RubyScript((RubyProject) project, file, file.getName(), ! DefaultWorkingCopyOwner.PRIMARY); } return null; *************** *** 614,618 **** public static boolean isRubyLikeFileName(String name) { ! return name.endsWith(".rb") || name.endsWith(".rbw"); } } \ No newline at end of file --- 611,615 ---- public static boolean isRubyLikeFileName(String name) { ! return Util.isRubyLikeFileName(name); } } \ No newline at end of file |