Skip to content
Merged
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
25 changes: 6 additions & 19 deletions src/Pyramid-Bloc/PyramidPluginEditOnRunning.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@ Class {
#superclass : #Object,
#traits : 'TPyramidPlugin',
#classTraits : 'TPyramidPlugin classTrait',
#instVars : [
'editOnRunning'
],
#classInstVars : [
'editOnRunning',
'spaceIds',
'shortcut',
'shortcutFork',
'keyCombination',
'breakpoint'
],
Expand Down Expand Up @@ -51,20 +46,12 @@ PyramidPluginEditOnRunning class >> cleanUp: anObject [
PyramidPluginEditOnRunning class >> doShortcutAction: anEvent [

| space editor whenClosedDo |
self flag:
'labordep: this is a temporary processing because this fork is due to a Bloc opened issue'.
(shortcutFork notNil and: [ shortcutFork isTerminated not ]) ifTrue: [
^ self ].

shortcutFork := [
self editOnRunning ifTrue: [
space := anEvent source space.
(self canEditSpace: space) ifTrue: [
editor := space editWithPyramid.
whenClosedDo := editor window whenClosedDo.
editor window whenClosedDo: [ whenClosedDo value ] ] ] ]
forkAt: Processor userBackgroundPriority
named: 'Pyramid edit-on-running plugin shortcut'
self editOnRunning ifFalse: [ ^ self ].
space := anEvent source space.
(self canEditSpace: space) ifFalse: [ ^ self ].
editor := space editWithPyramid.
whenClosedDo := editor window whenClosedDo.
editor window whenClosedDo: [ whenClosedDo value ]
]

{ #category : #'as yet unclassified' }
Expand Down