pharo icon indicating copy to clipboard operation
pharo copied to clipboard

Funky dependencies

Open Ducasse opened this issue 1 year ago • 0 comments

CodeExporter class >> writeSourceCodeFrom: aStream toFileReference: aFileReference
	"Write the supplied changes to aFileReference"

	aFileReference
		ensureDelete;
		binaryWriteStreamDo: [ :outputStream | (ZnCharacterWriteStream on: outputStream encoding: 'utf8') nextPutAll: aStream contents ].

	UIManager default
		inform:
			(String
				streamContents: [ :s |
					s
						nextPutAll: 'Filed out to: ';
						cr;
						nextPutAll: aFileReference pathString;
						cr;
						cr;
						nextPutAll: 'Click to open location' ])
		actionOnClick: [ aFileReference openInOSFileBrowser ]

and openInOSFileBrowser is packaged in native-Browser. So if we remove Native-Browser then code exporter will break :(

Ducasse avatar Oct 03 '24 19:10 Ducasse