Skip to content

Commit

Permalink
Diagrams become inconsistent if they are applied on an updated model #9
Browse files Browse the repository at this point in the history
Add missed method to repository
  • Loading branch information
RainerWinkler committed Jan 4, 2018
1 parent 26c50f7 commit 9d87ae7
Showing 1 changed file with 14 additions and 0 deletions.
@@ -0,0 +1,14 @@
as yet unclassified
readLayout: aString ofMooseModel: aMooseModel
| e |
path
ifNil: [ self inform: 'Specify a global path using RWDiagram setPath: myPath' ]
ifNotNil: [ e := RWDiagramEditor uniqueInstance.
"Specify the Layout to be processed"
e currentLayoutName: aString.
e currentLayout refresh.
e currentLayout mooseID = aMooseModel mooseID
ifFalse: [ e refreshLayout: e currentLayout.
e currentLayout mooseID: aMooseModel mooseID ].
self readFromPath: path.
self inform: 'Layout: ' , aString , ' was read from path ' , path ]

0 comments on commit 9d87ae7

Please sign in to comment.