diff --git a/src/Pyramid-Tests/PyramidPluginEditOnRunningTest.class.st b/src/Pyramid-Tests/PyramidPluginEditOnRunningTest.class.st index 0b57bcb8..7b6f078f 100644 --- a/src/Pyramid-Tests/PyramidPluginEditOnRunningTest.class.st +++ b/src/Pyramid-Tests/PyramidPluginEditOnRunningTest.class.st @@ -33,3 +33,10 @@ PyramidPluginEditOnRunningTest >> testEditOnRunning [ PyramidPluginEditOnRunning editOnRunning: false. self deny: PyramidPluginEditOnRunning editOnRunning. ] + +{ #category : #tests } +PyramidPluginEditOnRunningTest >> testInitializePlugin [ + "Test if the plugin is installed because this is a core plugin that need to be installed" + + self assert: (PyramidPluginManager uniqueInstance isPluginInstalled: PyramidPluginEditOnRunning) +] diff --git a/src/Pyramid/PyramidEditOnRunningSystemSettings.class.st b/src/Pyramid/PyramidEditOnRunningSystemSettings.class.st new file mode 100644 index 00000000..cf6444db --- /dev/null +++ b/src/Pyramid/PyramidEditOnRunningSystemSettings.class.st @@ -0,0 +1,49 @@ +Class { + #name : #PyramidEditOnRunningSystemSettings, + #superclass : #Object, + #category : #'Pyramid-plugin-edit-on-running' +} + +{ #category : #dialog } +PyramidEditOnRunningSystemSettings class >> canEditDialog: aBuilder [ + + ^ self theme newRowIn: self for: { + "Default shortcut is F12 because it is usually use to enter dev mode in webbrowsers" + self theme buttonLabelForText: 'with shortcut: F12' translated. + } +] + +{ #category : #accessing } +PyramidEditOnRunningSystemSettings class >> editOnRunning [ + + ^ PyramidPluginEditOnRunning editOnRunning +] + +{ #category : #accessing } +PyramidEditOnRunningSystemSettings class >> editOnRunning: aBoolean [ + + PyramidPluginEditOnRunning editOnRunning: aBoolean +] + +{ #category : #settings } +PyramidEditOnRunningSystemSettings class >> editOnRunningSettingOn: aBuilder [ + + + (aBuilder setting: #editOnRunning) + parent: #pyramid; + label: '(Not working) Can edit opened BlSpaces'; + target: self; + dialog: [self canEditDialog: aBuilder]; + description: 'Setup availability to edit opened BlSpace in a Pyramid window. +Press the required shortcut key(s) on a focused BlSpace window to edit it in Pyramid.' +] + +{ #category : #dialog } +PyramidEditOnRunningSystemSettings class >> theme [ + + ^ Smalltalk ui theme +] + +{ #category : #'see class side' } +PyramidEditOnRunningSystemSettings >> seeClassSide [ +]