Skip to content

Commit 3dbcbd3

Browse files
Merge pull request #255 from OpenSmock/Issue_0119
Issue 0119
2 parents 19eb7da + 9570de8 commit 3dbcbd3

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

src/Pyramid-Bloc/PyramidPluginEditOnRunning.class.st

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@ Class {
33
#superclass : #Object,
44
#traits : 'TPyramidPlugin',
55
#classTraits : 'TPyramidPlugin classTrait',
6-
#instVars : [
7-
'editOnRunning'
8-
],
96
#classInstVars : [
107
'editOnRunning',
11-
'spaceIds',
128
'shortcut',
13-
'shortcutFork',
149
'keyCombination',
1510
'breakpoint'
1611
],
@@ -51,20 +46,12 @@ PyramidPluginEditOnRunning class >> cleanUp: anObject [
5146
PyramidPluginEditOnRunning class >> doShortcutAction: anEvent [
5247

5348
| space editor whenClosedDo |
54-
self flag:
55-
'labordep: this is a temporary processing because this fork is due to a Bloc opened issue'.
56-
(shortcutFork notNil and: [ shortcutFork isTerminated not ]) ifTrue: [
57-
^ self ].
58-
59-
shortcutFork := [
60-
self editOnRunning ifTrue: [
61-
space := anEvent source space.
62-
(self canEditSpace: space) ifTrue: [
63-
editor := space editWithPyramid.
64-
whenClosedDo := editor window whenClosedDo.
65-
editor window whenClosedDo: [ whenClosedDo value ] ] ] ]
66-
forkAt: Processor userBackgroundPriority
67-
named: 'Pyramid edit-on-running plugin shortcut'
49+
self editOnRunning ifFalse: [ ^ self ].
50+
space := anEvent source space.
51+
(self canEditSpace: space) ifFalse: [ ^ self ].
52+
editor := space editWithPyramid.
53+
whenClosedDo := editor window whenClosedDo.
54+
editor window whenClosedDo: [ whenClosedDo value ]
6855
]
6956

7057
{ #category : #'as yet unclassified' }

0 commit comments

Comments
 (0)