Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-incubator-dev] XPath Content Assistance

Doug and Jesper:

I've reworked a lot of the backend code for the XSLContentAssistProcessor. In particular, the XPath content assistance should address issues that Doug raised in bug 224938. This refactoring now parses and tokenizes the XPath expression in the select statements, and based on the cursor position will try and determine the correct content assistance. It seems to handle single line XPath expressions well. I will open a separate bug to handle any issues in regards to multiline XPath Expressions.

Jesper, you should be able to leverage the XPath Templates as well as the new XPathCoreXPathParser class, to get bug 217822 implemented, with a line content processor and assistor.

There are several unit tests that show how the XPathCoreXpathParser is to be used. The main parsing is handled by the JXPath Parser from the apache commons project, as it was the only one that actually exposed the Tokens so that column and line number information could be obtained.

Anyways, if you can do some testing on this, I'd appreciate it. I know there are a few little areas that still need some tweaking but I'm going to close the main bug so that we can have separate bugs for the other issues that remain.

Dave




Back to the top