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

Bug 346799

Summary: [wizard] new role wizard should respect text selection
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTDTAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 0.8   
Target Milestone: 2.0 RC2   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Implementation none

Description Stephan Herrmann CLA 2011-05-21 17:49:09 EDT
When the new role wizard is invoked while the selection is owned by
an editor, all details of the selection are lost, meaning the wizard is
always initialized with the main type of the current compilation unit.

In order to create a nested role into the desired nested team the 
selection should be interpreted to find the closest enclosing type.
Comment 1 Stephan Herrmann CLA 2011-05-21 18:15:01 EDT
Created attachment 196280 [details]
Implementation

Implementation: if we only have an ICompilationUnit try to find
a selected IType within using the current ITextSelection.
Comment 2 Stephan Herrmann CLA 2011-05-21 18:25:59 EDT
Committed as r1614.
Comment 3 Stephan Herrmann CLA 2011-06-02 11:22:06 EDT
Verified using build 201105311237