[ANN] XPathView 0.4.1

Available (again) from the Plugin Manager.

Compatible with IDEA 4.0.5 and Pallada #2026.

Description:

The plugin allows to enter and evaluate an XPath expression in any
XML-document that is opened in IDEA. It will highlight the resulting
nodes in the editor or show the result in a message box if it is an
XPath primitive value (string, number, boolean).

Changes:

- Fixed "Scroll to first hit" bug causing the editor to scroll to some
undefined hit in some cases.
- Added "Find Next" / "Find Previous" actions for convenient iteration
- Made the XPath input dialog remember its size
- Added tooltips to error stripe markers
- Pallada build 2026 compatibility

6 comments
Comment actions Permalink

Sascha Weinreuter wrote:

- Fixed "Scroll to first hit" bug causing the editor to scroll to some
undefined hit in some cases.


I'm still seeing this bug.

- Added "Find Next" / "Find Previous" actions for convenient iteration
- Made the XPath input dialog remember its size


Excellent!

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

0
Comment actions Permalink

Gordon Tyler wrote:

Sascha Weinreuter wrote:

>> - Fixed "Scroll to first hit" bug causing the editor to scroll to some
>> undefined hit in some cases.


I'm still seeing this bug.


Sure, because I somehow managed to drop the fix for that from the code :(
Must have been an accident while merging two CVS versions. A new version
has already been uploaded. Sorry about that.

Sascha

0
Comment actions Permalink

Sascha Weinreuter wrote:

Sure, because I somehow managed to drop the fix for that from the code :(
Must have been an accident while merging two CVS versions. A new version
has already been uploaded. Sorry about that.


Yep, the bug is fixed in the new version. Thanks!

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

0
Comment actions Permalink

When I have the "highlight start tag only" option turned off, the right
margin marker tooltips show the selected node including children -- this
is very cool. I would like the text in the tooltips to be better
formatted though:

- Tab characters are currently treated as having zero length, thus
indentation is lost. They should be rendered according to the current
code style settings.

- The start tag of the selected node is at the left margin of the
tooltip but the indentation of the children is exactly as it is in the
file which looks rather odd. It would be better of the indentation of
the whole tooltip was relative to the start tag. i.e. subtract the
indentation of the start tag from the indentation of the children and
end tag.

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

0
Comment actions Permalink

Gordon Tyler wrote:

- Tab characters are currently treated as having zero length, thus
indentation is lost. They should be rendered according to the current
code style settings.


Done.

- The start tag of the selected node is at the left margin of the
tooltip but the indentation of the children is exactly as it is in the
file which looks rather odd. It would be better of the indentation of
the whole tooltip was relative to the start tag. i.e. subtract the
indentation of the start tag from the indentation of the children and
end tag.


Also included in 0.4.3 but will only work as it should for properly indented
XML.


Sascha

0
Comment actions Permalink

Sascha Weinreuter wrote:

>> - Tab characters are currently treated as having zero length, thus
>> indentation is lost. They should be rendered according to the current
>> code style settings.


Done.


Looks good.

>> - The start tag of the selected node is at the left margin of the
>> tooltip but the indentation of the children is exactly as it is in the
>> file which looks rather odd. It would be better of the indentation of
>> the whole tooltip was relative to the start tag. i.e. subtract the
>> indentation of the start tag from the indentation of the children and
>> end tag.


Also included in 0.4.3 but will only work as it should for properly
indented XML.


Looks good too. Excellent work!

Thanks,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

0

Please sign in to leave a comment.