111112113114115116117118119120
return treeController; } public SearchTarget getSearchTarget() { if (getCurrentDisplayMode() == XmlDocumentFrame.TEXT_MODE) { return new SearchAndReplaceTextComponentTarget(textArea); } else { return new TreeSearchTarget(tree); } }
7879808182838485868788
} }); } private void openDialog() { SearchAndReplaceTarget target = new SearchAndReplaceTextComponentTarget(text); if (withReplace) { searchAndReplace(target, false); } else { searchOnly(target); }
112113114115116117118119
configureDialog(dialog); dialog.show(null); } public void openReplaceDialog() { SearchAndReplaceTarget target = new SearchAndReplaceTextComponentTarget(text); searchAndReplace(target, true); }