From 66e9838c47b58810cb0bb6c67c32fb119eb50797 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Mon, 2 Feb 2015 15:11:34 +0100 Subject: Importing files works now --- src/core/model/Domain.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/core/model/Domain.cpp') diff --git a/src/core/model/Domain.cpp b/src/core/model/Domain.cpp index 360aa83..ef505dd 100644 --- a/src/core/model/Domain.cpp +++ b/src/core/model/Domain.cpp @@ -469,6 +469,18 @@ bool Domain::doValidate(Logger &logger) const continueValidationCheckDuplicates(typesystems, logger); } +void Domain::doReference(Handle node) +{ + if (node->isa(RttiTypes::Domain)) { + referenceTypesystem(node.cast()); + } +} + +RttiSet Domain::doGetReferenceTypes() const +{ + return RttiSet{&RttiTypes::Domain}; +} + void Domain::addStructuredClass(Handle s) { // only add it if we need to. @@ -559,7 +571,7 @@ const Rtti StructuredClass = const Rtti AnnotationClass = RttiBuilder("AnnotationClass").parent(&Descriptor); const Rtti Domain = RttiBuilder("Domain") - .parent(&Node) + .parent(&RootNode) .composedOf({&StructuredClass, &AnnotationClass}); } } -- cgit v1.2.3