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

Bug 338992

Summary: Wrong behaviour when use Facet with stereotype-based Exclusion and profile is not applied
Product: [Technology] Tigerstripe Reporter: Maria Kolchinskaja <mshulgina>
Component: FacetAssignee: Project Inbox <tigerstripe.facet-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: yuri
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
338992 patch none

Description Maria Kolchinskaja CLA 2011-03-05 00:45:09 EST
Build Identifier: 

1. Create a Tigerstripe Project with datatype artifact.
2. Create profile.
3. Create stereotype datatype_stereo for datatype artifact.
4. Create Contract Facet
5. Apply profile.
6. Open datatype artifact. Add datatype_stereo stereotype. Save changes.
7. Add stereotype to stereotype-based Exclusion Facet.
8. Reset profile to default. 
9. Open datatype artifact to verify that 'datatype_stereo' stereotype marked as 'Undefined'.
10. Create Generator project and set 'use facet'
11. Generate project with active facet.

Result:
1. Project is generated using stereotype-based Exclusion. But the profile is not active and the stereotype is undefined.
2. Open 'Scope' tab on Facet. Click 'Add' button for stereotype-based Exclusion. Dialog is emplty, but error is displayed:
Unknown stereotype 'datatype_stereo'. Ignoring
An exception stack trace is not available.


Reproducible: Always
Comment 1 Anton Salnik CLA 2011-04-01 00:51:40 EDT
Created attachment 192335 [details]
338992 patch

1. From my point of view the behaviour is correct. If stereotype configuration isn't available (profile with the stereotype isn't active) you can't edit the stereotype definition for an artifact. But since stereotypes definition consist of name and attributes they are available for generators.
2. Exception logging removed.
Comment 2 Yuri Strot CLA 2011-04-04 05:03:34 EDT
Patch applied.
Comment 3 Maria Kolchinskaja CLA 2011-04-06 00:08:58 EDT
Verified