Support for Sticky Windows in the editor. JComponents can be added to a layer on top of the editor. Components will update their vertical position on editor changes.
Created attachment 159197 [details]
Please review the proposed api change.
The code is on debugger_pin_watch branch in jet-main repository.
Ralph, apologies for delay.
MM01) Since the editor.lib should be abandoned in the future I would appreciate if all the new editor apis could be placed in editor.lib2. It may be a bit tricky in this case but it should be doable since there's an implementation dependency of editor.lib on editor.lib2 so some necessary "bridges" could be added.
MM02) If there's no reason to extend the StickyWindowSupport class let's make it final. The EditorUI.getStickyWindowSupport() could IMHO become StickyWindowSupport.get(JTextComponent).
MM03) Although it's a mostly visual feature maybe some basic test could be added for the added methods?
I did not read the debugger part of the change yet.
MM01: moved to editor.lib2
MM02: thanks for the catch, updated
MM03: the methods forward everything to swing, even the convertPoint method.
If there are no further objections, I'm going to merge the branch into trunk this evening CEST.
The debugger_pin_watch branch is merged into trunk:
*** Bug 228015 has been marked as a duplicate of this bug. ***