Issue Details (XML | Word | Printable)

Key: CSC-262
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Patrik Nordwall
Reporter: Patrik Nordwall
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Fornax Cartridge Sculptor

Importing nested design files

Created: 31/Oct/08 10:18 PM   Updated: 31/Jan/09 10:31 AM
Component/s: Generator
Affects Version/s: None
Fix Version/s: 1.5.0

Time Tracking:
Not Specified



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Patrik Nordwall added a comment - 01/Nov/08 08:30 AM
I fixed a bug in DslTransformation. Now it used the ordinary extension function from the dsl project to load the imports.

Patrik Nordwall added a comment - 01/Nov/08 08:56 AM
I have added possibility to mark an import as external, i.e. existing in another project.
Syntax:
external import "platform:/resource/fornax-cartridges-sculptor-generator/src/test/resources/nested3.design"
external import "platform:/resource/fornax-cartridges-sculptor-generator/src/test/resources/nested4.design"

ApplicationPart NestedPart2 {
 
    Module nested2 {
     ValueObject B {
     String b
     - @C c
     - @D d
     }
    }
}

I have overwritten the model() function in Extensions.ext (dsl project). It loads imports recursively and marks modules from external imports.
It will handle the case:
model1
  import model2
    external import model3
       import model4

Modules in model3 and model4 will be marked as external (in the context of model1, model2).