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

Enable opening a New settings browser specific to an application #810

Open
hernanmd opened this issue Jul 21, 2024 · 0 comments
Open

Enable opening a New settings browser specific to an application #810

hernanmd opened this issue Jul 21, 2024 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@hernanmd
Copy link
Member

A method should be overridden to get one step closer to opening a new settings browser window, specific to an application settings. We should add:

StSettingsTree >> #nodeList
	| builder |
	^ nodeList
		ifNil: [
			builder := StSettingTreeBuilder new.
			self pragmasDo: [:p | builder buildPragma: p].
			nodeList := builder nodeList.
			nodeList do: [:n | n model: self].
			self checkForUnknownParent.
			self checkForUnknownTarget.
			self nodeList]

And we will be able to open application settings as this:

| setTree |
setTree := (StSettingsTree new acceptableKeywords: { #systemsettings }) nodeNamed: #fileBrowser.
(StSettingsMainPresenter newApplication: (StSettingsApplication new
		  useBackend: #Morphic;
		  yourself)) 
	rootNodes: setTree allChildren; " < ---- This also should be updated "
	open

Also, we should simplify the script.

@hernanmd hernanmd added bug Something isn't working enhancement New feature or request labels Jul 21, 2024
@hernanmd hernanmd self-assigned this Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant