Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364207

Summary: RelativePathBrowseActionHandler should set initial selection if the path based property contains a valid path
Product: z_Archived Reporter: Shenxue Zhou <shenxue.zhou>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: konstantin
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Set the initial selection for the dlg none

Description Shenxue Zhou CLA 2011-11-18 17:50:49 EST
When a path based property has a @ProjectRelativePath or @WorkspaceRelativePath annotation, Sapphire UI renders a "browse" btn on its right. When the "browse" btn is clicked, RelativePathBrowseActionHandler is invoked and a relative path selection dialog is launched. However, the path dialog doesn't select the path as its initial selection. When user clicks the browse btn repeatedly, he/she has to start over.
Comment 1 Shenxue Zhou CLA 2011-11-18 18:00:36 EST
Created attachment 207257 [details]
Set the initial selection for the dlg
Comment 2 Shenxue Zhou CLA 2011-11-18 18:02:50 EST
Konstantin, could you take a quick look at the patch? That class is very complicated and I want to make sure I'm not missing things. Thanks!
Comment 3 Konstantin Komissarchik CLA 2011-11-21 18:47:11 EST
No. The entire fix needs quite a bit more than what's shown in the patch.

Issue fixed. Please verify.
Comment 4 Shenxue Zhou CLA 2011-11-21 19:05:11 EST
I've verified the fix. Closing.