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

Bug 317382

Summary: [wizard] new role wizard doesn't find base class via aspectBinding
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTDTAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7   
Target Milestone: 0.7   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
fix none

Description Stephan Herrmann CLA 2010-06-20 13:08:05 EDT
When using the new role wizard in an OT-Plug-in project 
trying to complete the base class does not find classes that
are brought into scope via plug-in dependency plus aspectBinding.

When typing the base class name unqualified this results in a broken
base import with no package prefix.
Comment 1 Stephan Herrmann CLA 2010-06-20 13:12:52 EDT
Created attachment 172294 [details]
fix

This patch provides a suitable completion context similar to what
is done for the super class using "class DUMMY extends | {}".
In addition to replacing "extends" with "playedBy" we also try to
create a suitable team context:
- if an enclosing type is set fake a role file for that team
- otherwise fake a new team w/ role
Comment 2 Stephan Herrmann CLA 2010-06-20 13:14:20 EDT
Patch has been committed as r523.
Comment 3 Stephan Herrmann CLA 2010-07-02 13:12:33 EDT
Verified using build 201007011455.