Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - afelt

Pages: [1]
1
Automation Interface, Add-Ins and Tools / Re: MDG Technologies
« 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

2
Automation Interface, Add-Ins and Tools / Re: MDG Technologies
« 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

3
Automation Interface, Add-Ins and Tools / 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



Pages: [1]