How to remove user attributes from parts classes ?

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

How to remove user attributes from parts classes ?

Postby marten » Tue Jun 16, 2009 7:09 am

When one renames a class and removes the original class - one has a good chance, that a part - referencing this class - can not be edited any more. The system seems to reads instances of PartBuilder from the manager.dat for that specific class - holding references to that lost class.

How is it possibe to clear all those "cached" user attributes of that part class - just to be able to work again ....

Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: How to remove user attributes from parts classes ?

Postby TriSebastian » Thu Jul 02, 2009 12:49 pm

Hi Marten,

well I just gambled a little.
I'm not sure whether I got you right.

I subclassed a Pushbutton class, added this to a shell.
Saved it.
Then I copied the class (didn't react on to the showed references list) and deleted the old one.
Afterwards, when I started the visual editor again, There was a vasticon shown instead of the former "original" button.

The only way I was able to solve this was:
Opening the application manager.
loading available classes -> my "original" pushbutton class.
Then, and that's important! I opend the morph into menu via the edit toolbar menu (that's different to the one ue get using the right mouse button in the visual editor).
At the bottom there's a listentry "...others". Click it and enter the name of the "original" class.

That's it!

Please send me a mail if I got you wrong.

Sorry for the typos, I'm sitting in the train...

Posts: 76
Joined: Sun Jul 20, 2008 9:40 pm
Location: Nanaimo, BC, Canada

Re: How to remove user attributes from parts classes ?

Postby benvandijk » Fri Jul 03, 2009 12:47 am

Hi Marten,

Before you remove the old class, first check the references to that class.
When the class is referenced in a abtbuildinternals method,
open a composition editor on that class and replace the part(s) that refernce the old class.
For some parts you can change the class via the popu menu, for others you can use the morph (Thanks Sebastian)
Save the part.

Remove the old class when it has no references left.
Posts: 45
Joined: Sun Feb 25, 2007 7:14 am
Location: Arnhem, Netherlands

Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest