|
From: <caw...@us...> - 2007-05-08 14:11:51
|
Revision: 2445
http://svn.sourceforge.net/rubyeclipse/?rev=2445&view=rev
Author: cawilliams
Date: 2007-05-08 07:11:50 -0700 (Tue, 08 May 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/IRubyProject.java
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyProject.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/IRubyProject.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/IRubyProject.java 2007-05-08 14:08:33 UTC (rev 2444)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/IRubyProject.java 2007-05-08 14:11:50 UTC (rev 2445)
@@ -166,4 +166,20 @@
* @since 1.0.0
*/
ISourceFolderRoot[] findSourceFolderRoots(ILoadpathEntry entry);
+
+ /**
+ * Same functionality as {@link #findType(String)} but also look for secondary
+ * types if given name does not match a compilation unit name.
+ *
+ * @param fullyQualifiedName the given fully qualified name
+ * @param progressMonitor the progress monitor to report progress to,
+ * or <code>null</code> if no progress monitor is provided
+ * @exception RubyModelException if this project does not exist or if an
+ * exception occurs while accessing its corresponding resource
+ * @return the first type found following this project's classpath
+ * with the given fully qualified name or <code>null</code> if none is found
+ * @see IType#getFullyQualifiedName(char)
+ * @since 1.0
+ */
+ IType findType(String fullyQualifiedName, IProgressMonitor progressMonitor) throws RubyModelException;
}
\ No newline at end of file
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyProject.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyProject.java 2007-05-08 14:08:33 UTC (rev 2444)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyProject.java 2007-05-08 14:11:50 UTC (rev 2445)
@@ -408,6 +408,15 @@
* @see org.rubypeople.rdt.core.IRubyProject#findType(java.lang.String)
*/
public IType findType(String fullyQualifiedName) {
+ return findType(fullyQualifiedName, null);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.rubypeople.rdt.core.IRubyProject#findType(java.lang.String, org.eclipse.core.runtime.IProgressMonitor)
+ */
+ public IType findType(String fullyQualifiedName, IProgressMonitor monitor) {
int index = fullyQualifiedName.lastIndexOf("::");
String className = null;
if (index == -1) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|