|
From: <caw...@us...> - 2007-05-08 14:12:09
|
Revision: 2446
http://svn.sourceforge.net/rubyeclipse/?rev=2446&view=rev
Author: cawilliams
Date: 2007-05-08 07:12:07 -0700 (Tue, 08 May 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyConventions.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyConventions.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyConventions.java 2007-05-08 14:11:50 UTC (rev 2445)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyConventions.java 2007-05-08 14:12:07 UTC (rev 2446)
@@ -60,9 +60,9 @@
* field name.
*
* @param id
- * the Java identifier
+ * the Ruby identifier
* @return a status object with code <code>IStatus.OK</code> if the given
- * identifier is a valid Java identifier, otherwise a status object
+ * identifier is a valid Ruby identifier, otherwise a status object
* indicating what is wrong with the identifier
*/
public static IStatus validateIdentifier(String id) {
@@ -112,4 +112,8 @@
public static IRubyModelStatus validateLoadpath(IRubyProject rubyProject, ILoadpathEntry[] rawCLoadpath, IPath projectOutputLocation) {
return LoadpathEntry.validateLoadpath(rubyProject, rawCLoadpath, projectOutputLocation);
}
+
+ public static IStatus validateMethodName(String methodName) {
+ return validateIdentifier(methodName);
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|