Launcher Settings Browser - Enable Development Environment (updated)
Added  PhLDeploymentScript>>undoAll  and supporting methods to fully reverse  #doAll  when 'Development environment' is enabled.
Removed  #isDeployed:  since its logic was inverted. Replaced by  #developmentEnvironemtEnabled:
MODIFY
src/Pharo-Launcher-UI.package/PhLDeployementScript.class/class/closeWindowsAndOpenDevelopmentEnvironment.st
src/Pharo-Launcher-UI.package/PhLDeployementScript.class/class/closeWindowsAndOpenDevelopmentEnvironment.st
@@ -2,7 +2,6 @@ action
closeWindowsAndOpenDevelopmentEnvironment
PanelMorph allInstancesDo: [ :pm | pm delete ].
self new closeAllWindows.
- PharoLauncher browse.
Workspace open contents: 'PharoLauncher open.'.
"PanelMorph comes from use of #openWorldWithSpec"
\ No newline at end of file

ADD
src/Pharo-Launcher-UI.package/PhLDeployementScript.class/class/deactivateDeployed.st
+settings
+deactivateDeployed
+ IsDeployed := false
\ No newline at end of file

ADD
src/Pharo-Launcher-UI.package/PhLDeployementScript.class/class/developmentEnvironmentEnabled..st
+settings
+developmentEnvironmentEnabled: aBoolean
+ aBoolean
+ ifTrue:
+ [ self new undoAll.
+ self closeWindowsAndOpenDevelopmentEnvironment
+ ]
+ ifFalse:
+ [ self new doAll.
+ self closeWindowsAndOpenLauncher
+ ].
\ No newline at end of file

ADD
src/Pharo-Launcher-UI.package/PhLDeployementScript.class/class/developmentEnvironmentEnabled.st
+settings
+developmentEnvironmentEnabled
+ ^ self isDeployed not
\ No newline at end of file

DELETE
src/Pharo-Launcher-UI.package/PhLDeployementScript.class/class/isDeployed..st
-settings
-isDeployed: aBoolean
- IsDeployed := aBoolean.
- aBoolean
- ifTrue: [ self closeWindowsAndOpenDevelopmentEnvironment ]
- ifFalse: [ self new doAll. self closeWindowsAndOpenLauncher ]
\ No newline at end of file

MODIFY
src/Pharo-Launcher-UI.package/PhLDeployementScript.class/class/settingsOn..st
src/Pharo-Launcher-UI.package/PhLDeployementScript.class/class/settingsOn..st
@@ -2,7 +2,7 @@ settings
settingsOn: aBuilder
<systemsettings>
<pharoLauncherSettings>
- (aBuilder setting: #isDeployed)
+ (aBuilder setting: #developmentEnvironmentEnabled)
parent: #pharoLauncher;
target: self;
label: 'Enable development environment' translated;

ADD
src/Pharo-Launcher-UI.package/PhLDeployementScript.class/instance/activateDeprecationWarnings.st
+public
+activateDeprecationWarnings
+ Deprecation raiseWarning: true
\ No newline at end of file

ADD
src/Pharo-Launcher-UI.package/PhLDeployementScript.class/instance/activateStartupActions.st
+actions
+activateStartupActions
+ StartupPreferencesLoader allowStartupScript: true.
\ No newline at end of file

ADD
src/Pharo-Launcher-UI.package/PhLDeployementScript.class/instance/deactivateDeployed.st
+public
+deactivateDeployed
+ self class deactivateDeployed
\ No newline at end of file

ADD
src/Pharo-Launcher-UI.package/PhLDeployementScript.class/instance/doRaiseWarningForMissingChangesOrSourcesFiles.st
+actions
+doRaiseWarningForMissingChangesOrSourcesFiles
+ PharoFilesOpener default setInformAboutReadOnlyChanges.
\ No newline at end of file

ADD
src/Pharo-Launcher-UI.package/PhLDeployementScript.class/instance/removeFromStartupList.st
+public
+removeFromStartupList
+ Smalltalk removeFromStartUpList: PhLDeployementScript
\ No newline at end of file

ADD
src/Pharo-Launcher-UI.package/PhLDeployementScript.class/instance/undoAll.st
+public
+undoAll
+ self
+ activateStartupActions;
+ doRaiseWarningForMissingChangesOrSourcesFiles;
+ activateDeprecationWarnings;
+ deactivateDeployed;
+ removeFromStartupList
\ No newline at end of file

MODIFY
src/Pharo-Launcher-UI.package/PhLTitlebarModel.class/instance/openSettings.st
src/Pharo-Launcher-UI.package/PhLTitlebarModel.class/instance/openSettings.st
accessing
openSettings
- SettingBrowser browse: #( #pharoLauncherSettings )
\ No newline at end of file
+ PharoLauncher openSettings
\ No newline at end of file

ADD
src/Pharo-Launcher-UI.package/PharoLauncher.class/class/openSettings.st
+opening
+openSettings
+ SettingBrowser browse: #( #pharoLauncherSettings )
\ No newline at end of file

Launcher Settings Browser - Enable Development Environment (updated) https://pharo.fogbugz.com/default.asp?11899

Added  PhLDeploymentScript>>undoAll  and supporting methods to fully reverse  #doAll  when 'Development environment' is enabled.

Removed  #isDeployed:  since its logic was inverted. Replaced by  #developmentEnvironemtEnabled: