Skip to content

Commit

Permalink
multiple multi-diagram project fixes, shapes naming unification
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Dec 4, 2024
1 parent c0c478f commit 1af67a2
Show file tree
Hide file tree
Showing 21 changed files with 44 additions and 62 deletions.
11 changes: 6 additions & 5 deletions repository/OpenPonk-BPMN/OPBPMNActivityShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Class {
#instVars : [
'border'
],
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'ston-core' }
Expand Down Expand Up @@ -43,9 +43,9 @@ OPBPMNActivityShape >> createRoassalShape [

{ #category : 'initialization' }
OPBPMNActivityShape >> initialize [

super initialize.
self createBorder.

self createBorder
]

{ #category : 'rendering' }
Expand All @@ -67,7 +67,8 @@ OPBPMNActivityShape >> renderShapeDetails [

self color: (Color fromHexString: 'f2f2f2').
"TODO for what are good bounds?????"
self bounds: nil
"JanBliznicenko: To persist position and size for persistence"
"self bounds: nil"
]

{ #category : 'rendering' }
Expand Down
7 changes: 4 additions & 3 deletions repository/OpenPonk-BPMN/OPBPMNBoundaryEventShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Class {
'borderOut',
'innerCircle'
],
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'removing' }
Expand Down Expand Up @@ -85,7 +85,8 @@ OPBPMNBoundaryEventShape >> renderShapeDetails [
self canvas add: innerCircle.
RSLocation new stick: innerCircle on: self roassalShape.
"TODO for what are good bounds?????"
self bounds: nil
"JanBliznicenko: To persist position and size for persistence"
"self bounds: nil"
"roassalShape @ OPRSSelectionDraggable."
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Class {
'subprocessIcon',
'border'
],
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'ston-core' }
Expand Down
4 changes: 2 additions & 2 deletions repository/OpenPonk-BPMN/OPBPMNDataFlowShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Class {
#instVars : [
'borderColor'
],
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'rendering' }
Expand Down
4 changes: 2 additions & 2 deletions repository/OpenPonk-BPMN/OPBPMNDataObjectShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Class {
'icon',
'borderColor'
],
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'removing' }
Expand Down
4 changes: 2 additions & 2 deletions repository/OpenPonk-BPMN/OPBPMNEdgeLabel.class.st
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Class {
#name : 'OPBPMNEdgeLabel',
#superclass : 'OPEdgeLabel',
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'as yet unclassified' }
Expand Down
4 changes: 2 additions & 2 deletions repository/OpenPonk-BPMN/OPBPMNEndEventShape.class.st
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Class {
#name : 'OPBPMNEndEventShape',
#superclass : 'OPBPMNEventShape',
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'connecting' }
Expand Down
4 changes: 2 additions & 2 deletions repository/OpenPonk-BPMN/OPBPMNEventShape.class.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : 'OPBPMNEventShape',
#superclass : 'OPBPMNNodeShape',
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}
4 changes: 2 additions & 2 deletions repository/OpenPonk-BPMN/OPBPMNFlowShape.class.st
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Class {
#name : 'OPBPMNFlowShape',
#superclass : 'OPEdge',
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'as yet unclassified' }
Expand Down
7 changes: 4 additions & 3 deletions repository/OpenPonk-BPMN/OPBPMNGatewayShape.class.st
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Class {
#name : 'OPBPMNGatewayShape',
#superclass : 'OPBPMNNodeShape',
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'connecting' }
Expand All @@ -20,5 +20,6 @@ OPBPMNGatewayShape >> renderShapeDetails [
super renderShapeDetails.
self color: (Color fromHexString: 'bce2fe').
"TODO for what are good bounds?????"
self bounds: nil.
"JanBliznicenko: To persist position and size for persistence"
"self bounds: nil"
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Class {
#instVars : [
'innerCircle'
],
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'accessing' }
Expand Down
4 changes: 2 additions & 2 deletions repository/OpenPonk-BPMN/OPBPMNMessageShape.class.st
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Class {
#name : 'OPBPMNMessageShape',
#superclass : 'OPEdge',
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'hooks' }
Expand Down
5 changes: 0 additions & 5 deletions repository/OpenPonk-BPMN/OPBPMNModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ Class {
#tag : 'Models'
}

{ #category : 'accessing' }
OPBPMNModel >> allEntities [
^ Set with: self nodes
]

{ #category : 'accessing' }
OPBPMNModel >> edges [
^ elements select: #isEdge
Expand Down
8 changes: 4 additions & 4 deletions repository/OpenPonk-BPMN/OPBPMNNavigatorAdapter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ OPBPMNNavigatorAdapter class >> priority [

{ #category : 'widget API' }
OPBPMNNavigatorAdapter >> childrenMapping [
^ { (OPBPMNModel -> #nodes).
(OPBPMNPoolModel -> #nodes).
(OPBPMNSubProcessModel -> #nodes).
(OPBPMNNodeModel -> #outgoing) }

^ {
(OPBPMNModel -> [ :o | o nodes ]).
(OPBPMNNodeModel -> [ :o | o nodes , o outgoing ]) }
]

{ #category : 'widget API' }
Expand Down
5 changes: 0 additions & 5 deletions repository/OpenPonk-BPMN/OPBPMNNodeModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ OPBPMNNodeModel >> addFlow: aFlow [
ifFalse: [ self changed ]
]

{ #category : 'accessing' }
OPBPMNNodeModel >> allEntities [
^ Set with: self flows
]

{ #category : 'accessing' }
OPBPMNNodeModel >> connected [
owner ifNil: [ ^ #() ].
Expand Down
4 changes: 2 additions & 2 deletions repository/OpenPonk-BPMN/OPBPMNNodeShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Class {
'icon',
'borderColor'
],
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'ston-core' }
Expand Down
5 changes: 0 additions & 5 deletions repository/OpenPonk-BPMN/OPBPMNPoolModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ OPBPMNPoolModel >> nodeNamed: aName [
^ self elementNamed: aName
]

{ #category : 'accessing' }
OPBPMNPoolModel >> nodes [
^ elements
]

{ #category : 'printing' }
OPBPMNPoolModel >> printType [
^ 'process'
Expand Down
4 changes: 2 additions & 2 deletions repository/OpenPonk-BPMN/OPBPMNPoolShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Class {
'b2',
'borderColor'
],
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'adding' }
Expand Down
4 changes: 2 additions & 2 deletions repository/OpenPonk-BPMN/OPBPMNStartEventShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Class {
#instVars : [
'border'
],
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'connecting' }
Expand Down
6 changes: 0 additions & 6 deletions repository/OpenPonk-BPMN/OPBPMNSubProcessModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ OPBPMNSubProcessModel >> nodeNamed: aName [
^ self elementNamed: aName
]

{ #category : 'accessing' }
OPBPMNSubProcessModel >> nodes [

^ elements
]

{ #category : 'accessing' }
OPBPMNSubProcessModel >> printType [

Expand Down
4 changes: 2 additions & 2 deletions repository/OpenPonk-BPMN/OPBPMNSubProcessShape.class.st
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Class {
#name : 'OPBPMNSubProcessShape',
#superclass : 'OPBPMNNodeShape',
#category : 'OpenPonk-BPMN-Shapes',
#category : 'OpenPonk-BPMN-DiagramElements',
#package : 'OpenPonk-BPMN',
#tag : 'Shapes'
#tag : 'DiagramElements'
}

{ #category : 'connecting' }
Expand Down

0 comments on commit 1af67a2

Please sign in to comment.