diff --git a/src/Spec2-CommonWidgets/SpSimpleFileEditPresenter.class.st b/src/Spec2-CommonWidgets/SpSimpleFileEditPresenter.class.st new file mode 100644 index 00000000..5f5cdc2e --- /dev/null +++ b/src/Spec2-CommonWidgets/SpSimpleFileEditPresenter.class.st @@ -0,0 +1,142 @@ +" +I define a simple code editor. +Before saving I create a backup of the edited file. + + +Here is a typical use: + +``` +SpSimpleFileEditPresenter new + onFileReference: '/Library/Preferences/pharo/6.0/settings.st' asFileReference; + openDialog +``` +" +Class { + #name : 'SpSimpleFileEditPresenter', + #superclass : 'SpPresenter', + #instVars : [ + 'label', + 'fileReference', + 'codeText' + ], + #category : 'Spec2-CommonWidgets', + #package : 'Spec2-CommonWidgets' +} + +{ #category : 'examples' } +SpSimpleFileEditPresenter class >> example [ +