Tag: CodeManagement
PUMModeller - Smalltalk Code Generator Options I
by admin on Dec.23, 2009, under Smalltalk
In this posting I want to talk about the code generator options available in the MSKMdlPlainApp-Runtime based code generator.
Create Application Creation Source
This option creates source code to create all needed structures within the Smalltalk ENVY repository. This includes all needed application and the correct settings for prerequisites of these applications. This code has to be executed in front of all other Smalltalk codes we generate.
Create VisualAge Abt methods
When you enable this option - and it will be pretty clear, that most of the people might want to use it - the code generator generates methods, so that the CompositionEditor now knows all attributes about all classes it generates.
Use “DateAndTime” as Timestamp class
Under VASmalltalk you may either want to use AbtTimestamp or the newer DateAndTime as the default class for managing timestamp. This settings is mostly used during the creation of the “initialize” method of a class.
Use “Platform class” as String class
“Normally” one would use
Create NULL parameter checks
When enabled the code generator generates code in methods to check against parameters with null values and the model says, that a null value is not allowed. Actually in 1.1.21 the code is generated, but the exception is not yet thrown.
Create Modification Calls
When enabled, the code generator generates code in the attribute seetings/changings methods to inform the current transaction manager about model attribute changes … this is needed, to rollback a transaction or get information for persistent solutions.
Swapper Support
When enabled, the code generator build methods to make the model suitable the Swapper persistence technology. That means, that transient objects are thrown away and non persistent attributes are defined to be non-storable for Swapper.
Use Abr-Collection commands
When enabled, the code generator generates code to use abrAdd: and abrRemove: methods to change the instance of OrderedCollection holding the values of an association. This might lead to additional events sent …
Create additional VW like accessors
Normally the cg generates code for an attribute named “age” e.g.: setAge: and getAge. When enabling this option the cg generates the “normal” Smalltalk methods like “age:” and “age”.
CodeManagement 1.1.18
by admin on Dec.16, 2009, under Smalltalk
In the version 1.1.17 mainly the production of the “initialize” method of each class has been rewritten - it looks now much nicer and now works better with nullable attributes and several base data types. Several errors have been fixed with some data types.
In version 1.1.18 I have introduction the support for the swapper framework. Now code is generated to do a much simplier swapper configuration. That means, that attributes - marked as non-persistent - are now not stored through the swapper ….
The Plain-Runtime application has been enhanced by a TransactionManager, IDManager, ChangeManager - this might be the next working field - just to come closer to my CSharp runtime.
PUMModeller - Short introduction
by admin on Dec.14, 2009, under Smalltalk
And here is the first short introduction video about this software tool:
PUMModeller, CodeManagement
by admin on Dec.09, 2009, under Smalltalk
PUMModeller is a Modelling software - originally written to produce C# code. The C# code generator is also included, but pretty useless, because the C# runtime source code is not available.
I now did dome further work on a plain VASmalltalk code generator and also added a plain VASmalltalk runtime.
PUMModeller - by the way - means PoorUsersModeller. We wrote this tool several years ago, because we did not find any code generating tool for VisualStudio 2002/2003 and we were not allowed to buy a Rational tool or another in the prica area. That was the reason for writing it.
When you load the configuration map “CodeManagement” all the needed stuff is loaded. You may start the modeller by looking at the “Tools”-menu, where you may find an additional menu entry named “PUM Modeller (MSK Version)”. This menu entry starts the tool.
To have nice icons you must download some icons and put them into a bitmaps directory of your VA installation. Download the icons from Icon-Files.
The tool may be downloaded from vastgoodies
Some additional documentation will follow, some additional vidoes might also follow.