Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317382 - [wizard] new role wizard doesn't find base class via aspectBinding
Summary: [wizard] new role wizard doesn't find base class via aspectBinding
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTDT (show other bugs)
Version: 0.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.7   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-20 13:08 EDT by Stephan Herrmann CLA
Modified: 2010-07-02 13:12 EDT (History)
0 users

See Also:


Attachments
fix (2.87 KB, patch)
2010-06-20 13:12 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 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.