Author: vyemialyanchyk
Date: 2008-01-24 08:21:15 -0500 (Thu, 24 Jan 2008)
New Revision: 5932
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/xpl/BaseXMLContentAssistProcessor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1624
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/xpl/BaseXMLContentAssistProcessor.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/xpl/BaseXMLContentAssistProcessor.java 2008-01-24
13:18:07 UTC (rev 5931)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/xpl/BaseXMLContentAssistProcessor.java 2008-01-24
13:21:15 UTC (rev 5932)
@@ -12,6 +12,7 @@
*******************************************************************************/
package org.hibernate.eclipse.mapper.editors.xpl;
+import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -57,7 +58,16 @@
if (nameRegion != null) {
String attributeName = open.getText(nameRegion);
- List attributeValueProposals = getAttributeValueProposals(attributeName, matchString,
offset, contentAssistRequest);
+ List attributeValueProposals = new ArrayList();
+ if (0 == matchString.length()) {
+ for (char ch = 'a'; ch <= 'z'; ch++) {
+ String matchStrTmp = String.valueOf(ch);
+ attributeValueProposals.addAll(getAttributeValueProposals(attributeName,
matchStrTmp, offset, contentAssistRequest));
+ }
+ }
+ else {
+ attributeValueProposals.addAll(getAttributeValueProposals(attributeName, matchString,
offset, contentAssistRequest));
+ }
if(attributeValueProposals!=null) {
for (Iterator iter = attributeValueProposals.iterator(); iter.hasNext();) {
ICompletionProposal element = (ICompletionProposal) iter.next();