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

Bug 346166

Summary: [assist][rewrite] adding an import for the base side in declared lifting should create a base import
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: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
fix none

Description Stephan Herrmann CLA 2011-05-17 17:37:24 EDT
in a team method  like

  void test(Base as Role r) {
  }

if Base is unresolved that corresponding quickfix inserts a regular import
where it should better add a base import.
Comment 1 Stephan Herrmann CLA 2011-05-22 09:01:13 EDT
Created attachment 196293 [details]
fix

Actually, the problem only occurred if no playedBy had been defined
before invoking quickfix. Anyway, here's a patch that also checks team
methods with declared lifting for hints on what types are base classes.
Comment 2 Stephan Herrmann CLA 2011-05-22 09:02:11 EDT
Committed as r1621.
Comment 3 Stephan Herrmann CLA 2011-06-02 10:47:46 EDT
Verified using build 201105311237

(works for quickfix and completion alike)