Skip to content

Commit

Permalink
Initialize edit on running plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
labordep committed Nov 1, 2023
1 parent c41b401 commit eeb2f32
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/Pyramid-Tests/PyramidPluginEditOnRunningTest.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
"
A PyramidPluginEditOnRunningTest is a test class for testing the behavior of PyramidPluginEditOnRunning
"
Class {
#name : #PyramidPluginEditOnRunningTest,
#superclass : #TestCase,
#instVars : [
'editOnRunning'
],
#category : #'Pyramid-Tests-cases-plugin-edit-on-running'
}

{ #category : #tests }
PyramidPluginEditOnRunningTest >> setUp [

super setUp.
editOnRunning := PyramidPluginEditOnRunning editOnRunning.
]

{ #category : #tests }
PyramidPluginEditOnRunningTest >> tearDown [

super tearDown.
PyramidPluginEditOnRunning editOnRunning: editOnRunning.
]

{ #category : #tests }
PyramidPluginEditOnRunningTest >> testEditOnRunning [

PyramidPluginEditOnRunning editOnRunning: true.
self assert: PyramidPluginEditOnRunning editOnRunning.

PyramidPluginEditOnRunning editOnRunning: false.
self deny: PyramidPluginEditOnRunning editOnRunning.
]

{ #category : #tests }
PyramidPluginEditOnRunningTest >> testPlugin [

| plugin |
plugin := PyramidPluginEditOnRunning new.
]
40 changes: 40 additions & 0 deletions src/Pyramid/PyramidPluginEditOnRunning.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Class {
#name : #PyramidPluginEditOnRunning,
#superclass : #Object,
#traits : 'TPyramidPlugin',
#classTraits : 'TPyramidPlugin classTrait',
#classInstVars : [
'editOnRunning'
],
#category : #'Pyramid-plugin-edit-on-running'
}

{ #category : #accessing }
PyramidPluginEditOnRunning class >> editOnRunning [

^ editOnRunning ifNil: [ editOnRunning := true ]
]

{ #category : #accessing }
PyramidPluginEditOnRunning class >> editOnRunning: aBoolean [

editOnRunning := aBoolean
]

{ #category : #adding }
PyramidPluginEditOnRunning >> addPanelsOn: aPyramidSimpleWindow [

"do nothing"
]

{ #category : #actions }
PyramidPluginEditOnRunning >> configureBuilder: aPyramidEditorBuilder [

"do nothing"
]

{ #category : #'as yet unclassified' }
PyramidPluginEditOnRunning >> connectOn: aPyramidEditor [

"do nothing"
]

0 comments on commit eeb2f32

Please sign in to comment.