From: Hoyt,Jeffrey C. <jc...@mi...> - 2003-12-30 15:32:55
|
Hi Slava, No, that doesn't work either. :o( Anyway, that's just a textArea.requestFocus() call with an invokeLater() wrapper, and I tried that call directly. What I am really trying to accomplish here is to find all occurances of a given regex ("^<<<<<<<.*\\n(.*\\n)*?^>>>>>>>.*") in two side by side buffers, as Selection objects. Unfortunately, the SearchAndReplace methods all seem to work only on the active EditPane, hence my desire to set the active EditPane. I suppose I could use brute force and do a SearchAndReplace.setSearchFileSet( ); with my own dummied up SearchFileSet written for each buffer, but it seems to me there should be a more elegant way of going about it. I guess that leads to the question, is there a way to just get all the matches from a hypersearch as an array of Selection objects, or do I have roll my own? Thanks for your help, Jeff On Monday 29 December 2003 11:17 pm, jed...@li... wrote: > Well the next text area/previous text area commands call > EditPane.focusOnTextArea(). Try that, it should work. > > On Mon, 2003-12-29 at 15:13, Hoyt,Jeffrey C. wrote: ><snip> > > Going into a method, I pass the leftPane, confirm that I am sending the > > left pane, and trying to have that pane become the active one so that > > when I do SearchAndReplace.find( view, buffer, > > textArea.getCaretPosition() ); I search in the EditPane passed. Sadly, > > the rightPane is always the one that is searched since that is the active > > pane. > > > > I've tried: > > textArea.requestFocus(); > > and > > textArea.requestFocusInWindow(); > > and > > textArea.requestDefaultFocus(); > > and > > pane.requestFocus(); > > and > > pane.requestFocusInWindow(); > > and > > pane.requestDefaultFocus(); > > where > > JEditTextArea textArea = pane.getTextArea(); > > and pane is the EditPane passed in > > to no avail. > > > > Anything else I can try? > > > > Thanks, > > > > Jeff -- Jeffrey Hoyt The MITRE Corporation Database Technology SW Engineer 703-758-8143 |