Pharo: "Refactoring" window cannot be closed, moved, cancelled

Viewed 42

I tried to remove a class from one of my packages and got a "Refactoring" window which is impossible to close (no "red-yellow-green" buttons on top-left, i'm on Mac), or move. The "Cancel" button below has no effect, nor the "Apply" one. How do i get rid of this window? I can only resize it.

Screen shot

Thanks a lot for your help, Richard

1 Answers

Windows are objects (as everything else). So you can send messages to them. In this case you could get all of them by inspecting

SystemWindow allSubInstances

Once you locate the window you want to close, you can send it the message #close.

You could also go further and see how other windows add the close button and add that code to the one that lacks it.


You can also try

namesakes := World windowsSatisfying: [:w | w labelString = aString].
namesakes size = 1 ifTrue: [namesakes anyOne close]

where aString is the name of the window you want to close.

Related