Skip to content

CPUWatcher MUST NOT Refer to UIManager #15428

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

Open
Ducasse opened this issue Nov 19, 2023 · 0 comments · May be fixed by #18100
Open

CPUWatcher MUST NOT Refer to UIManager #15428

Ducasse opened this issue Nov 19, 2023 · 0 comments · May be fixed by #18100

Comments

@Ducasse
Copy link
Member

Ducasse commented Nov 19, 2023

openMorphicWindowForSuspendedProcess: aProcess
	| menu rules |
	menu := UIManager default newMenuIn: self for: self.
	"nickname  allow-stop  allow-debug"
	rules := self  processBrowser nameAndRulesFor: aProcess.
	menu add: 'Dismiss this menu'
		target: menu
		selector: #delete;
		addLine.
	menu add: 'Open Process Browser'
		target: self processBrowser
		selector: #open.
	menu add: 'Resume'
		target: self
		selector: #resumeProcess:fromMenu:
		argumentList: { aProcess . menu }.
	menu add: 'Terminate'
		target: self
		selector: #terminateProcess:fromMenu:
		argumentList: { aProcess . menu }.
	rules third ifTrue: [
		menu add: 'Debug at a lower priority'
			target: self
			selector: #debugProcess:fromMenu:
			argumentList: { aProcess . menu }.
	].
	menu addTitle: aProcess identityHash asString,
		' ', rules first,
		' is taking too much time and has been suspended.
What do you want to do with it?'.
	menu stayUp: true.
	menu popUpInWorld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant