This is for anyone who wants to access the method code generated by the Rose
J Patterns wizard.

The Design Patterns wizard in Rose J adds code in the methods that are
created by the wizard. This code is hidden inside the model and is not
visible from the Rose dialogs. To make this code visible from inside Rose
you need to modify the java properties in your model. (The properties are
either in the .mdl file or in a controlled unit with the .prp extension).
Exit Rose and make a backup of your model (just in case). Open you model or
property file in a text editor. Locate the following code in you properties:

            (object Attribute
                tool            "Java"
                name            "default__Operation"
                value           (list Attribute_Set

You should see a list of attribute properties in the form:

                    (object Attribute
                        tool            "Java"
                        name            "Abstract"
                        value           FALSE)

After any one of these attribute properties add the following new attribute
property:

                    (object Attribute
                        tool            "Java"
                        name            "DefaultCodeBody"
                        value           "")

The pattern wizard uses the DefaultCodeBody property to store the code for
the pattern. 
If you re-load your model, this property should now be available in the Java
tab of the standard specification window. 

Paul Netherwood

Beach Capital Management Limited
Cannon Bridge
25 Dowgate Hill
London EC4R 2GN, UK
Phone  : +44 (0)20 7337 2936
Fax    : +44 (0)20 7337 6780
E-mail : [EMAIL PROTECTED]


Attachment: msg04669/bin00000.bin
Description: application/ms-tnef

Reply via email to