Bug 27328 - Search for build file does not remeber last search text
Summary: Search for build file does not remeber last search text
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2002-11-28 10:34 EST by Darin Wright CLA
Modified: 2002-12-03 23:00 EST (History)
0 users

See Also:


Attachments
sceenshot (17.64 KB, image/jpeg)
2002-12-02 12:42 EST, Darin Wright CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2002-11-28 10:34:07 EST
When I search for build files to add to the Ant view a second time, it reverts 
to "build.xml" even though I typed in "export*.xml".
Comment 1 Jared Burns CLA 2002-12-02 12:25:57 EST
Search dialog now persists its options as preferences. Please verify.
Comment 2 Darin Wright CLA 2002-12-02 12:40:24 EST
If I specify a working set in the search scope, and then re-open the search 
dialog, both the "workspace" and "working set" radio buttons are selected.
Comment 3 Darin Wright CLA 2002-12-02 12:42:37 EST
Created attachment 2608 [details]
sceenshot

Attaching screen shot
Comment 4 Jared Burns CLA 2002-12-02 12:49:33 EST
Hmm. Looks like a bug in the radio buttons. I shouldn't be able to make both buttons be selected if I tried.
Comment 5 Jared Burns CLA 2002-12-02 12:52:12 EST
Can't reproduce.
Comment 6 Darin Wright CLA 2002-12-02 13:10:38 EST
Adding a line to #setWorkingSet(...) fixes the problem. Programatically, you 
can select more than one button:

add this...

...
		}
		workingSetText.setText(set.getName());
		workingSetScopeButton.setSelection(true);
--> insert	workspaceScopeButton.setSelection(false);
		
		updateOkEnabled();
...
Comment 7 Darin Wright CLA 2002-12-02 13:12:57 EST
If I specify a working set, but enable the "workspace" scope, when I re-open 
the dialog, the working set is enabled even though I selected the "workspace" 
option.

I noticed that you are using preferences to store these values. You should use 
the plug-in's dialog setttings. @see AbstractUIPlugin.getDialogSettings().
Comment 8 Jared Burns CLA 2002-12-03 10:48:49 EST
Fixed. Please verify.
Comment 9 Darin Wright CLA 2002-12-03 23:00:48 EST
Verified.