This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
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: http://hg.netbeans.org/jet-main/rev/98b8c65f912a
Integrated into 'main-golden', will be available in build *201302192300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/98b8c65f912a User: Milutin Kristofic <mkristofic@netbeans.org> Log: #225808 - Make NavigationHistory as public API