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

Bug 311627

Summary: [refactoring] adapt rename package refactoring
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.7   
Target Milestone: 0.7 M2   
Hardware: Other   
OS: All   
Whiteboard:
Attachments:
Description Flags
implementation none

Description Stephan Herrmann CLA 2010-05-04 16:31:04 EDT
The only OT/J specific issue to observe when renaming a package is 
whether or not the package is a team package.
If it is, the renaming can actually be achieved by renaming the team class
instead.

Thus, for adapting the rename package refactoring it would suffice to
only detect the situation and ask the user to rename the team class instead.
Comment 1 Stephan Herrmann CLA 2010-05-04 16:59:39 EDT
Created attachment 167048 [details]
implementation

This patch uses a new role in existing RenameAdaptor to detect when
a team class with the same FQN as the package being renamed exists,
signalling a fatal error if so.
Comment 2 Stephan Herrmann CLA 2010-05-04 17:33:07 EDT
Patch has been committed as r297.
Comment 3 Stephan Herrmann CLA 2012-01-29 17:10:47 EST
Verified using build 201201281118.