Updates:
Status: Fixed
Comment #5 on issue 941 by tu...(a)tudorgirba.com: Can't export moose model
to MSE file from pharo 2.0
http://code.google.com/p/moose-technology/issues/detail?id=941
Thanks for the explanations. I reviewed the code, and the fix was not quite
complete.
Your fix looked like that:
exportToMSE
<menuItem: 'Export model to MSE' category: 'Import / Export'>
| stream |
stream := UITheme builder
fileSave: 'Your title here'
extensions: #('mse')
path: nil.
stream isNil ifFalse: [
self exportToMSEStream: stream writeStream.
stream close.
Notification signal: 'Save successful!' ]
The problem was that "stream close" raised an exception because stream is a
FileReference.
I fixed this now and the code looks like:
exportToMSE
<menuItem: 'Export model to MSE' category: 'Import / Export'>
| fileReference |
fileReference := UITheme builder
fileSave: 'Your title here'
extensions: #('mse')
path: nil.
fileReference isNil ifFalse: [
fileReference writeStreamDo: [ :stream |
self exportToMSEStream: stream.
Notification signal: 'Save successful!' ] ]
In any case, thanks for spotting the issue.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings