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"
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
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