Author Topic: MDG Technologies  (Read 4035 times)

afelt

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
MDG Technologies
« on: February 27, 2009, 12:04:32 am »
Hello everybody,
I am experiencing following problem:
I want to create a new language template, so I followed the steps described in the doc.
1. I created a new "Product" in Programming languages datatypes, and declared a new datatype.
2. I bravely copied all the templates from the C languages into my newly created product (for a start)
3. I've set all my classes and methods ect.. to my new language.
4. I created a new MDG Technology as specified in:
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/creatingmdgtechnologies.html

and

http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/addingcodemodulesinmdgtec.html

I took care to specify code options as follows:
Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<CodeOptions>
      <CodeOption name="DefaultSourceDirectory">D:\generated files</CodeOption>
      <CodeOption name="Editor">C:\Program Files\TextPad 5\TextPad.exe</CodeOption>
</CodeOptions>

(I don't specify a DefaultExtension in this example, but I also tried with.)

5. Then after havig specified the path of my MDG tech. in Settings\MDG Technologies\Advanced I have loaded the technology using the ressources view.

Now, to the point. If I specify a DefaultExtension, the code generation generates me only the headerfiles with the given extension, but no implementation file.
If I don't specify it, it generates me headerfiles without extension at all!

Another point bothers me. If I've read correctly this doc:
http://www.sparxsystems.com/uml_tool_guide/code_engineering/options___mdg_technology_langu.html
I should be able to specify the different file types in Tools\Options but my language doesn't appear there!

I someone could help to figure out what I am doing wrong...

Regards



Nizam Mohamed

  • EA User
  • **
  • Posts: 193
  • Karma: +1/-0
    • View Profile
Re: MDG Technologies
« Reply #1 on: February 27, 2009, 08:14:34 am »
Try Using these two options to regulate implementation files generation
<CodeOption name="HasImplementation">true/false</CodeOption><CodeOption name="ImplementationExtension">.XXX</CodeOption>

w.r.t Options page, please make sure you include "Code Modules" in the list of items to be included in the technology and choose the product you want to be included in the tech ( MDG Tech Wizard - Code Modules ) with appropriate "code options" file selected.

afelt

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: MDG Technologies
« Reply #2 on: February 27, 2009, 09:20:55 pm »
I have updated my code options to look like that:

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<CodeOptions>
      <CodeOption name="DefaultExtension">.ext</CodeOption>
      <CodeOption name="HasImplementation">true</CodeOption>
      <CodeOption name="ImplementationExtension">.XXX</CodeOption>
      <CodeOption name="DefaultSourceDirectory">D:\Documents and Settings\afelt\My Documents\clearcase\generated makefile</CodeOption>
      <CodeOption name="Editor">C:\Program Files\TextPad 5\TextPad.exe</CodeOption>
</CodeOptions>

I have updated my MDG Tech file. And I took extra care to make sure that the codeoptions file was selected. But it doesn't help. For some reason, the extensions are not set by default when I try to generate code, and I still don't get any implementation.
b.t.w. The MDG Technology is still not figuring in the options.

Some point that is maybe unrelated, but that I find weired, is that I created my new language template independently from the MDG Tech. (It has got to figure in the Code Modules selection window when you create the technology) but when I delete the technology, the code template disappears with it. (Which is not good.)

Anyway, thank you for the suggestion. Where can I find all the available CodeOptions? Only a handful are listed in the doc.

Regards,

afelt

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: MDG Technologies
« Reply #3 on: March 02, 2009, 08:45:53 am »
Quote
I have loaded the technology using the ressources view.
Don't do that! Delete the technology from the Resources view, go to Settings > MDG Technologies > Advanced > Add > Add Path, OK, OK, OK and restart EA...
« Last Edit: March 02, 2009, 04:13:16 pm by KP »
The Sparx Team
[email protected]

afelt

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: MDG Technologies
« Reply #4 on: March 02, 2009, 08:59:45 pm »
I tried to enable the technology through.
Quote
Settings > MDG Technologies > Advanced > Add > Add Path, OK, OK, OK and restart EA...
The code generation seems to work that way (I get headers an implementation files with the right extension), but I don't see the technology in the resources view! It doesn't appear in the source code engineering options neither!
How can I achieve that?

Thanks for your answer anyway, it helped a lot.

Regards,

afelt