xpath

Hi!

Maybe this is well known, at least for me its new:

Yesterday IDEA showed me that my xpath expression is wrong - in source -
an inspection warning.

I am really impressed.

Great work, cool stuff!

---
Mario

6 comments
Comment actions Permalink

Thanks, that was one of my favorites. It also checks regexes and printf formatting strings.

BTW, if you do much with XPath, you really need the XPathView plugin, by Sascha Weinreutter, available via the PluginManager. Very sweet stuff.

--Dave Griffith

0
Comment actions Permalink

By the way, are you aware of this feature request ?

http://www.jetbrains.net/jira/browse/IDEA-4527

;)

BoD

Dave Griffith wrote:

Thanks, that was one of my favorites. It also checks regexes and printf formatting strings.

BTW, if you do much with XPath, you really need the XPathView plugin, by Sascha Weinreutter, available via the PluginManager. Very sweet stuff.

--Dave Griffith

0
Comment actions Permalink

Wasn't aware that it had been requested, but had already thought of it.

--Dave Griffith

0
Comment actions Permalink

Another nice thing would be if it is possible to annotate a method variable.

Say you have:

public String wrappedXpathEvaluator(@Inspect(lang="XPath") String xpath)
{
...
}

which would trigger the evaluation of the inspection for such custom
methods too.
For sure, the annotation syntax can be changed ;)

---
Mario

0
Comment actions Permalink

Nice idea. Opens up a lot of possibilities...

--Dave Griffith

0
Comment actions Permalink

That sounds very cool. This is a larger request, though, I think, to allow the
Language API to handle such strings.

Mario Ivankovits wrote:

Another nice thing would be if it is possible to annotate a method
variable.

Say you have:

public String wrappedXpathEvaluator(@Inspect(lang="XPath") String xpath)
{
....
}

which would trigger the evaluation of the inspection for such custom
methods too.
For sure, the annotation syntax can be changed ;)

---
Mario

0

Please sign in to leave a comment.