Merge: doc: fixed some typos and other misc. corrections
[nit.git] / src / uml / uml_module.nit
index 1720ff0..d8804e6 100644 (file)
@@ -47,11 +47,12 @@ end
 
 redef class MModule
        redef fun tpl_module(model) do
+               var name = self.name.escape_to_dot
                var t = new Template
                t.add "subgraph cluster{name} \{\n"
                t.add "label = \"{name}\"\n"
                for i in mclassdefs do
-                       if not model.view.accept_mentity(i) then continue
+                       if not model.filter.accept_mentity(i) then continue
                        t.add i.tpl_module(model)
                end
                t.add "\}\n"
@@ -72,8 +73,9 @@ redef class MClassDef
        var redef_colour = "#B24758"
 
        redef fun tpl_module(model) do
+               var name = self.name.escape_to_dot
                var t = new Template
-               t.add "{mmodule}{name} [\n\tlabel = \"\{"
+               t.add "{mmodule.name.escape_to_dot}{name} [\n\tlabel = \"\{"
                if mclass.kind == abstract_kind then
                        t.add "abstract\\n{name}"
                else if mclass.kind == interface_kind then
@@ -94,14 +96,14 @@ redef class MClassDef
                t.add "|"
                for i in mpropdefs do
                        if not i isa MAttributeDef then continue
-                       if not model.view.accept_mentity(i) then continue
+                       if not model.filter.accept_mentity(i) then continue
                        t.add i.tpl_module(model)
                        t.add "\\l"
                end
                t.add "|"
                for i in mpropdefs do
                        if not i isa MMethodDef then continue
-                       if not model.view.accept_mentity(i) then continue
+                       if not model.filter.accept_mentity(i) then continue
                        t.add i.tpl_module(model)
                        t.add "\\l"
                end