Author: akazakov
Date: 2009-06-29 10:41:50 -0400 (Mon, 29 Jun 2009)
New Revision: 16249
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java 2009-06-29
14:36:32 UTC (rev 16248)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java 2009-06-29
14:41:50 UTC (rev 16249)
@@ -93,6 +93,20 @@
/*
* (non-Javadoc)
+ * @see
org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor#getMatchString(org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion,
org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion, int)
+ */
+ @Override
+ protected String getMatchString(IStructuredDocumentRegion parent, ITextRegion aRegion,
int offset) {
+ String matchString = super.getMatchString(parent, aRegion, offset);
+ String regionType = aRegion.getType();
+ if(regionType == DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE &&
matchString.equals("\"")) {
+ matchString = ""; //$NON-NLS-1$
+ }
+ return matchString;
+ }
+
+ /*
+ * (non-Javadoc)
* @see
org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor#getCompletionProposalAutoActivationCharacters()
*/
@Override