Because of NavigationHistory (To fix bug #208318) Editor.search modules has implementation dependency to editor.lib. Maybe it is also time to move this class to editor.lib2
I moved NavigationHistory from editor.lib to editor.lib2 and I make API from it. It enables to add position to edit history. It also enables get edit history and look on last edits.
For example search.module adds replace string positions to navigationhistory and now it doesn't need to have implementation dependency on editor.lib.
Created attachment 131144 [details]
Navigation History API patch
Y01 Polish the class that is about to become part of "cleaned up" API. E.g. put there javadoc, @since tag, describe what it is good for, etc.
From the functional point of view we should IMHO change the WeakPositions impl to wrap real positions instead of using gap offset vector.
@Y01: Thank you for comment. I added javadoc to methods. @Since tag is in new classes.
@Mila: It should be eventually changed.
Integrated into 'main-golden', will be available in build *201302192300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Milutin Kristofic <firstname.lastname@example.org>
Log: #225808 - Make NavigationHistory as public API