Dear Ian,
I've changed the image base path (conservating all it's subfolders) to another path. Then I've started the image and saw your goodies in 'Additional Tools' dolphin folder, don't find the images of their icons. In case there are any path absolute to their respective resource, I suggest to relativize it, I mean, make them to search in a relative path. What should I do now to see those icons right? thank you, Seb PD: the goodies allways works |
Sebastián,
> What should I do now to see those icons right? The goodies expect their icons to be in a folder located in relation to the image folder. This is specified in the method... SessionManager>>idbResourcesFolder. If you've moved all the folders together I'm not sure why that isn't still pointing to the correct location?. You can also see where the tool is looking for it's icon by evaluating ChunkBrowser defaultIconName -- Ian Use the Reply-To address to contact me. Mail sent to the From address is ignored. |
Ian,
the icons in the classes are OK (ChunkBrowser for instance) but the ones that are bad, are those you find in the menu bar of a workspace below Tool | Additional tools Also the ones you find in the so called 'System Folder' (the first blue window that dolphin opens at the beggining) in the Additional Tools (where you will also found the SUnitBrowser, etc) regards, Seb "Ian Bartholomew" <[hidden email]> escribió en el mensaje news:[hidden email]... > Sebastián, > > > What should I do now to see those icons right? > > The goodies expect their icons to be in a folder located in relation to the > image folder. This is specified in the method... > > SessionManager>>idbResourcesFolder. > > If you've moved all the folders together I'm not sure why that isn't still > pointing to the correct location?. > > You can also see where the tool is looking for it's icon by evaluating > ChunkBrowser defaultIconName > > -- > Ian > > Use the Reply-To address to contact me. > Mail sent to the From address is ignored. > > > |
Seb,
> the icons in the classes are OK (ChunkBrowser for instance) but the > ones > that are bad, are those you find in the menu bar of a workspace below > Tool > | Additional tools > > Also the ones you find in the so called 'System Folder' (the first > blue > window that dolphin opens at the beggining) in the Additional Tools (where > you will also found the SUnitBrowser, etc) Hmmm, that's strange. I would have thought they all accessed the same icon and if one works then they all should. I shall investigate further to see if I can reproduce it and get back to you (hopefully) -- Ian |
In reply to this post by Sebastián Sastre
Seb,
> I've changed the image base path (conservating all it's subfolders) to > another path. When you did that did you reinstall my goodies in the new location or just move the existing folder structure? -- Ian Use the Reply-To address to contact me. Mail sent to the From address is ignored. |
"Ian Bartholomew" <[hidden email]> escribió en el mensaje
news:[hidden email]... > Seb, > > > I've changed the image base path (conservating all it's subfolders) to > > another path. > > When you did that did you reinstall my goodies in the new location or just > move the existing folder structure? Just move the image. No reinstall. Seb |
Seb,
> Just move the image. No reinstall. OK, I've reproduced the issue and can see the incorrect icons. It is caused because I use separate ico files which are stored in my resources folder. Dolphin creates and retains (in the image) Icon instances for these files but the Icon instances remember the filename and path of the ico file they represent. When you moved the files these Icon instances now point to a missing file and therefore when they attempt to re-realize themselves they can't find the ico file to use. I can't find an easy way of resetting each Icon instances #identifier so that it points to the correct file (any suggestions from the group?) so my recommendation would to be to uninstall all my goodies and then reinstall them into the new location. FWIW, I personally would be quite uncomfortable just moving a complete folder tree like this, although it doesn't _appear_ to cause any problems. If I wanted to move the folder location I would reinstall Dolphin to that location, reconstruct the subfolders by copy/paste and the reinstall all packages to get a working image at the new location. -- Ian Use the Reply-To address to contact me. Mail sent to the From address is ignored. |
Ian, Seb,
> FWIW, I personally would be quite uncomfortable just moving a complete > folder tree like this, although it doesn't _appear_ to cause any problems. > If I wanted to move the folder location I would reinstall Dolphin to that > location, reconstruct the subfolders by copy/paste and the reinstall all > packages to get a working image at the new location. That's what Migrate tries to help one do. I have long treated the CB, Profiler, etc. as separate items to be added manually, and there is almost certainly a better way. I recently found need to do some "preprocessing" during my clean build, which I accomplished by letting Migrate build its script and then editing the result. That appears to work fairly well, because once it works, the script should hopefully continue to work for that image, perhaps with minor tweaks over time. Maybe the selecting packages in a directory should add to the current selection. That would allow one to build up a fairly arbitrary collection of packages to be scripted. Some documentation would be nice too ;) Have a good one, Bill -- Wilhelm K. Schwab, Ph.D. [hidden email] |
In reply to this post by Ian Bartholomew-19
Dear Ian,
you said: > I can't find an easy way of resetting each Icon instances #identifier so > that it points to the correct file (any suggestions from the group?) so my > recommendation would to be to uninstall all my goodies and then reinstall > them into the new location. ...as you may know, Ian's goodies are very useful :) so they easily become prerequisite of other packages, so that solution works fine in a very fresh image, but became non practicable in an image that has been used for a couple of years. If I found a way of resetting those icons I told you. best regards, -- Sebastián Sastre Seaswork Special Software Solutions www.seaswork.com.ar |
In reply to this post by Ian Bartholomew-19
Dear Ian,
to make the icons show themselves right again I ran this code in my image and the saved the image: iansTools := IdbToolShell allSubclasses. sys := SmalltalkSystemShell allInstances first. sys subPresenters first selectionByIndex:13; onActionPerformed. additionalTools := sys subPresenters first. iansTools do:[:toolClass| (additionalTools list detect:[:folderItem| folderItem description = toolClass displayString]) icon: toolClass icon] Enjoy ! -- Sebastián Sastre Seaswork Special Software Solutions www.seaswork.com.ar "Ian Bartholomew" <[hidden email]> escribió en el mensaje news:[hidden email]... > Seb, > >> Just move the image. No reinstall. > > OK, I've reproduced the issue and can see the incorrect icons. It is > caused because I use separate ico files which are stored in my resources > folder. Dolphin creates and retains (in the image) Icon instances for > these files but the Icon instances remember the filename and path of the > ico file they represent. When you moved the files these Icon instances > now point to a missing file and therefore when they attempt to re-realize > themselves they can't find the ico file to use. > > I can't find an easy way of resetting each Icon instances #identifier so > that it points to the correct file (any suggestions from the group?) so my > recommendation would to be to uninstall all my goodies and then reinstall > them into the new location. > > FWIW, I personally would be quite uncomfortable just moving a complete > folder tree like this, although it doesn't _appear_ to cause any problems. > If I wanted to move the folder location I would reinstall Dolphin to that > location, reconstruct the subfolders by copy/paste and the reinstall all > packages to get a working image at the new location. > > -- > Ian > > Use the Reply-To address to contact me. > Mail sent to the From address is ignored. > > |
In reply to this post by Sebastián Sastre
Sebastián,
> ...as you may know, Ian's goodies are very useful :) so they easily > become prerequisite of other packages, so that solution works fine in a > very fresh image, but became non practicable in an image that has been > used for a couple of years. OK, but that's a bit of a dangerous situation to be in. Even the most devout pro-imagers would (I think) say that you should always have a reasonably easy way of recreating your image from scratch. Dolphin is quite robust but there are ways of damaging it, some of them quite subtle. > If I found a way of resetting those icons I told you. Many thanks. I'll make a note of how you reset the images in case it comes in useful later. -- Ian Use the Reply-To address to contact me. Mail sent to the From address is ignored. |
Ian, Sebastián,
> OK, but that's a bit of a dangerous situation to be in. Even the most > devout pro-imagers You rang??? :) > would (I think) say that you should always have a > reasonably easy way of recreating your image from scratch. Indeed. > Dolphin is quite > robust but there are ways of damaging it, some of them quite subtle. Over time, I've found a few that were not so subtle :) Not only that, OA will issue a new release, and then all of that code needs to find its way into the next image. I somewhat artificially extend the life of my images by "refusing" (strongly discouraging myself is more the truth of it) to save after various events, at least until I see them run w/o incident for a while. I make backups, hopefully at intervals appropriate to the amount of work that I am doing, and have Migrate standing ready to turn packages into a script to start over. Have a good one, Bill -- Wilhelm K. Schwab, Ph.D. [hidden email] |
Free forum by Nabble | Edit this page |