Skip to content

Commit

Permalink
using Package instead of Model whenever possible
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Feb 25, 2021
1 parent 2bd5136 commit ecf915c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
Expand Up @@ -52,7 +52,9 @@ OPUmlClassEditorPlugin >> icon [

{ #category : #accessing }
OPUmlClassEditorPlugin >> isPluginFor: aModel [
^ aModel class = self modelClass | (aModel class = OPUMLPackage) | (aModel class = OPUMLProfile)
^ {self modelClass.
OPUMLModel.
OPUMLProfile} includes: aModel class
]

{ #category : #'as yet unclassified' }
Expand All @@ -62,7 +64,7 @@ OPUmlClassEditorPlugin >> layouterClass [

{ #category : #accessing }
OPUmlClassEditorPlugin >> modelClass [
^ OPUMLModel
^ OPUMLPackage
]

{ #category : #accessing }
Expand Down
Expand Up @@ -4,7 +4,7 @@ Class {
#instVars : [
'plugin'
],
#category : 'OpenPonk-ClassEditor-Tests'
#category : #'OpenPonk-ClassEditor-Tests'
}

{ #category : #running }
Expand All @@ -25,7 +25,7 @@ OPUmlClassEditorPluginTest >> testIcon [

{ #category : #tests }
OPUmlClassEditorPluginTest >> testModelClass [
self assert: plugin modelClass equals: OPUMLModel
self assert: plugin modelClass equals: OPUMLPackage
]

{ #category : #tests }
Expand Down
4 changes: 2 additions & 2 deletions repository/OpenPonk-ClassEditor/OPUmlExamples.class.st
Expand Up @@ -15,7 +15,7 @@ Class {

{ #category : #examples }
OPUmlExamples class >> exampleEmptyModel [
^ OPProject openOnModel: (OPUMLModel new name: 'Model')
^ OPProject openOnModel: (OPUMLPackage new name: 'Model')
]

{ #category : #examples }
Expand Down Expand Up @@ -114,7 +114,7 @@ OPUmlExamples >> emptyEnumeration [
{ #category : #accessing }
OPUmlExamples >> emptyModel [
<gtExample>
^ OPUMLModel new name: 'Empty Model'
^ OPUMLPackage new name: 'Empty Model'
]

{ #category : #accessing }
Expand Down
Expand Up @@ -33,7 +33,7 @@ OPUmlPackageController >> attachTo: aDiagramController [

{ #category : #configuration }
OPUmlPackageController >> beForModel [
modelClass := OPUMLModel
modelClass := OPUMLPackage
]

{ #category : #configuration }
Expand Down
Expand Up @@ -11,7 +11,7 @@ OPUmlPackageDiagramControllerTest >> controllerClass [

{ #category : #accessing }
OPUmlPackageDiagramControllerTest >> modelClass [
^ OPUMLModel
^ OPUMLPackage
]

{ #category : #running }
Expand Down

0 comments on commit ecf915c

Please sign in to comment.