Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320067 - Specify scope of an annotation
Summary: Specify scope of an annotation
Status: RESOLVED INVALID
Alias: None
Product: Tigerstripe
Classification: Technology
Component: Annotations (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement with 5 votes (vote)
Target Milestone: 0.5M0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-16 02:09 EDT by Marc FLAUW CLA
Modified: 2011-08-11 17:02 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc FLAUW CLA 2010-07-16 02:09:10 EDT
Build Identifier: 

Tigerstripe Annotation Framework should provide a capability to specify the scope of every annotation. This is similar to the scoping of stereotypes. 
Need to include a UI part to specify the scope and enforcement at run time.

This is a critical enhancement as otherwise annotations won't be useable for TIP. 

Reproducible: Always
Comment 1 Justin CLA 2010-08-19 07:45:40 EDT
Hi,

Please note that TMF Shared Interface Infrastructure team has recently decided the team will not use the Annotation Framework in next release of tooling, that is, the team will keep using stereotypes. Now the issue can have low priority from the view of the team.

best regards,
Jinzhai
Comment 2 Navid Mehregani CLA 2011-08-11 17:02:47 EDT
It already is possible to specify annotation scope via the 'target' element of a 'definition' for org.eclipse.tigerstripe.annotation.core.annotationType extension point.  Please see this documentation for more details: http://wiki.eclipse.org/Define_Tigerstripe_Annotations

Specifically see excerpt:
 "Note that we have defined specific target types for these 2 annotations ('IModelComponent'), which means only Tigerstripe Model Components will be "annotable" with these 2 Annotation Types. "

Examples are also available in Tigerstripe CVS (see org.eclipse.tigerstripe.annotation.example.person).