Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add edit on running plugin #115

Merged
merged 4 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/Pyramid-Tests/PyramidPluginEditOnRunningTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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)
]
49 changes: 49 additions & 0 deletions src/Pyramid/PyramidEditOnRunningSystemSettings.class.st
Original file line number Diff line number Diff line change
@@ -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 [
<systemsettings>

(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 [
]
Loading