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

Bug 165910

Summary: auto-detect repository and other settings based on task editor selection
Product: z_Archived Reporter: Willian Mitsuda <wmitsuda>
Component: MylynAssignee: Shawn Minto <shawn.minto>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 0.9   
Target Milestone: 3.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 203471    

Description Willian Mitsuda CLA 2006-11-27 08:42:15 EST
Actually, if you launch the new repositoy task wizard with a resource or a task selection, it pre-selects the repository, if it is configured for its project or from the selected task.

However, this does not works if you launch from inside a editor.
Comment 1 Eugene Kuleshov CLA 2006-11-28 17:20:45 EST
This require Mik revert his changes around TasksUiUtil.getSelectedRepository(StructuredViewer viewer), or make that method to actually use selection service (and then check for active editor, etc). So, idea of special adaptable seem very reasonable.
Comment 2 Mik Kersten CLA 2007-10-03 19:59:49 EDT
Shawn: please consider looking into this as part of the bug 203471 work since it will be required for the pre-selection to work as expected from the Task Editor.  As part of this you may also want to add a "New -> Task" action to the Task Editor.
Comment 3 Mik Kersten CLA 2007-10-10 18:53:14 EDT
Tentatively scheduling for 2.2.
Comment 4 Mik Kersten CLA 2007-10-10 18:53:30 EDT
*** Bug 205381 has been marked as a duplicate of this bug. ***
Comment 5 Mik Kersten CLA 2007-12-10 21:55:45 EST
Shawn: are you still considering this for 2.2?  Would need to be done before end-of-day Wednesday.
Comment 6 Shawn Minto CLA 2007-12-11 13:28:28 EST
I wont be able to get time to look at this before wed.
Comment 7 Eugene Kuleshov CLA 2008-01-07 13:43:46 EST
Any progress on this? 

Currently there are several actions like new task from selection or clone task that can be invoked from the task editor and for those actions new task wizards don't preselect task repositories or components. It also affects 3rd party integrations who are using NewTaskAction.showWizard(TaskSelection taskSelection) call (which been suggested to be moved to TasksUiUtil class).
Comment 8 Eugene Kuleshov CLA 2008-01-15 12:55:48 EST
Code in comment #4 on bug 214188 include solution for this issue as well.
Comment 9 Mik Kersten CLA 2008-06-12 18:58:14 EDT

*** This bug has been marked as a duplicate of bug 203471 ***