X-Git-Url: http://nitlanguage.org diff --git a/src/model/mproject.nit b/src/model/mproject.nit index 7bd502e..72f2114 100644 --- a/src/model/mproject.nit +++ b/src/model/mproject.nit @@ -27,10 +27,10 @@ class MProject redef var name: String # The model of the project - var model: Model + redef var model: Model # The root of the group tree - var root: nullable MGroup writable = null + var root: nullable MGroup = null is writable # The group tree, as a POSet var mgroups = new POSet[MGroup] @@ -81,7 +81,7 @@ class MGroup fun is_root: Bool do return mproject.root == self # The filepath (usualy a directory) of the group, if any - var filepath: nullable String writable + var filepath: nullable String is writable init (name: String, mproject: MProject, parent: nullable MGroup) do @@ -95,6 +95,8 @@ class MGroup end end + redef fun model do return mproject.model + redef fun parent_concern do if not is_root then return parent return mproject