X

Geertjan's Blog

  • February 10, 2016

Synchronizing Node Hierarchy with Editor Document

Geertjan Wielenga
Product Manager

Arun and I have made a lot of progress with the Couchbase/NetBeans integration. Since the recording of part 3 of the series (which we did during Jfokus in Sweden), in the GitHub repo I've committed a bit of code since yesterday and now double-clicking a value in a bucket will cause NetBeans IDE to find the related statement in the open JSON document. So, below, I am double-clicking on a node in the Couchbase hierarchy and I can then immediately see the matching line in the editor, while if that line was somewhere way down in the document, the document would scroll automatically to that line.

The related code for this is here:

https://github.com/arun-gupta/couchbase-netbeans-plugin/blob/master/src/main/java/org/netbeans/modules/couchbase/value/HighlightMatchingValueAction.java

Next, I need to do it the other way round. I.e., add some kind of listener that will find the matching node when a line is selected in the editor. 

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha
Oracle

Integrated Cloud Applications & Platform Services