Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360046 - [api] creating a task repository in the team repositories view does not prompt to create queries
Summary: [api] creating a task repository in the team repositories view does not promp...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: 3.7   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-05 17:24 EDT by Sam Davis CLA
Modified: 2011-12-02 07:25 EST (History)
0 users

See Also:


Attachments
mylyn/context/zip (1.27 KB, application/octet-stream)
2011-10-05 17:25 EDT, Sam Davis CLA
no flags Details
mylyn/context/zip (2.00 KB, application/octet-stream)
2011-12-02 07:25 EST, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Davis CLA 2011-10-05 17:24:41 EDT
Creating a task repository in the team repositories view does not prompt to create queries
Comment 1 Sam Davis CLA 2011-10-05 17:25:12 EDT
Created attachment 204641 [details]
mylyn/context/zip
Comment 2 Steffen Pingel CLA 2011-11-16 18:36:26 EST
Thanks for reporting that. Looks like there are two implementations: AddRepositoryAction and AddTaskRepositoryHandler. I will merge them to make the behavior consistent.
Comment 3 Steffen Pingel CLA 2011-12-02 07:20:45 EST
I ended up moving the code that handles the query prompting into the wizard implementation. The wizards instance is directly invoked from the extension point and hence prompting needs to be done as part of the wizard. I considered registering a listener and moving the handling code somewhere else but the current implementation allows better control over the prompting behavior.

Integrators who reuse NewRepositoryWizard need to be aware that it now displays the query prompt on finish unless the showNewQueryPromptOnFinish is set to false.
Comment 4 Steffen Pingel CLA 2011-12-02 07:25:56 EST
Created attachment 207835 [details]
mylyn/context/zip