Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346799 - [wizard] new role wizard should respect text selection
Summary: [wizard] new role wizard should respect text selection
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTDT (show other bugs)
Version: 0.8   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 2.0 RC2   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-21 17:49 EDT by Stephan Herrmann CLA
Modified: 2011-06-02 11:22 EDT (History)
0 users

See Also:


Attachments
Implementation (2.55 KB, patch)
2011-05-21 18:15 EDT, Stephan Herrmann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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