Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324703 - Artifact type of a rule is not correctly applied
Summary: Artifact type of a rule is not correctly applied
Status: RESOLVED FIXED
Alias: None
Product: Tigerstripe
Classification: Technology
Component: Plugin (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: 0.5M0   Edit
Assignee: Navid Mehregani CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 17:45 EDT by Navid Mehregani CLA
Modified: 2010-09-22 15:19 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Navid Mehregani CLA 2010-09-07 17:45:05 EDT
Build Identifier: 

This defect seems to be a regression.  In a plugin descriptor, when you add a new Artifact Rule > Select 'Entity' as Artifact Type > Switch to Source tab, you'll notice that the wrong artifact type has been specified.  It incorrectly specifies the IEnumArtifact!!

This is the 'rule' element that's generated:
<rule description="blah" enabled="true" name="aRule0" type="org.eclipse.tigerstripe.workbench.plugins.IArtifactBasedTemplateRule">
<body artifactFilterClass="" artifactType="org.eclipse.tigerstripe.workbench.model.deprecated_.IEnumArtifact" includeDependencies="true" modelClass="" modelClassName="wrapper" outputFile="${artifact.Name}.out" overwriteFiles="true" suppressFiles="true" template="templates/interface.vm"/>
</rule>


As a result of this, the plugin doesn't apply its rules properly to the specified artifacts!

Reproducible: Always
Comment 1 Navid Mehregani CLA 2010-09-22 15:19:47 EDT
Fixed.  Modified file: ArtifactBasedRuleDetailsPage