|
From: Nicholas O'L. <no...@no...> - 2003-11-06 16:42:06
|
Hi guys. It's possible to open a SearchDialog with the directory option enabled using the SearchDialog.DIRECTORY option to the showSearchDialog() method. However, having gone through the code, it doesn't seem possible to also specify what the directory and filter values should be preset to. I have looked at the SearchAndReplace class where you can set these values. However there is a block of code commented out in the SearchDialog class (lines 749-758) that prevent it from picking up these values. Why has this feature been taken out? Without it, in the FindFile plugin, if a user selects a file to perform a hypersearch in, I can't use the proper SearchDialog to set the options of the search. For 0.2 of the plugin, I simply prompt with GUIUtilities.input() for a search string; ie there is no option to do a replace, or use RegExs etc etc - far from desirable. Cheers, N |