Title: Naming check in rose

Hello,

I am trying to realize an online check for naming conventions in rose in a VB addin, i. e. when the user enters an invalid name he should get a dialog box to change it.

For this purpose I put all the logic in the OnModifiedModelElement event: I have also implemented a mechanism to keep Rose from recalling this code again and again because of the name changes that occur in this procedure.

But I still have two problems:

I) Suppose I have one single class with an attribute DE_BLA_NR and try to add another attribute DE_BLA_NR.

What seems to happen is:

1) The naming check dialog appears and says the attribute "name" (!) in not valid. That's true "name" _is_ invalid, but it seems because of the naming conflict rose has already renamed the attribute. Well, allright...

2) I change the name to a different, valid name "DE_BLA_NUM".
3) Rose comes up with a message:

<<...OLE_Obj...>>

which is strange because according to (1) the name is already "name" or "DE_BLA_NUM" but certainly not "DE_BLA_NR".
4) Finally after having selected "OK" the attribute is renamed to "DE_BLA_NR".

II) Suppose I have one single class and try to add an invalid attribute named "DE_BLA"

1) The naming check dialog appears and says the attribute "DE_BLA" in not valid. Fine. I enter a valid name "DE_BLA_NR".

2) The naming check dialog appears and says the attribute "name" in not valid. What for? Well I enter a new vaild name "DE_BLA_NUM".

3) Then Rose says

<<...OLE_Obj...>>

and renames it to DE_BLA_NUM.
4) If I add a new attribute "DE_BLA_NR" (should work): Big surprise!

<<...OLE_Obj...>>

After all what is missing is a clear specification, when the OnModifiedModelElement event is sent to the different addin and what is being done by Rose before and after the addins take control.

Can you help me with a clear specification? Or can you give me any hints on how to implement naming conventions?

Thank you in advance

Alexander G�ntsch
Bayerische Landesbank Girozentrale
Unternehmensbereich Informatik und Organisation
AE-Prim�rsupport -1571-
Arnulfstra�e 50
D-80333 M�nchen
Telefon: 089 2171-28546
Telefon: 089 2171-21418
mailto:[EMAIL PROTECTED]
Internet: http://www.bayernlb.de


Reply via email to