jrhenderson1988 / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

Replace/find dialogs only work for one editor if several editors are sharing a Document instance #134

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create several editors sharing a Document instance
2. Perform Find/Replace in one of them
3. Try to perform Find/Replace in the other, it will work on the first one 
instead

What is the expected output? What do you see instead?

Find/Replace should work on any of the editors but it only does work on 
the first one where it was used. I think the reason is that a find dialog 
instance is cached and associated with a Document instead of with a 
(Document,JEditorPane) pair.

What version of the product are you using? On what operating system?

r124 from repository on Win XP.

Original issue reported on code.google.com by komoku on 12 Feb 2010 at 6:57

GoogleCodeExporter commented 9 years ago
You are correct.  And fixing that would take some design changes.
Unfortunately I'm out of time now.

Any takers?

Original comment by ayman.al...@gmail.com on 1 Apr 2010 at 5:01