Skip to content

Commit

Permalink
moved some stateless methods to class side
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Feb 21, 2023
1 parent 3b82db9 commit c1a73dc
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions repository/OntoUML-Profile/OntoUMLProfileFactory.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,26 @@ Class {
#category : #'OntoUML-Profile-model'
}

{ #category : #actions }
OntoUMLProfileFactory class >> generate [

<script>
| model generator |
model := self profile.
generator := OPUMLProfileGenerator new.
generator sourceModel: model.
generator classPrefix: model implementationPrefix.
generator packageName: model implementationPackage.
(CBChangesBrowser changes: generator generateAll) open
]

{ #category : #actions }
OntoUMLProfileFactory class >> openProfile [

<script>
self new openProfile
]

{ #category : #accessing }
OntoUMLProfileFactory >> createProfile [
profile ifNotNil: [ ^ profile ].
Expand All @@ -29,18 +49,6 @@ OntoUMLProfileFactory >> formalPair [
^ pair
]

{ #category : #actions }
OntoUMLProfileFactory >> generate [
<script: 'self new generate'>
| model generator |
model := self class profile.
generator := OPUMLProfileGenerator new.
generator sourceModel: model.
generator classPrefix: model implementationPrefix.
generator packageName: model implementationPackage.
(CBChangesBrowser changes: generator generateAll) open
]

{ #category : #parts }
OntoUMLProfileFactory >> materialPair [

Expand Down Expand Up @@ -116,9 +124,7 @@ OntoUMLProfileFactory >> objectPair [
{ #category : #actions }
OntoUMLProfileFactory >> openProfile [

<script: 'self new openProfile'>
(OPProject openOnModel: self class profile)
showAllElementsInAllDiagrams
(OPProject openOnModel: self profile) showAllElementsInAllDiagrams
]

{ #category : #accessing }
Expand Down Expand Up @@ -169,12 +175,6 @@ OntoUMLProfileFactory >> profilePackage [
yourself
]

{ #category : #actions }
OntoUMLProfileFactory >> reset [
<script: 'self reset'>
self class reset
]

{ #category : #accessing }
OntoUMLProfileFactory >> xmi [
^
Expand Down

0 comments on commit c1a73dc

Please sign in to comment.