restore work image

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

restore work image

Pavel
Hi All!

For example, I have a broken image, it doesn't matter how was it broken. The
code is saved in packages. The question is what is the easiest way to
restore it from the fresh image. Of course it's possible to do it by hands -
to load packages with goodies for IDE, to load my packages for the project,
then to remember all changes in system packages that was done. For example,
it's possible to do some things with the code in standart library for
private project, but after it's quite uncomfortable to make changes. so i
wonder how to make it all simple.

Pavel.


Reply | Threaded
Open this post in threaded view
|

Re: restore work image

Tim M
Hi Pavel,

> Hi All!
>
> For example, I have a broken image, it doesn't matter how was it
> broken. The code is saved in packages. The question is what is the
> easiest way to restore it from the fresh image.

I'm sure some of the others have sneaky ways of doing it, however one way
that might work is to load up Ian's Chunck Browser in to the new image,and
then open up the .chg file of the old image. There you can browse all of
the changes you have made and restore them. However this could be tedious
if you haven't saved any of your packages ever. For me I use this approach
if I have saved packages but a few hours of changes that I neglected to save
(I load the old packages and then browse for the more recent changes and
restore them).

I have a hunch there is a way to open an image in a reduced manner - but
I'm not sure.

Tim


Reply | Threaded
Open this post in threaded view
|

Re: restore work image

Pavel-2
> I'm sure some of the others have sneaky ways of doing it, however one way
> that might work is to load up Ian's Chunck Browser in to the new image,and
> then open up the .chg file of the old image. There you can browse all of
> the changes you have made and restore them.

Tnx for replay. My question is about - How I can restore project in new
fresh image?
I have all my code saved in packages.
How I can automate this tasks:
- restore IDE - load all packages with goodies.
- restore some my fixes in system code.
- load all my packages.

If all this above I will do by handy - it is very tiresomely.
I just want to known how it better to do.

Pavel
PS. Sorry for my English.


Reply | Threaded
Open this post in threaded view
|

Re: restore work image

Ian B
Pavel,

>Tnx for replay. My question is about - How I can restore project in new
>fresh image?

Using a workspace you create a file containing the steps to recreate
your image.  You can then just file it into a clean image and it will
regenerate the working image for you. I've used this method for many
years.

>How I can automate this tasks:
>- restore IDE - load all packages with goodies.

The script could contain something like ....

PackageManager current install: ('goodies package.pac').

For multiple packages stored in the same folder you can put the above
in a loop with each package name as the argument.

>- restore some my fixes in system code.

For changes to default settings you  can usually find a way of coding
the change . For example ...

SmalltalkSystem current defaultFont: (
        Font  name: 'Arial' pointSize:9).
SmalltalkSystem current formatterClass: RBConfigurableFormatter.
CodeMentorPlugin defaultRefreshMode: #manual.



You can edit Views.  From my setup script ....

viewComposer := ViewComposer show: 'Vertical view'.
viewComposer openOn: (
        ResourceIdentifier
                class: ResourceToolboxPresenter
                name: 'Default view').
subView:= viewComposer composingView viewNamed: 'categories'.
subView viewMode: #list.
viewComposer fileSave.
viewComposer exit.



You have to be a bit more careful about actually changing system
_code_, but there are a number of way of doing it.

- put each change is a single *.st file and use the script to file
each one in.
- put all the individual changes into a single package (this can get
_very_ hard to maintain)
- put the source for the change in the script (or another dedicated
script file) and Compile it on the fly

>- load all my packages.

As above
--
Ian

The From address is valid - for the moment


Reply | Threaded
Open this post in threaded view
|

Re: restore work image

Pavel-2
Tnx Ian !