|
From: <caw...@us...> - 2007-08-21 13:48:12
|
Revision: 3012
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=3012&view=rev
Author: cawilliams
Date: 2007-08-21 06:48:10 -0700 (Tue, 21 Aug 2007)
Log Message:
-----------
fix context menu search
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/matching/TypeReferencePattern.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/matching/TypeReferencePattern.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/matching/TypeReferencePattern.java 2007-08-21 13:48:03 UTC (rev 3011)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/matching/TypeReferencePattern.java 2007-08-21 13:48:10 UTC (rev 3012)
@@ -30,8 +30,11 @@
public TypeReferencePattern(char[] qualification, char[] simpleName, int matchRule) {
this(matchRule);
-
- this.qualification = isCaseSensitive() ? qualification : CharOperation.toLowerCase(qualification);
+ if (qualification.length == 0) {
+ this.qualification = null;
+ } else {
+ this.qualification = isCaseSensitive() ? qualification : CharOperation.toLowerCase(qualification);
+ }
this.simpleName = (isCaseSensitive() || isCamelCase()) ? simpleName : CharOperation.toLowerCase(simpleName);
if (simpleName == null)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|