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

Bug 320067

Summary: Specify scope of an annotation
Product: [Technology] Tigerstripe Reporter: Marc FLAUW <marc.flauw>
Component: AnnotationsAssignee: Project Inbox <tigerstripe.annotations-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: etalelover, nmehrega
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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).