From ee5f2ebcc26a309ddce230a00d282172d342b38d Mon Sep 17 00:00:00 2001 From: Yann Le Goff Date: Mon, 24 Jun 2024 17:56:13 +0200 Subject: [PATCH] fix bug on the library --- src/Pyramid-Bloc/PyramidTreePlugin.class.st | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Pyramid-Bloc/PyramidTreePlugin.class.st b/src/Pyramid-Bloc/PyramidTreePlugin.class.st index 08ef2e9f..44d6a20a 100644 --- a/src/Pyramid-Bloc/PyramidTreePlugin.class.st +++ b/src/Pyramid-Bloc/PyramidTreePlugin.class.st @@ -160,12 +160,11 @@ PyramidTreePlugin >> initialize [ { #category : 'initialization' } PyramidTreePlugin >> initializeLibraryPresenters [ - | idGenerator library | - library := PyramidElementToAddPresenter new. + | idGenerator | idGenerator := PyramidLibraryContainerPresenter makeIdGenerator. libraryPresenterForElement := PyramidLibraryContainerPresenter new idGenerator: idGenerator; - library: library; + library: PyramidElementToAddPresenter new; buttonLabel: 'Add new child'; buttonAction: [ self editor propertiesManager @@ -179,7 +178,7 @@ PyramidTreePlugin >> initializeLibraryPresenters [ yourself. libraryPresenterForRoot := PyramidLibraryContainerPresenter new idGenerator: idGenerator; - library: library; + library: PyramidElementToAddPresenter new; buttonLabel: 'Add new on first level'; buttonAction: [ self editor propertiesManager @@ -191,7 +190,7 @@ PyramidTreePlugin >> initializeLibraryPresenters [ firstLevelElements } with: libraryPresenterForRoot elementToAdd ]; - yourself. + yourself ] { #category : 'as yet unclassified' }