|
From: <caw...@us...> - 2007-02-08 14:54:29
|
Revision: 1940
http://svn.sourceforge.net/rubyeclipse/?rev=1940&view=rev
Author: cawilliams
Date: 2007-02-08 06:54:15 -0800 (Thu, 08 Feb 2007)
Log Message:
-----------
just use the fully qualified type name (don't try to parse out the :: inside)
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/ruby/CompletionProposalLabelProvider.java
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/ruby/CompletionProposalLabelProvider.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/ruby/CompletionProposalLabelProvider.java 2007-02-08 09:41:02 UTC (rev 1939)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/ruby/CompletionProposalLabelProvider.java 2007-02-08 14:54:15 UTC (rev 1940)
@@ -134,8 +134,7 @@
* @return the display label for the given type proposal
*/
String createTypeProposalLabel(CompletionProposal typeProposal) {
- String typeName= typeProposal.getType();
- return createTypeProposalLabel(typeName);
+ return typeProposal.getType();
}
/**
@@ -208,25 +207,5 @@
}
return buf.toString();
}
-
- String createTypeProposalLabel(String fullName) {
- // only display innermost type name as type name, using any
- // enclosing types as qualification
- int qIndex= findSimpleNameStart(fullName);
- StringBuffer buf= new StringBuffer();
- buf.append(fullName, qIndex, fullName.length() - qIndex);
- if (qIndex > 0) {
- buf.append(RubyElementLabels.CONCAT_STRING);
- buf.append(fullName, 0, qIndex - 1);
- }
- return buf.toString();
- }
-
- private int findSimpleNameStart(String fullName) {
- int index = fullName.lastIndexOf("::");
- if (index == -1) return 0;
- return index;
- }
-
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|